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

Answers were Sorted based on User's Feedback



What are filters? and how many types of filters are there in ruby..

Answer / sanjib

basically filters are used to run some code or skip some
code before executing particular action.It is used in
controller.say we want to check authenticity before we
executing some action or skip checking authenticity before
some action which automatically is configured to check the
authenticity.We can do it by before_filter :somemethod or
skip_before_filter :someaction inside my controller.

Is This Answer Correct ?    28 Yes 3 No

What are filters? and how many types of filters are there in ruby..

Answer / 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

More Ruby on Rails Interview Questions

What are the major components of Ruby on Rails?

1 Answers   QualTech,


Can you list out what can rails migration do?

0 Answers  


What is the Install rail package?

0 Answers  


what is the naming convention in Rails?

0 Answers  


what are some advantages of using ruby on rails?

0 Answers  


Tell me what is rails active record in ruby on rails?

0 Answers  


What is the main function of helpers used in ruby on rails?

0 Answers  


Explain what is the role of the subdirectories app/controllers and app/helpers in rails?

0 Answers  


What is the naming convention for variables?

0 Answers  


What is the flash?

0 Answers  


How many filters are there in rails.

0 Answers  


how many types of callbacks available in ror?

0 Answers  


Categories