Monday, August 13, 2012

[Rails] Re: Restfull custom actions

Paul wrote in post #1072262:
> I think you want "member" instead of "collection" in your route file.
> Collection is used when you don't have an id; member when you do. In
> your controller you are using the id, so I'm assuming that this is the
> URL you want: http://localhost:3000/customers/1/friend

Yeah thank to both of you, member was best and works now :D

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate