search for: find_by_user_and_id

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

2005 Dec 16
0
More HABTM Save Problems/Issues.. bugs?
...t.user = @session[:user] if @request.post? and @event.save redirect_to :action=>:view, :id=>@event.id end end the odd thing is, is when I access the EXACT same form but update this object with the following update method it creates the 3 arts_events def edit @event = Event.find_by_user_and_id( @session[:user], params[:id] ) @event.update_attributes( params[:event] ) if @request.post? and @event.save flash.now[:notice] = "event record has been sucessfully updated" end end now to further prove my point that it doesn''t work with saving, but it does...