I have such route file question · GitHub
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?
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”.
I have such route file question · GitHub
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?
What does rake routes show?
Colin
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.