[Rails] Re: how params (without @) works?

2009-06-21 Thread pharrington
On Jun 21, 8:04 pm, Xiahong Gao gaox...@gmail.com wrote: I am newb. I feel confused about how params works. I understand @params is an attribute of CLASS, but what is params? A named parameter? Because I thought instance attributes always begin with @”, so params/request/flash/etc looks

[Rails] Re: how params (without @) works?

2009-06-21 Thread gaoxh gaoxh04
flash is the instance method of class ActionController::Flash. but our application controller is inherited from ActionController::Base, why can we use flash in our application controller ? to be more concrete, i guess the code has the following form: Class ActionController{ Class Flash