Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 models in rails?

847


Explain me what is the purpose of rjs in rails?

868


How can you protect filter methods in rails?

860


How to use two databases into a single application?

908


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

962


Mention the role of rails controller.

861


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

834


What do you mean by render and redirect_to?

879


Explain valid and invalid in rails?

837


How do rails implement ajax?

899


what is the difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?

937


Please explain what are the positive aspects of rails?

847


What do you understand by rails?

939


Explain me the log that has to be seen to report errors in ruby rails?

750


What is the purpose of auto_load in ruby?

908