I don't think there is a good way of doing that except with the action links. if you come to a good solution let me know.
On Mon, Mar 16, 2009 at 6:17 PM, Richard Zheng <[email protected]> wrote: > > A new column is fine with me. However can we still use the built-in ajax > template, e.g. inline, position and etc. ? > > > > On Mon, Mar 16, 2009 at 3:42 AM, Kenny Ortmann <[email protected]>wrote: > >> Yes this is necessary. Active Scaffold is supposed to be used as a CRUD >> interface,(reate, read, update, delete). Those are the actions that the >> action links allow. You don't have to make your link an action link. I >> work with a legacy system and we are converting it to Rails so there tends >> to be some really weird functionality on the legacy side. Any time I have >> needed another link in one of my active scaffold lists, I normally just add >> it in as a new column. >> >> >> On Sat, Mar 14, 2009 at 4:59 PM, rvhi <[email protected]> wrote: >> >>> >>> Hi, >>> >>> Using rail 2.2.2 and AS. >>> >>> I am trying to disable certain custom action links, e..g foobar, on a >>> per-record basis. I got it working by using authorized_for_foobar? in >>> model. Then in action_link definition, the crud_type is defined as >>> foobar. It works with one twist. I had to modify file lib/ >>> active_record_permissions.rb and remove the following line in method >>> authorized_for? >>> >>> raise ArgumentError, "unknown action #{options[:action]}" if >>> options[:action] and ![:create, :read, :update, :destroy].include? >>> (options[:action]) >>> >>> Apparently the only allowed actions are the standard ones. >>> >>> Is it necessary? Maybe should include the defined custom action in the >>> list? I just don't like to modify this line of code in future upgrade. >>> >>> 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 -~----------~----~----~----~------~----~------~--~---
