I have a form that has 4 text_field entries, each one with an
observer_field and i want to access the data that is currently inserted
on every field from the :update method for each field. i tried using
instance variables but it appears that each text_field creates an
instance of the searchcontroller for its own.
I also tried using the :with => “something” on the definition of the
observe_fields and trying to collect them with params[:something] but i
get the same problem with instance variables: i can’t access the field
info from the other field callbacks.
Analysing the code for observer_fields in Agile Web D. with
Rails, i found that it uses the ActionController::AbstractRequest class
to get the info, but looks like it has the same raw_post buffer for
every form, thus overriding the last field information.
I wonder, is there any way to get the other field values?