search for: declarations_control

Displaying 1 result from an estimated 1 matches for "declarations_control".

2007 Mar 11
0
Good code?
Hi, Could you look at some code I created? I don''t know if it''s good... or if it could be better. Especially the controller. I couldn''t find a way to let the declaration_payers be automatically saved. declarations_controller.rb: def create @declaration = Declaration.new(params[:declaration]) unless @declaration.save @users = User.find(:all) render :action => ''new'' return false end @declarations_payers = params[:declarations_payers] @additional_persons =...