[yast-devel] Webyast: Bind model to form
30 Mar
2010
30 Mar
'10
11:40
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: yast-devel+unsubscribe@opensuse.org For additional commands, e-mail: yast-devel+help@opensuse.org
5149
Age (days ago)
5149
Last active (days ago)
0 comments
1 participants
participants (1)
-
Josef Reidinger