The following will not work when your post model is routed with the :as
link_to("View post", @post)
Instead, use the helper with your custom name:
link_to("View post", :url => renamedpost_path(@post))
The following will not work if your post model is routed with the :as
form_for(@post, :url => edit_renamedpost_path(@post))
When providing a model object, url_for will not
work if the model’s routes are named using the :as option. You can
instead use the named helper methods (posts_path, post_path(:id), etc.).
APIdock release: IRON STEVE (1.4)
If you have any comments, ideas or feedback, feel free to contact us at
APIdock copyright Nodeta Oy 2008-2013
Flowdock is a collaboration tool for technical teams. Version control, project management, deployments and your group chat in one place.