I'm doing this in the after_update_save(record) method.

What will I put in that method to get it to refresh the grid? (I tried the record.groups(true) suggestion, but groups is not a method on record).

Thanks, Sergio, et al!

Mikelb

On 09/21/2010 03:18 AM, Sergio Cambra .:: entreCables S.L. ::. wrote:
On Martes, 21 de Septiembre de 2010 11:13:36 Andrey Voronkov escribió:
yes, I have subform for Jet and Group represents as select list (I
want RecordSelect in future) in this subform
ActiveRecord is caching previous association value, when it was empty,
although is strange. You can add after_create_save to reload that association:
def after_create_save(record)
   record.groups(true)
end

2010/9/21 Sergio Cambra .:: entreCables S.L. ::.<[email protected]>:
On Martes, 21 de Septiembre de 2010 10:41:47 Andrey Voronkov escribió:
Oops! that is not virtual column - sorry.

It has_many :through association now.

ChargeCard ---<  Jet>--- Group

I need to display groups in list action in AS for ChargeCard model. So
all other columns shows on create in a new row, and groups are "-".
Only after refreshing the list I see groups.
Are you filling that association in the form?

2010/9/21 Sergio Cambra .:: entreCables S.L. ::.
<[email protected]>:
On Martes, 21 de Septiembre de 2010 03:17:55 Andrey Voronkov escribió:
+1

my virtual column value does not appear in new row on create (all
"natural" fields are present). Only reloading or closing and
reopening ajax box (i'm talking about nested list) does the trick.
Your problem has nothing to see with mike issue. Post your virtual
column definition

2010/9/21 mikelb<[email protected]>:
Is there a way to refresh the Grid on update?  I'm performing an
action using custom code, and the value isn't being put back into
the grid row until the page is refreshed.

Thanks for the help,
M

--
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.
--
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.
--
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.

--
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.

Reply via email to