1

I'm using the friendly_id gem (Rails 3.2) and I want a specific action (edit) to not use the friendly id slug. How can i do this?

Example:

for show action: "site.com/object/friendly_id"
for edit action: "site.com/object/id/edit"

Is this possible? Thanks

Uri Klar
  • 3,800
  • 3
  • 37
  • 75

1 Answers1

0

Instead of using object send id as a parameter with path, for example, use this, for edit

edit_user_path(@user.id)

for show,

user_path(@user)
Rajdeep Singh
  • 17,621
  • 6
  • 53
  • 78