What are filters? and how many types of filters are there
in ruby
Answer Posted / 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 |
Post New Answer View All Answers
what is the defined operator?
what is the purpose of RJs in Rails?
How is dynamic scaffolding different from static scaffolding?
what is rails caching?
What is the purpose of require_relative in ruby?
What is the difference between render and redirect?
What is the difference between concern and application_controller.rb in ruby on rails?
Mention the differences between the observers and callbacks in ruby on rails.
what are the positive aspects of Rails?
Explain how Rails implements Ajax?
What is the function of orm in ruby on rails?
Choosing between belongs_to and has_one?
How to serialize data with yaml?
Mention the role of rails controller.
Tell me what is ruby on rails?