Forum: Ruby on Rails submit_to_remote fails on rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
nirosh (Guest)
on 2009-05-19 14:52
(Received via mailing list)
submit_to_remote  fails on  rails 2.2.2 and rails 2.3.2 but fully
working with 2.0.2

please give me an answer as soon as possible. its very urgent

the code is

HTML
====

<% form_for :todo, @todo, :url => { :action => "update_todo" } do |f|
%>
  <div>
    <p>
      <label>Todo</label>
      <%=f.text_field :name%>
    </p>
    <p>
        <label>Description<label>
        <%=f.text_area :description,:rows=>3 %>
    </p>
    <p>
        <label>Due date</label>
        <%=f.text_field :due_date,:class=>"date-pick dp-applied" %>
    </p>
    <p>
      <label>Assign to</label>
      <%=select("todo", "assign_to",
       @project.project_teams.map {|u| [User.find
(u.user_id).full_name,u.user_id]}.uniq)%>
    </p>
    <p>
      <%= submit_to_remote 'create_btn', 'Update',
              :url => { :action =>
'update_todo',:id=>@project.id,:todo_id=>@todo.id} %>
    </p>
  </div>
<%end%>



Controller
============

  def update_todo
    @todo = Todo.find(params[:todo_id])
    @todo.update_attributes(params[:todo])
    @todo.save
  end
This topic is locked and can not be replied to.