Hi Radhames,

Thanks for your tips.

I changed to the <%= form_for(@task, :remote=> true)  do |f| -%> format. 
(I'm using rails3)

I also made sure my controller responds to js. I'm still getting the 
same error:

 "No route matches {:page=>nil, :ascending=>nil, :escape=>false, 
:per_page=>nil, :group_filter=>"0", :tab=>nil, :controller=>"tasks", 
:search=>{}, :search_filter=>nil, :action=>"dynamic_form", 
:column=>nil}"


Any other ideas?

Paul











Radhames Brito wrote:
> 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.

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