On Jan 30, 2008 6:12 PM, Ray Lee
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> I made a popup with this code:
>
>
> <%=link_to ''Rules'', {:action =>
''rules'', :id => @promotion.id}, :popup
> => [''ruling_box'',
''height=300,width=600''] if @promotion.is_contest? %>
>
>
> But it''s not scrolling to the content. What should I add to it?
You need to add an :anchor into the url_for part of your link_to call.
{:action => ''rules'', :id => @promotion.id, :anchor =>
''foo'' }
http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000912
--
Greg Donald
http://destiney.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?hl=en
-~----------~----~----~----~------~----~------~--~---