Forum: Ruby on Rails Re: using params[] in view or setting the value in controlle

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
59de94a56fd2c198f33d9515d1c05961?d=identicon&s=25 Tom Mornini (Guest)
on 2006-12-21 23:23
(Received via mailing list)
I'd highly recommend divorcing the views from the params hash.

If you choose to change the param name, why should the view need to
be changed?

What if you decide that value needs to stored in the session rather
than passed as a param, for instance?

-- Tom Mornini, CTO
-- Engine Yard, Ruby on Rails Hosting
-- Reliability, Ease of Use, Scalability
-- (866) 518-YARD (9273)
This topic is locked and can not be replied to.