DEV Community

bomoniyi
bomoniyi

Posted on

I can also change the route to a default route name in the routes.rb file

patch "/movies/:id" => "movies#update", as: :movie  #movie_path() (expects and argument to populate the :id segment)
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
bomoniyi profile image
bomoniyi

This will prevent me from changing the route on every page if I change the url in the future