# Popup not scrolling

**URL:** <https://www.ruby-forum.com/t/popup-not-scrolling/127643>\
**Category:** Rails\
**Created:** [January 31, 2008, 1:12am UTC](https://www.ruby-forum.com/t/popup-not-scrolling/127643 "2008-01-31T01:12:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bpm125](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bpm125](https://www.ruby-forum.com/u/bpm125)\
**Post date:** [January 31, 2008, 1:12am UTC](https://www.ruby-forum.com/t/popup-not-scrolling/127643/1 "2008-01-31T01:12:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![bpm125](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9fc348/32.png) [@bpm125](https://www.ruby-forum.com/u/bpm125)\
**Post date:** [February 1, 2008, 8:54pm UTC](https://www.ruby-forum.com/t/popup-not-scrolling/127643/2 "2008-02-01T20:54:37Z")

</div>

On Jan 30, 2008 6:12 PM, Ray L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
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](http://api.rubyonrails.com/classes/ActionView/Helpers/UrlHelper.html#M000912)

–  
Greg D.  
[http://destiney.com/](http://destiney.com/)
