Colin, I don't know how to determine if validation is happening or whether it is successful.
The edit.html.erb is: <h1>Editing orf</h1> <% form_for @orf do |f| %> <%= f.error_messages %> <%= h @orf.locus_tag %> <%= f.text_field 'current_annotation', :size => 50 %> <%= f.submit "Update" %> <% end %> the update method is: def update @orf = Orf.find(params[:id]) if @orf.update_attributes(params[:orf]) #if @orf.update_attribute(:current_annotation, @orf[ "current_annotation" ]) flash[:notice] = 'Orf was successfully updated.' redirect_to orf_path else flash[:notice] = 'Update failed.' redirect_to orf_path end end and the log (upon clicking the button shows: Processing OrvesController#update (for 128.119.60.171 at 2010-04-06 11:52:39) [PUT] Parameters: {"orf"=>nil, "commit"=>"Update", "id"=>"1705"} Orf Columns (26.0ms) SHOW FIELDS FROM `orves` Orf Load (1.1ms) SELECT * FROM `orves` WHERE (`orves`.`id` = 1705) SQL (0.2ms) BEGIN SQL (0.2ms) COMMIT Redirected to /orves/1705 Completed in 52ms (DB: 28) | 302 Found [http:// andromeda.micro.umass.edu/orves/1705] SQL (0.4ms) SET NAMES 'utf8' SQL (0.2ms) SET SQL_AUTO_IS_NULL=0 Processing OrvesController#show (for 128.119.60.171 at 2010-04-06 11:52:39) [GET] Parameters: {"id"=>"1705"} Orf Columns (17.7ms) SHOW FIELDS FROM `orves` Orf Load (1.1ms) SELECT * FROM `orves` WHERE (`orves`.`id` = 1705) Rendering orves/show Completed in 83ms (View: 45, DB: 19) | 200 OK [http:// andromeda.micro.umass.edu/orves/1705] By the way, I commented out the line in application_controller.rb that had: #protect_from_forgery # See ActionController::RequestForgeryProtection for details Thanks. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.