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
On Mon, Aug 13, 2012 at 3:42 PM,
On 13 August 2012 19:11, Jean-Sébastien D. wrote:
> I am trying to add a custom restful action. I have try the following
> tutorial but stil get an error and not sure why
> http://guides.rubyonrails.org/routing.html,
> http://railscasts.com/episodes/35-custom-rest-actions
>
> Here what i am trying
I am trying to add a custom restful action. I have try the following
tutorial but stil get an error and not sure why
http://guides.rubyonrails.org/routing.html,
http://railscasts.com/episodes/35-custom-rest-actions
Here what i am trying to do in my model customer
i have def the following
def fri
3 matches
Mail list logo