route question


I have such route file
In view I want to create path /user/subscriptions/9 with
link_to('Select', user_subscriptions_path(package), :method
=> :put, :class => 'upgrade'), but instead I'm getting /user/
subscriptions.9, can someone point what I'm doing wrong here?

I'm using rails 3.1.3.

What does rake routes show?


I don't believe you can do this.

user_subscriptions_path is such a rest way.
You can put "resources :user_subscriptions" into your route file then
you can use the helper method "user_subscriptions_path".