I am new to RoR, but don't you have to explicitly specify the action
of your form? The Ajax code above seems to have the index as action.
So, I have tried something like:
<% remote_form_for @client, :url => { :action => 'some method in your
controller' :id -> @client} do |f| %>
Amrita
On Jul 1, 2:15 pm, nico Itkin <rails-mailing-l...@andreas-s.net>
new to rails too...
apparently i don't need to write the action name in the view thanks to
the path mapping defined in route.rb, rails find from the route and the
method of the query.
but apparently it's not working ... and i don't know why ...
I am new to RoR, but don't you have to explicitly specify the action
of your form? The Ajax code above seems to have the index as action.
So, I have tried something like:
<% remote_form_for @client, :url => { :action => 'some method in your
controller' :id -> @client} do |f| %>
Amrita
On Jul 1, 2:15 pm, nico Itkin <rails-mailing-l...@andreas-s.net>
new to rails too...
apparently i don't need to write the action name in the view thanks to
the path mapping defined in route.rb, rails find from the route and the
method of the query.
but apparently it's not working ... and i don't know why ...
the problem came from the file routes.rb, the default mapping routes
have to be placed at in last position... works perfectly now !!