[Rails] Re: please help; form_for passes nil

2010-04-07 Thread dirtbug
boxes in the form made it into the db. On Apr 6, 3:58 pm, Colin Law wrote: > On 6 April 2010 20:30, dirtbug wrote: > > > Colin, > > > The log now shows: > > > Processing OrvesController#update (for 128.119.60.171 at 2010-04-06 > > 14:48:28) [PUT] > >  

[Rails] Re: please help; form_for passes nil

2010-04-07 Thread dirtbug
Colin, I added a create method. It seems to create a new object, but doesn't store any content in the fields. On Apr 6, 3:58 pm, Colin Law wrote: > On 6 April 2010 20:30, dirtbug wrote: > > > Colin, > > > The log now shows: > > > Processing OrvesController#up

[Rails] Re: please help; form_for passes nil

2010-04-07 Thread dirtbug
mass+map|utmcmd=organic; ["_baby_session=BAh7BzoPc2Vzc2lvbl9pZCIlMTYxODY1MmVkZDMyOWU3MmJiNjAyM2ZiOTY5NmRmNTNJIgpmbGFzaAY6DWVuY29kaW5nIg1VUy1BU0NJSUlDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA-- ee8a24f1c308ec43a2b838d45cdb58e9a777ed4c; [] On Apr 6, 5:56 pm, Frederick Cheung wrote: > On Apr 6, 8:30 pm, dirtbug wrote: > &

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
Rails 2. I'll try to add a new method and view and try it out. On Apr 6, 3:58 pm, Colin Law wrote: > On 6 April 2010 20:30, dirtbug wrote: > > > Colin, > > > The log now shows: > > > Processing OrvesController#update (for 128.119.60.171 at 2010-04-06 > &g

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
[0m[0;1mSHOW FIELDS FROM `orves` [0m [4;35;1mOrf Load (0.9ms) [0m[0mSELECT * FROM `orves` WHERE (`orves`.`id` = 1705) [0m Rendering template within layouts/orves Rendering orves/show Completed in 96ms (View: 58, DB: 20) | 200 OK [http:// andromeda.micro.umass.edu/orves/1705] On Apr 6, 3:02

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
Colin, I added a layout file that had gone missing and now it validates. The html; http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en" lang="en"> Orves: edit Editing orf Gura_0317 And the validation report

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
Colin, Here is the html of the form, before I press the update button: Editing orf Gura_0317 When I paste it into the html validator (on their web page), I get: Validation Output: 2 Errors 1. Error Line 1, Column 1: no document type declaration; will parse without validat

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
Colin, I don't know how to determine if validation is happening or whether it is successful. The edit.html.erb is: Editing orf <% form_for @orf do |f| %> <%= f.error_messages %> <%= h @orf.locus_tag %> <%= f.text_field 'current_annotation', :size => 50 %> <%= f.submit "Update" %>

[Rails] Re: please help; form_for passes nil

2010-04-06 Thread dirtbug
f.submit "Update" %> <% end %> Still doesn't update. On Apr 5, 6:12 pm, Frederick Cheung wrote: > On Apr 5, 9:46 pm, dirtbug wrote: > > > Thanks for the reply. I've now fixed the html (removed the table), but > > it didn't fix the proble

[Rails] Re: please help; form_for passes nil

2010-04-05 Thread dirtbug
for. I was trying to change the current_annotation from hypothetical protein to hypothetical proteinski, so it looks like it tried. But the change doesn't happen. Any suggestion of how to troubleshoot this further? On Apr 2, 4:56 pm, Frederick Cheung wrote: > On Apr 2, 6:23 pm,dirtbug

[Rails] please help; form_for passes nil

2010-04-02 Thread dirtbug
I have an update button that doesn't update. Watching the server during the attempt, I see: Processing OrvesController#update (for 128.119.60.171 at 2010-04-02 13:13:29) [PUT] Parameters: {"orf"=>nil, "commit"=>"Update", "id"=>"19544"} orf is my model I'm trying to update in the database. Why