I'm new to rails and ruby. I'm reading Simply Rails 2, and working
through the chapters to learn how to use rails.
-- backstory --
We're on chapter 8 or so where we are learning about filters.
At this step we are to add a before_filter, like so:
before_filter :login_required, :only => [:new, :create]
I've looked around for details, but the rails docs offer this:
Alias for append_before_filter
The passed filters will be appended to the filter_chain and will
execute before the action on this controller is performed.
This method is also aliased as before_filter
-- actual question --
What I want to know is: Given this documentation, how would a user
know that there is an :only, and an :except parameter, and what they
Is it some ruby feature of &block paramters that I can toss in a hash?
How do I find out what the valid keys are for such hash, and what they