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 the different types of association relationships that exist?
What is the rail console?
What is the role of mvc architecture in ruby on rails?
Difference between argument and parameter in ruby on rails ?
Why ruby on rails is used for?
When are self.up and self.down methods used?
Explain me what are the limits of ruby on rails?
how many types of callbacks available in ror?
What are the different components of rails ?
The string can be represented in single as well as double quotes. What is the difference between the two?
Do you know what is rake in rails?
How can you run rails without creating databases?
Explain the controller in rails?
Explain rails caching levels.
What is rails migrations?