Hey guys,
I managed to resolve this one. It turns out the line i had inserted in
routes.rb was being affected by a 'members' statement before it, causing
it to generate the wrong route. I simply moved the line ahead of this to
resolve the issue, the AJAX call seems to work fine now.
Thanks fo
Radhames Brito wrote:
> If you need to now how to do this step by step, just have to post a bit
> more
> of your view code.
>
>
>
> and the actions you want to call is can be access by
> task_dynamic_form_path
Apologies Radhames, I did include it in my first post, but I guess i
could hav
>
> 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
Hi Fred,
I'
>>
> 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
>
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,
Radhames Brito wrote:
> what route you have in form_for? does this happen when you submit the
> form?
<%= form_for(@task, :task) do |f| -%>
Thanks
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" gro
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??
I have a method dynamic_form in the TasksController class.
Here is the error I get back in the browser.
---
7 matches
Mail list logo