resting — 2012-02-17T21:03:06-05:00 — #1
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?
scannon — 2012-02-25T20:18:55-05:00 — #2
robzdc — 2013-03-13T18:26:06-04:00 — #3
with before_filter you can execute a function before an action
system — 2014-10-07T23:53:21-04:00 — #4
This topic is now closed. New replies are no longer allowed.