I'm hoping this is a really simple thing that I'm just not seeing. I'm fairly new to rails so I imagine this is right under my nose.
My app has what you call stacks
and I created a resource for it:
resources :stacks, only: [:new, :create, :show]
I want to change the route for the show action from /stacks/:id
to /stack/:id
I had added this above the resource, but it wasn't working:
get '/stacks/:id', to: 'stacks#show', as: 'stack'
Thanks!
Edit: code
get '/stacks/:id', to: 'stacks#show', as: 'stack'
resources :stacks, only: [:new, :create, :show]