Mikey Hogarth

Digital Media Development, Code and Opinions

Clash between active admin and friendly id

In my opinion two of the most indispensable gems, active admin and friendly id, don’t work together out of the box! Thankfully, a really neat solution does exist and was providedby StackOverflow user Thomas Watson (who after a bit of internet stalking I tracked down as residing at http://justaddwater.dk/) as an answer to this question. Personally I think this guy deserves a medal!

Here’s a link to Thomas’s solution, and it works perfectly!

About these ads

2 Responses to Clash between active admin and friendly id

  1. Krzysztof Zalewski March 5, 2012 at 9:00 am

    How is this working fine for You? I mean when I go to frontend app it works great – urls are with slugs! Than I go to admin and great again – urls are raw IDs! But when I go back to frontend than urls are raw IDs too :/

    When we open class we open it everywhere. There should be some magic trick to open in admin context only.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 445 other followers

%d bloggers like this: