Forum: Ruby on Rails RJS redirect_to / Effect.scrollTo

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
12be02204a4bcaeec2c6c369fe53a45b?d=identicon&s=25 Dave Hoefler (Guest)
on 2007-03-18 04:08
(Received via mailing list)
Hi there,

Is this even possible to do something like this in an RJS template?

page.redirect_to url_for(:action => 'index', :controller => 'posts')
page << "new Effect.ScrollTo('scroll_to_specified_id');"

The redirect_to works, but the ScrollTo doesn't get executed.

Any ideas or workarounds?

This topic is locked and can not be replied to.