Frederick Cheung wrote:
> On Aug 4, 4:09�pm, Marnen Laibow-Koser <[email protected]> wrote:
>> No you don't. �Your helpers don't have access to params, since they live
>> in the view layer. �You'll need to pass params[:question_status] in as
>> an @instance variable.
> 
> They do - ActionView::Base delegates the params method (among others)
> to the controller

OK, then I'm sorry for the error.  I still can't see why it's ever a 
good idea to touch the params array in the view...

...though I suppose you could make the argument that the controller 
shouldn't have to know it needs to set @question_status.

> 
> Fred

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to