Rails 4 better way to change :url/:id params -


i trying figure out hours couldn't find answer fo in rails 4! better way change :id params else? trying do

resources :articles, param: :article_title 

but not working! receive message "couldn 't find article without id"... thanks!

are trying make urls more "/articles/my-article-title" instead of "/articles/456"? there number of ways this, cleanest way use friendly_id gem.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -