I wrote
form_for(:message, @message, :url => {user_messages_path} ) do |f|
to POST a form
in my routes, user is a single resource
map.resource :user, :controller => "users", :member =>
{:network =>
:get} do |user|
user.resources :messages
...
end
POST /user/messages {:controller=>"messages",
:action=>"create"} is the route I want to reach
but I get an error on the form_for
../app/views/messages/new.html.erb:11: odd number list for Hash
what''s wrong ? seems OK to me according to the API... or Santa Claus
needs to bring me glasses ;-))
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---