On Sábado, 30 de Mayo de 2009 00:22:59 Carl escribió: > Is there a global config to stop all actions from being handled > through ajax? I can't seem to find one, and the main problems I have > tend to come from the ajax calls.
In ApplicationController: ActiveScaffold.set_defaults do |config| config.show.link.page = true config.create.link.page = true config.update.link.page = true end > While ajax sometimes looks cool, it > isn't really vital to my app, and sometimes causes problems with > rendering if someone tries to do something through a subform that they > aren't authorized to do (like edit a associated record, of which I > have quite a few). Are you using rails 2.3? In master branch (which only works with rails 2.3) it should work. > I like being able to bring up all the associated > records in their own screen (or tab) but in a subform it tends to > cause problems. Mostly this seems to be a problem with belongs_to > associations, since the default action seems to be edit, rather than > show. You can change default action: ActiveScaffold::DataStructures::Column.actions_for_association_links = [:new, :show] > > Carl > -- Sergio Cambra .:: entreCables S.L. ::. Nicolás Guillén 6, locales 2 y 3. 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 -~----------~----~----~----~------~----~------~--~---
