search for: entrysav

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

Did you mean: entry_a
2006 Jun 27
3
find_by_id vs. find in postback action
...passed in it still loads the previous entry object saved. # @entry = Entry.find_by_id(params[:id]) || Entry.new # logger.debug "!!!!!!!!!!!!!!! edit: #{@entry.inspect}" if request.post? @entry.attributes = params[:entry] # pulled this out so i can inspect it entrysaved = @entry.save logger.debug "on save: #{@entry.inspect}" redirect_to :action => "index" and return if entrysaved end end I get some interesting results tho. So, the first time i click the href (simple href to :action => "edit") the edit form...