Displaying 1 result from an estimated 1 matches for "edit_in_out".
2006 Jun 12
0
struggling with relatively simple out of model updating
I''m trying to do a In/Out thing...
In my in_outs_controller.rb
def edit_in_out
@in_out = InOut.new
@in_out.user_id = params[:id]
@user = User.find_by_id(@in_out.user_id)
if @in_out.save
@user.update_attribute(:in_out, params[:user][:in_out])
flash[:notice] = ''In/Out was successfully updated.''
redirect_to :action => '&...