You can just override the method you need to in the controller. If you alias a 
name to go to the show action just override the show action.
Sent from my Verizon Wireless BlackBerry

-----Original Message-----
From: atmorell <[email protected]>

Date: Tue, 30 Jun 2009 07:25:08 
To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
Subject: Pretty urls when showing a record.



Hello,

How do I override the find method for a single AS controlelr action? I
would like to use find_by_permalink on my show method.

Trying to add pretty urls to my blog like so:
title: this is my first log -> blogs/this-is-my-first-blog

So I thougt about using permalink_fu - it will generate a pretty alias/
url and store it in a column in the database.


Hope I am on the right track.
Best regards.
Asbjørn Morell.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to