On Viernes, 18 de Diciembre de 2009 12:55:49 Swartz escribió:
> I tried overloading the form field along with the model method you
> provided.
> def member_pay_form_column(record, input_name)
>     text_field(:record, :member_pay, :name => input_name, :value=>
> record.member_pay)
> end
> I can see that AJAX responds with correct values now for member_pay
> field.
> But I get AJAX error TypeError: $("record_member_pay_") is null. For
> some reason it expects a trailing underscore character for id
> attribute of the <input>
> Whereas the one created by text_field has id without the underscore.

If you use model method, you don't need form override. If you use form 
override you have to set the right id. In a future options hash will be sent 
as argument instead of only input_name, so you won't to build the id by 
yourself.

>
>
> I have tried what you suggested before, and what your suggested now...
> but  after_render_field method NEVER gets called.
> I have a debugger breakpoint in it and it never gets tripped. No
> matter what approach I've tried.

Maybe you installed ActiveScaffold before after_render_field was added. Check 
it 
in vendor/plugins/active_scaffold/lib/active_scaffold/actions/core.rb


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


Reply via email to