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

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -