On Fri, Oct 8, 2010 at 12:05 PM, Paul Harte <[email protected]> wrote:

> Radhames Brito wrote:
> > what route you have in form_for? does this happen when you submit the
> > form?
>
> <%= form_for(@task, :task) do |f| -%>
>

this wont build a route for the create action i think it should be

 <%= form_for(@task) do |f| -%>

is either one or the other not both, you pass and instance or a symbol

also if this is rails 3 this wont be submited with ajax since it lacks the
:remote=> true option
and in rails 2.3 it should be form_remote_for

also your controller should respond to js.

-- 
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