# Red box is not working

**URL:** <https://www.ruby-forum.com/t/red-box-is-not-working/108531>\
**Category:** Rails\
**Created:** [July 4, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/red-box-is-not-working/108531 "2007-07-04T14:02:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [July 4, 2007, 2:02pm UTC](https://www.ruby-forum.com/t/red-box-is-not-working/108531/1 "2007-07-04T14:02:13Z")

</div>

following my code for redbox… but its not working …do anyone know  
why

* * *

\<%= javascript\_include\_tag “prototype” %\>

\<%= stylesheet\_link\_tag ‘redbox’ %\>  
\<%= javascript\_include\_tag :defaults %\>  
\<%= javascript\_include\_tag ‘redbox’ %\>

\<%= link\_to\_remote\_redbox('Login', :update =\> 'magic', :url =\> {:action =\> 'log'}) %\> | \<%= link\_to\_remote\_redbox('Signup', :update =\> 'magic', :url =\> {:action =\> 'sig'}) %\>

* * *

---

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [July 5, 2007, 6:40pm UTC](https://www.ruby-forum.com/t/red-box-is-not-working/108531/2 "2007-07-05T18:40:47Z")

</div>

Not sure if it was intentional or not, but the “magic” div needs its  
id in quotes (same with your other post so I’m guessing that this is  
accurate).

Also, Redbox inserts a div into your page and copies the results of  
rendering the named action (remote\_redbox) into that div. As such,  
you do not need the :update parameter. An example of my use:

\<%= link\_to\_remote\_redbox  
h(activity.name), :url=\>edit\_activity\_path(activity), :method=\>:get -  
%\>

The :method=\>:get was necessary because I’m using RESTful controllers.

On Jul 4, 8:02 am, Unni K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![unnikrishnanes](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/ce73a5/32.png) [@unnikrishnanes](https://www.ruby-forum.com/u/unnikrishnanes)\
**Post date:** [July 6, 2007, 6:50am UTC](https://www.ruby-forum.com/t/red-box-is-not-working/108531/3 "2007-07-06T06:50:43Z")

</div>

could u please tell me something about RESTful controllers and REST  
concept?
