>
> i also have the same problem..
> i use this coding:
>   match 'pages/:id/show2' => 'pages#show2',  as: 'shows'
>
> the result, i can only generate for url or path used.. for example .. <%= 
> link_to 'show2', shows_path(page) %>
> and the url
> i also try to use this:
> root to: 'pages#show', as: 'store'
> it just for the 1st page, to redirect from localhost:3000 to that page.. n 
> 'store' for url or path used only..
>
> just to clarify, i'm trying to simplify the url from 
> localhost:3000/pages/:id/show to localhost:300/shows
>
> do anyone know the right way??
>
>

-- 
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/L-0yTpWQWAwJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to