Thanks. From your example it looks like active_scaffold overrides Application controller. There is probably someway to automate this, using routes and aliases etc. I'll look into that.
Thanks, Nick On Wed, Jun 3, 2009 at 2:50 PM, Kenny Ortmann <[email protected]>wrote: > One possible solution: > > You need to find a way to know where you are in your controller. > for instance if you hit localhost:3000/posts > in your controller you would want params[:active] to be equal to false > > but if you hit localhost:3000/active/posts > you would want params[:active] to be true > > from there you can do this: > > def index > if params[:active] > super > else > render whatever you want here > end > end > > You will have to do this for every action though. > > I believe you can do some trickyness in your routes file to make the > params[:active] happen if its /active/posts opposed to /posts > > > On Wed, Jun 3, 2009 at 10:12 AM, vanweerd <[email protected]> wrote: > >> >> Hi, >> >> Is it possible to configure ActiveScaffold to not intercept regular >> restful actions? e.g. be able to run the regular rails restful >> scaffolding in parallet with the ActiveScaffold. >> >> e.g. for a blog posts controller >> >> localhost:3000/posts => displays the rails generated scaffolding >> >> localhost:3000/active/posts >> or localhost:3000/posts2 => displays the ActiveScaffold. >> >> Ideally, I'd like to create an alternate UI under an "active" root. >> >> Thanks, >> Nick >> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
