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
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 the purpose of load in ruby?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?
What is ruby on rails & why it is used for?
Explain how does rails implement ajax?
what is the function of garbage collection in Ruby on Rails?
What is the purpose of auto_load in ruby?
when self.up and self.down method is used?
What is the naming convention for variables?
Explain the features of ruby on rails.
what are helpers and how to use helpers in ror?
write a program to show the usage of sql in the database file?
What role does garbage collection play?
How is dynamic scaffolding different from static scaffolding?
How many types of variables are available in ruby class?