> render_field is called for current controller, in your log render_field was
> called for ContractsController, so you can put there, instead of  
> MembersController.
My apologies for the confusion. I was working concurrently on another
project with very similar functionality.
And I was trying things out on it too. Just to correct, I have it
called for MembersController as well.

> That is fixed with after_render_field (in the right controller). I gave you 
> two
> more fixes, in the model and helper, did you try them?
Yes I have tried them.

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.


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.

--

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