Hi Sergio,
i have a resource that a column with a has_many association.
For the "show" action I have a column helper that renders the children as a
table.
def sub_tdn_travels_*show_column*(record, input_name)
display_standard_table(
[
{ :name => 'line_item_number', :display_name => 'Item' },
{ :name => 'purpose', :display_name => 'Purpose' },
{ :name => 'number_of_travelers', :display_name => 'Traveler(s)' },
{ :name => 'number_of_nights', :display_name => 'Night(s)' },
{ :name => 'number_of_days', :display_name => 'Days(s)'},
{ :name => 'from_date', :display_name => 'From'},
{ :name => 'to_date', :display_name => 'To'},
{ :name => 'destination', :display_name => 'Destination'}
], record.travels)
end
This has stopped the create/update actions on the parent from showing the
AS form/partial that can create new child records.
Not sure what is going on, but can i restore partial with a call in the
helper method:
def sub_tdn_travels_*form_column*(record, input_name)
super(record,input_name) #THIS IS NOT RIGHT, but the idea is to use
default partial
end
Thanks!
Dennis
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/activescaffold/fd755d9f-13ca-4cd6-994b-266c8f2507a9n%40googlegroups.com.