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-2015
Check out how the team behind APIdock connects Pivotal Tracker, GitHub and group chat to one workflow.