Sergio, Thank you for your kind advice.
2009/9/18 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>: > > It's very simple, copy your form override and add a javascript function to > onchange event. That function only need to send the data with Ajax.Request. > Look at active_scaffold_column_checkbox to know what parameters you must send. To be honest, I'm not familiar with Ajax and I'm still unaware of what to do. >> How can I render the appropriate template? > > Have you created a template for approve action? Finally, I could resolve the issue by using ":page => true" Action Link option and redirect. config.action_links.add 'approve', :label => "Approve", :type => :record, :parameters => {"status" => "A"}, :page => true def approve record = MyClass.find(params[:id]) record.status = params[:status] record.save! redirect_to :action => :list end Although I'm not sure if this is a proper way, it seems to work good enough anyway. Thank you very much. ebi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
