Thanks Fred, but no go. I have tried both:

<%= check_box_tag(db.id, db.id, session[:selected].include?
(db), :onclick => remote_function( :url => {:action => 'selected',:cid
=> db})) %> <%=db.title%>

and

<%= check_box_tag(db.id, db.id, session[:selected].include?
(db.id), :onclick => remote_function( :url => {:action =>
'selected',:cid
=> db.id})) %> <%=db.title%>


Any other suggestions?


On Oct 9, 11:52 pm, Frederick Cheung <[EMAIL PROTECTED]>
wrote:
> On Oct 10, 12:30 am, Kim <[EMAIL PROTECTED]> wrote:> 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
>
> Fred
>
> > Any suggestions? Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to