ruby on rails - Disable friendly_id on specific action -
I am using friendly_id gem (Rails 3.2) and I want to make a specific action (edit) Do not use Slug How can I do this?
Example:
for show action: "site.com/object/friendly_id" for editing operation: "site.com/object/id / edit" Is this possible? Thanks
object send id Instead of edit_user_path (@ user.id) to show, ex> user_path (@ user)
Comments
Post a Comment