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
What is rake?
What is Rails?
what is Rails Active Record in Ruby on Rails?
At is cross-site request forgery (csrf)?
What are the different components of rails ?
What are float, dig and max?
Explain rvm in rails?
Mention all the naming conventions in ruby on rails.
what is Rails Migration?
How can you run rails without creating databases?
How to use two databases into a single application?
Do you know the role of garbage collection in ruby on rails?
What is a ruby singleton method ?
Explain valid and invalid in rails?
What is the difference between save and save?