# Redbox

**URL:** <https://www.ruby-forum.com/t/redbox/172092>\
**Category:** Rails\
**Created:** [July 14, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/redbox/172092 "2009-07-14T17:54:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mistressjanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Post date:** [July 14, 2009, 5:54pm UTC](https://www.ruby-forum.com/t/redbox/172092/1 "2009-07-14T17:54:01Z")

</div>

I’m trying to do a simple submission using the redbox plugin. However,  
the fields for the form I want to display appear properly in the  
center of the page, the background box created by redbox (with the  
spinner gif) does not. It always appears at the top center. This isn;t  
a scrolling issue because the page isn;t long enough to scroll. Also,  
I have the proper js and css files being called and in the right  
locations. Is anyone familiar enough with redbox to tell me why my  
contents appear in the proper location, but the pseudo-modla dialog  
box of redbox does not, appearing at the top center? Thanks, Janna B.

\<%= link\_to\_redbox((image\_tag “/images/lockclosed.gif”),“redbox”) %\>

```
 <div id="redbox" style="display: none">

```

 \<% form\_for :associates, :html =\> {:name =\> 'lockform'} do |f| %\> \<%= f.label :username, "username: " %\> \<%= f.text\_field :username %\>   
 \<%= f.label :password, "password: " %\> \<%= f.password\_field :password%\>   
 \<%= f.submit "Submit" , :class=\>'button' %\> \<% end %\> Close

---

<div class="post-metadata">

**Author:** ![mistressjanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Post date:** [July 14, 2009, 8:54pm UTC](https://www.ruby-forum.com/t/redbox/172092/2 "2009-07-14T20:54:39Z")

</div>

Solved my own problem…had an outdated version of the plugin.  
Posting here in case someone hits this in the future via a search on a  
similasr problem. Got the latest version of the plugin by:

git://github.com/craigambrose/redbox.git

---

<div class="post-metadata">

**Author:** ![mistressjanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Post date:** [July 15, 2009, 11:29am UTC](https://www.ruby-forum.com/t/redbox/172092/3 "2009-07-15T11:29:52Z")

</div>

Hi janna,

I am using thickbox for changing user’s password.  
but what happens,  
after posting form, when error occurs ( i.e. password n confirmation  
mismatch )  
response does’t come back to thickbox.  
it goes to normal html page.  
do you have any idea on this ??

Thanks,  
Sandip R~

---

<div class="post-metadata">

**Author:** ![mistressjanna](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/3ab097/32.png) [@mistressjanna](https://www.ruby-forum.com/u/mistressjanna)\
**Post date:** [July 16, 2009, 3:51am UTC](https://www.ruby-forum.com/t/redbox/172092/4 "2009-07-16T03:51:34Z")

</div>

No, sorry…I’m not even to that point yet. I am using Authlogic and I  
am not even sure how to compare username/password to validate it,  
without changing the current user.
