On Jueves, 17 de Septiembre de 2009 17:02:36 EBIHARA, Yuichiro escribió:
> Thank you for your quick reply.
> I'm sorry to hear that but it's ok.
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.
>
> Now I'm considering to add custom links "Approve" and I tried adding
> the following lines to my controller.
>
> config.action_links.add 'approve', :label => "Approve", :type =>
>
> :record, :parameters => {"status" => "A"}
>
> def approve
> record = MyClass.find(params[:id])
> record.status = params[:status]
> record.save!
> end
>
> The status value was successfully updated but 500 Internal Error
> occured and I saw the following message in the log.
>
> ActionView::MissingTemplate (Missing template approve.erb in view path
> app/views/active_scaffold_overrides:vendor/plugins/active_scaffold/frontend
>s/default/views):
>
> How can I render the appropriate template?
Have you created a template for approve action?
--
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
-~----------~----~----~----~------~----~------~--~---