>
>  "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}"
>
>
Something is wrong since the shouldnt be a passing :page=>nil,
:ascending=>nil,:per_page=>nil in the params , view the html code and check
what action is been called in the html form tag, it should be calling
your_controller_name/dynamic_form (the path i gave you was for a restful
action like create and update not for a custom action like the one you have,
sorry), what you have here is a custom action, but you can make it restful
like this


resources :your_controller do
  member do
    get :dynamic_form    <===== get since i assume this is a search method
  end
end


then you will have a new restful action and you can refer to it like this


form_for dynamic_form_your_controller_path, :remote=> true do |f|

it will work, just remember to change your_controller with the actual
name of your controller, to make sure you can check it by typing rake
routes.

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