On Oct 8, 4:41 pm, Paul Harte <[email protected]> wrote: > I'm trying to use an AJAX call in my code, but I doesn't seem to be able > to find the method I'm trying to call, am I missing something really > obvious here??
What's in your routes file? You may need to add the dynamic_form action to the mapping defined there (see http://guides.rubyonrails.org/routing.html#adding-more-restful-actions or http://guides.rubyonrails.org/v2.3.8/routing.html#adding-more-restful-actions) Fred > > I have a method dynamic_form in the TasksController class. > > Here is the error I get back in the browser. > ------------------------------------------- > > No route matches {:page=>nil, :escape=>false, :ascending=>nil, > :per_page=>nil, :group_filter=>"0", :controller=>"tasks", :tab=>nil, > :search=>{}, :action=>"dynamic_form", :search_filter=>nil, :column=>nil} > > Extracted source (around line #18): > > 15: <%= f.text_field :title %> > 16: <%= f.hidden_field :assigned_to_id, :value => current_user.id %> > 17: > 18: <label for="user_selected_app">Application:</label> > 19: <%= select 'facet', 'value',Facets.application_list(["GBOSS", > "J_GMISEMEATC" ] ),{}, :onchange => remote_function(:url => {:action => > 'dynamic_form'}) %> > 20: > 21: <label for="user_selected_issuetype">Issue Type:</label><strong id > = "user_selected_issuetype"> > > ---------------------------------------- > > Thanks for looking guys, > > I'm sure the answer is something really obvious! > -- > Posted viahttp://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.

