Thank you for your quick reply.
I'm sorry to hear that but it's ok.
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/frontends/default/views):
How can I render the appropriate template?
ebi
2009/9/17 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
>
> On Jueves, 17 de Septiembre de 2009 15:26:43 EBIHARA, Yuichiro escribió:
>> Now, I also want to apply inplace_edit for the column. I installed
>> in_place_editing plugin and added the following line to my controller.
>>
>> config.columns[:status].inplace_edit = true
>>
>> When I click a value of the column, a text box appears while I hope a
>> select list.
>> Can anybody give me a hint?
>
> There is no support for in place editing select lists in ActiveScaffold, only
> for checkboxes and text fields. You must build it by yourself with a field
> override (although you can use the update_column action in the controller to
> save the value using AJAX).
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---