On Jueves, 17 de Septiembre de 2009 21:05:56 Me escribió:
> Greetings.  I wrote a simple app that I plan to use as part of a
> charity project.  The app basically displays a nice table and enables
> users to maintain the data.  I used a basic rails scaffold.  I also
> used restful_authentication and stayed RESTful throughout.  Now it all
> works the way that I want.
>
> It struck me that users would want to sort the data columns.  AS seems
> like a good fit for that.  At the same time, I already wrote the logic
> for CRUD actions.  I also already took care of adding [RESTful] CRUD
> links for each table row, depending on user role.
>
> So here's the question:  Is there a painless way to drop in AS for
> just the Index action?  If I say only => :index,  I'll still need to
> add a column for the  CRUD links.  If I let AS do all the actions,
> I'll need to deal with the fact that I already defined those
> actions.
>
> The wiki mentions that I can do RESTFul routes by adding
> active_scaffold => true to the end of map.resources statements.  It
> also says that AS adds other stuff -- I'm confused as to how that
> might work / break things.

You can restrict actions for active_scaffold, with config.actions.exclude, or 
you can override the actions, put your actions below active_scaffold block in 
that case.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]


--~--~---------~--~----~------------~-------~--~----~
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