What are filters? and how many types of filters are there
in ruby
Answer Posted / raja
Filters enable controllers to run shared pre and post
processing code for its actions.
Filter methods are macro-style, that is, they appear at the
top of your controller method, inside the class context,
before method definitions.
the below types of filters in ruby
before_filter,
after_filter,
prepend_before_filter,
prepend_after_filter,
around_filter
| Is This Answer Correct ? | 13 Yes | 4 No |
Post New Answer View All Answers
What are models in rails?
Explain me what is the purpose of rjs in rails?
How can you protect filter methods in rails?
How to use two databases into a single application?
When are self.up and self.down methods used?
Mention the role of rails controller.
What is the role of mvc architecture in ruby on rails?
What do you mean by render and redirect_to?
Explain valid and invalid in rails?
How do rails implement ajax?
what is the difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?
Please explain what are the positive aspects of rails?
What do you understand by rails?
Explain me the log that has to be seen to report errors in ruby rails?
What is the purpose of auto_load in ruby?