hello,
just stuck with the following problem:
in my view a select updates with an observer a variable in the
controller.
works fine.
<%= select(‘filter’, ‘rolle’, Rolle.auswahl_systemrollen) %>
<%= observe_field :filter_rolle, :url => {:action =>
“update_pers_rolle”}, :with => ‘filter_rolle’ %>
this is my controller action
def update_pers_rolle
@persRolle = params[:filter_rolle]
render :nothing => true
logger.info http://logger.info "Log: update => " + @persRolle
end
everything works like expected.
but if i try to use the @persRolle variable in my autocomplete function
for the “corresponding” autocomplete textfield, @persRolle is always
nil.
def auto_complete_for_person_name
logger.info http://logger.info "Log: auto_complete => " +
@persRolle.inspect ← always
nil
end
the select is an filter for the autocomplete query. so i need the value
in my query.
i’m a bit confused or just mind blocked. often it helps just to talk
about…
what am i missing?
regards