I have an A-Z list that controls a list of check_box_tag values. So a
user clicks on a A-Z link, the list of checkboxes are displayed, they
tic the checkboxes and the value is stored in the session variable,
and they go on like that until they submit. Once they submit, the
session variable is looped over and the values are saved.
The A-Z list uses link_to_remote to update the list.
The check_box_tags uses a remote_function call to store the checked
value in a session variable.
This all works fine. The problem is that when the user selects a
checkbox and then selects a new A-Z link and then goes back to the
same A-Z link the checkbox is no longer selected.
I know the remote_function call is adding the object to the
session[:selected] array, but for some reason
session[:selected].include?(db) is not returning true.
I know the remote_function call is adding the object to the
session[:selected] array, but for some reason
session[:selected].include?(db) is not returning true.
because db is apparently an activerecord object, but your session
contains ids