ja hallo erstmal,…
ich habe ein kleines - etwas nerviges - Problem:
In meiner Anwendung versuche ich ein Ajax-Form zu erzeugen:
<% remote_form_for(issue) do |form|%>
<%= form.text_field :name%>
<%= form.submit “Speichern”%>
<% end %>
Dabei ist “issue” ein bereits angelegtes Objekt, dass aktualisiert
werden
soll.
Die Doku [1] suggeriert, dass das damit erreicht werden soll:
http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M000961
Jedoch ergibt dies den Fehler:
ActionController::UnknownAction (No action responded to 1):
Rails loggt dazu:
Processing IssuesController#1 (for 127.0.0.1 at 2008-06-04 18:55:07)
[POST]
Session ID:
BAh7CDoMY3NyZl9pZCIlMWFhMmM0NTI0OGUxMzIzN2FmZWI0Nzc4ZTJhYjJm%0AYTM6CXVzZXJpBiIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6%0AOkZsYXNoSGFzaHsABjoKQHVzZWR7AA%3D%3D–10f91da584e7dd909a3c829ea15927fa57dcf716
Parameters:
{“authenticity_token”=>“53185c9ca36b8c20ae4a942d9e2f10445b9af050”,
“action”=>“1”, “controller”=>“issues”}
ActionController::UnknownAction (No action responded to 1):
Das wirft bei mir 2 Fragen auf:
- Warum ist “name” nicht in der Parameter-Liste?
- Warum findet Rails keine passende Action?
Btw. map.resources :issues in routes.rb ist gesetzt.
Habt Ihr eine Idee?
Danke,
Alles Gute
Jan