Thanks, I'll try that. Do you know where it's documented? I didn't see that and am curious what else I'm missing!
On Oct 9, 11:57 am, Wes Gamble <[EMAIL PROTECTED]> wrote: > Do you have map.resources :myitems, :activescaffold => true in your > routes file? That should give you RESTful links for all of you AS stuff. > > Wes > > joelm wrote: > > I want to create my own 'show' page so I'm trying to add an > > action_link. > > But I can't find a way to generate a link: > >http://localhost:3000/myItems/<id> > > > The best I can come up with is: > >http://localhost:3000/myitems/show/<id> > > > config.action_links.add 'Details', > > :controller => :myitems, > > :action => 'show', > > :type => :record, > > :inline => false > > > If I leave :action out, then it adds in an action 'details', if I > > set :action => '' then I get > >http://localhost:3000/myitems//<id> > > > Is there a way to force NO action, just a controller so it is properly > > RESTful? > > (I can of course add more routes, but I'm trying to a good person and > > avoid that! :) > > > thanks --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
