link_to_remote question

Vince W.
Mon, 28 Aug 2006 03:33:00 -0000

I''m trying to get some ajax stars on my website to update.  The CSS
code
I have in place expects to put URL''s like this:


<a href=''../vote/1?store=212''
title=''Terrible''
class=''one-star''>1
<a href=''#'' title=''Poor''
class=''two-stars''>2
<a href=''#'' title=''Fair''
class=''three-stars''>3
<a href=''#'' title=''Good''
class=''four-stars''>4
<a href=''#'' title=''Superb''
class=''five-stars''>5


I''m trying to use link_to_remote to do the above:



<%= link_to_remote ("", :update =>
"stars", :url =>{ :action =>
:vote, :id => 1, :store => @store.id}, :class =>
''one-star'', :name =>
''Terrible'') %>



I have one link_to_remote for each of my star classes but it doesn''t
seem to work.  Can anyone help me understand what I''m doing wrong?

--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---