One thing I dislike about Rails is its documentation.
I was watching this screencast http://railscasts.com/episodes/210-customizing-devise (at -7:00) and wanted to find out more about the before_filter.
Taken from http://api.rubyonrails.org/classes/AbstractController/Callbacks/ClassMethods.html#method-i-before_filter
Append a before filter. See #insertcallbacks for parameter details.
Source: show | on GitHub
This doesn't really tell me much information.
Neither does #insertcallbacks.
And the syntax seems different. There are no examples too.
How do I find out more about stuffs that I come across that I'm not sure of?
Are there better documentation with examples?
Can anyone tell me what type is the before_filter called, a controller method?
How to use it, and what other possible methods (if thats what its called) there are?
with before_filter you can execute a function before an action