dirtbug wrote:
> 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 is it nil?
> 
> The view for the page with the update button is called edit.html.erb
> and contains:
> 
> <h1>Editing orf</h1>
> <table>
>   <% form_for @orf do |f| %></td>
>     <td><%= f.error_messages %>
>     <td><%= h @orf.locus_tag %></td>
>     <td><%= f.text_field 'current_annotation', :size => 50  %></td>
>     <td><%= f.submit "Update" %></td>
>     <td><%= button_to "Undo last change", :action
> => :undo_last_change, :id => @orf %></td>
>   <% end %>
> 


-----------------------------------------------------------

try this -

<% form_for :table, @var,:url=>{:action=>:action}, :html => {:name =>
'form'} do |f| %>
-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to