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

Is ruby on rails popular?

0 Answers  


hi am b,tech 2011 passedout now am learnig ROR technology may i knw what is the feature of this one and what is the salary ranges to this i heard there is a less salaries to this technology give me valuable suggestions

0 Answers   Baidu, GTPL,


write a program to show the usage of sql in the database file?

0 Answers  


What is the difference between Render vs. Redirect_to in ruby on rails ?

0 Answers  


How is dynamic scaffolding different from static scaffolding?

0 Answers  


What is the rail console?

0 Answers  


Explain me what is the naming convention in rails?

0 Answers  


Explain me what is the function of orm in ruby on rails?

0 Answers  


Difference between gem and plugin?

0 Answers  


What is the purpose of auto_load in ruby?

0 Answers  


what is the difference between the Observers and Callbacks in Ruby on Rails?

0 Answers  


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

0 Answers  


Categories