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

Popular posts from this blog

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -