Your link_to will use the route from resources :articles . If you want it to use the custom route that you defined, name the route and then use it in link_to :
# routes.rb match '/articles/:id/:title' => 'articles#show', :as => :article_with_title
Alternatively, you might consider using friendly_id . He does it for you, but more transparently.
source share