I need to change the action for the show link e.g /blogs/some-text-
from-my-permalink-column instead for /blogs/1 How do override the
action for a crud like that?

On 1 Jul., 03:23, [email protected] wrote:
> Do you just want to change the display?
>
> config.show.link.label = "whatever"
>
> Look at the action link documentation on the github wiki
> Sent from my Verizon Wireless BlackBerry
>
>
>
> -----Original Message-----
> From: atmorell <[email protected]>
>
> Date: Tue, 30 Jun 2009 18:21:09
> To: ActiveScaffold : Ruby on Rails plugin<[email protected]>
> Subject: Re: Pretty urls when showing a record.
>
> Thanks - Works great. Hmmm how do I override the show link? I can only
> override a table column name title etc with the permalink.
> show_column in the helper get's ignored :/ Do I need to disable the
> show link and create a new custom show link? Could you post a example?
>
> On Jun 30, 10:11 pm, [email protected] wrote:
> > 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