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?
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?
On Jan 30, 2008 6:12 PM, Ray L. [email protected]
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 D.
http://destiney.com/
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs