render :action => bla, :anchor => ''bla''

Mischa Berger
2007-06-06T19:54:33Z

Hi,

I hope someone can help me with this.

I have a pretty long form (which involves scrolling). After posting the
form, some data gets validated and if there are errors the form is
rendered again and the errors are shown.

The problem is: when the form gets rendered the scroll bar is always at
the top, instead of at the part of the form where the error happened. I
tried using redirect_to :anchor => ''bla'', but when I use
that the values
the user entered are gone.

What I want to do is render :action => bla, :anchor =>
''bla'', but
obviously this doesn''t work. I can''t see how to do this. Does
anyone
have an idea???

Thanks,
Mischa.

--
http://boxroom.rubyforge.org

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