Hi,
during study our views and controller in webclient I found that we almost never 
use helpers which bind model to form. You can read it here - 
http://guides.rubyonrails.org/form_helpers.html#binding-a-form-to-an-object
Then you can benefit from matching names and you can in controller simple use
<model>.load params[:model]
which set matching attributes. It also produces cleaner views. And last but not 
least is that it pressure to have data handling functionality in model ;)

-- 
Josef Reidinger
YaST team
maintainer of perl-Bootloader, YaST2-Repair, parts of webyast
-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to