Hi all,
I'm facing with a strange situation because I've 2 different results on
different machines with the same code.
My route.rb is quite simple:
ActionController::Routing::Routes.draw do |map|
map.connect ':controller/service.wsdl', :action => 'wsdl'
map.connect ':controller/:action/:id.:format'
map.connect ':controller/:action/:id'
end
This peace of code should create a POST to delete_client:
<% form_tag :action => 'delete_client', :id => @client.name do %>
<%= submit_tag "Rimuovi il cliente" %>
<% end %>
or the same way, url_for will create something like
http://localhost:3000/upload2/delete_client/#[email protected]}
This is working fine on my test machine
meanwhile results in the following error when the same link or button is
followed calling the server machine where also the application is
deployed:
Unknown action
No action responded to
#<Client:0xb5fb8b68>#<Client:0xb5fb8bb8>#<Client:0xb5fb8b7c>#<Client:0xb5fb8b54>#<Client:0xb5fb8b40>#<Client:0xb5fb7470>#<Client:0xb5fb5dc8>.
Actions: ..., delete_client,..
I've the same source code from browser web, so I'm sure this result from
route translation.
I'm reading guides, forum and everything else but can't resolve how this
call can be translated this way.
Have you any idea on the place of this fault?
Thank you.
Cosimo G.
--
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.