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


Please Help Members By Posting Answers For Below Questions

What are the different types of association relationships that exist?

543


What is the rail console?

495


What is the role of mvc architecture in ruby on rails?

476


Difference between argument and parameter in ruby on rails ?

467


Why ruby on rails is used for?

486






When are self.up and self.down methods used?

502


Explain me what are the limits of ruby on rails?

456


how many types of callbacks available in ror?

595


What are the different components of rails ?

509


The string can be represented in single as well as double quotes. What is the difference between the two?

452


Do you know what is rake in rails?

470


How can you run rails without creating databases?

402


Explain the controller in rails?

477


Explain rails caching levels.

564


What is rails migrations?

487