What are filters? and how many types of filters are there
in ruby
Answer Posted / sanjib
basically filters are used to run some code or skip some
code before executing particular action.It is used in
controller.say we want to check authenticity before we
executing some action or skip checking authenticity before
some action which automatically is configured to check the
authenticity.We can do it by before_filter :somemethod or
skip_before_filter :someaction inside my controller.
Is This Answer Correct ? | 28 Yes | 3 No |
Post New Answer View All Answers
Write the command to update rvm in rails.
What is rails migration? What can it do?
Explain me what is the purpose of rjs in rails?
what is the purpose of RJs in Rails?
Choosing between belongs_to and has_one?
Explain some features of nested scaffolding.
What is cross-site request forgery (csrf)? How is rails protected against it?
Which command is used to create a migration?
If you want to set up a one-to-one relationship between two models, you'll need to add belongs_to to one, and has_one to the other. How do you know which is which?
what is different between activerecord::relation's count, length and size methods?
Are there any disadvantages of ruby on rails? If yes, mention them.
What is a proc ?
What can Rails Migration do?
Is ruby on rails dying?
difference between member routes and collection routes ?