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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to