# Problem with Redbox

**URL:** <https://www.ruby-forum.com/t/problem-with-redbox/108599>\
**Category:** Rails\
**Created:** [July 5, 2007, 7:47am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599 "2007-07-05T07:47:28Z")\
**Posts on this page:** 20\
**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 5, 2007, 7:47am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/1 "2007-07-05T07:47:28Z")

</div>

I have the following code

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

\<%= link\_to\_redbox 'Login','magic' %\>
unnikrishnan

but when i run this , i get the following error ,

Showing app/views/say/ajaxSample.rhtml where line #14 raised:

undefined method `link\_to\_redbox’ for #\<#Class:0xb7110154:0xb711012c\>

do anybody know why

---

<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, 9:17am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/2 "2007-07-05T09:17:40Z")

</div>

Unni K.,

try this \<%= javascript\_include\_tag ‘redbox.js’ %\>

regards,

Bala

On Jul 5, 10:47 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 5, 2007, 10:13am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/3 "2007-07-05T10:13:47Z")

</div>

Still not working

Bala wrote:

> Unni K.,
> 
> try this \<%= javascript\_include\_tag ‘redbox.js’ %\>
> 
> regards,
> 
> Bala
> 
> On Jul 5, 10:47 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 5, 2007, 10:37am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/4 "2007-07-05T10:37:49Z")

</div>

are you using redbox plugin?

On Jul 5, 1:13 pm, unnikrishnan [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 5, 2007, 10:38am UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/5 "2007-07-05T10:38:49Z")

</div>

if you using redbox plugin,

just give “require ‘redbox’” in whichever controller you need to use  
redbox option

On Jul 5, 1:13 pm, unnikrishnan [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 5, 2007, 12:18pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/6 "2007-07-05T12:18:39Z")

</div>

I am not sure really… I am following the steps which I found in he  
following url

[http://www.craigambrose.com/projects/redbox](http://www.craigambrose.com/projects/redbox)

Bala wrote:

> if you using redbox plugin,
> 
> just give “require ‘redbox’” in whichever controller you need to use  
> redbox option
> 
> On Jul 5, 1:13 pm, unnikrishnan [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 5, 2007, 12:33pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/7 "2007-07-05T12:33:02Z")

</div>

well you using plugin name called redbox

just copy those redbox.js, spinner.gif and redbox.css to public  
directory i mean in respecting directory javascript, images,  
stylesheets and just give require ‘redbox’ in controller

Bala

On Jul 5, 1:13 pm, unnikrishnan [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 5, 2007, 12:41pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/8 "2007-07-05T12:41:56Z")

</div>

Yes, I copied the files into the respective folder. and gave require  
‘redbox’ in the controller (tried putting outside and inside the class)  
but got the following error

MissingSourceFile in SayController#ajaxSample

no such file to load – redbox

any idea?

Thanks

Bala wrote:

> well you using plugin name called redbox
> 
> just copy those redbox.js, spinner.gif and redbox.css to public  
> directory i mean in respecting directory javascript, images,  
> stylesheets and just give require ‘redbox’ in controller
> 
> Bala
> 
> On Jul 5, 1:13 pm, unnikrishnan [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 5, 2007, 1:23pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/9 "2007-07-05T13:23:29Z")

</div>

Yes I did, still it shows the same error

Bala wrote:

> have you restarted your server after you install the plugin?
> 
> On Jul 5, 3:41 pm, unnikrishnan [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 5, 2007, 1:10pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/10 "2007-07-05T13:10:06Z")

</div>

have you restarted your server after you install the plugin?

On Jul 5, 3:41 pm, unnikrishnan [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 5, 2007, 1:25pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/11 "2007-07-05T13:25:47Z")

</div>

I copied the html code from the following demo and its working fine. but  
when I user helpers its not…

[http://www.craigambrose.com/redbox\_demo](http://www.craigambrose.com/redbox_demo)

---

<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, 1:32pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/12 "2007-07-05T13:32:08Z")

</div>

by using html its working?

On Jul 5, 4:25 pm, unnikrishnan [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 5, 2007, 1:44pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/13 "2007-07-05T13:44:09Z")

</div>

did you check the plugin installed properly in vendors folder?

---

<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, 1:49pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/14 "2007-07-05T13:49:30Z")

</div>

Do we need to install plugin in vendors folder??? I havent installed  
anythign other than 3 files( javascript, stylesheet and one image). how  
to install that…they havent mentioned anything in the site regarding  
installing the plugin

could u please help me

---

<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, 1:36pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/15 "2007-07-05T13:36:47Z")

</div>

yes,

Click Here to open an AJAX redbox.

its working when I give this code ( copied from one site)

but not when using helpers link\_to\_redbox() or  
link\_to\_component\_redbox()

---

<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, 2:04pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/16 "2007-07-05T14:04:10Z")

</div>

OH MY GOSH!!!

finally i got your problem. lmfao

well if you want ot use redbox plugin, obviously you have to install  
that plugin in vendors folder

first use this command to install the plugin on your rails project  
folder

ruby script/plugin install  
svn://rubyforge.org/var/svn/ambroseplugins/redbox

then copy those three files to respective folders javascript,  
stylsheets and images

then restart your server

and run the app you’ll get by sure.

Bala

---

<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, 2:15pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/17 "2007-07-05T14:15:00Z")

</div>

got the following error when I run the abode command

svn: Can’t connect to host ‘[rubyforge.org](http://rubyforge.org)’: No route to host

---

<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, 2:17pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/18 "2007-07-05T14:17:11Z")

</div>

maybe bcos of firewall or some security reason you couldnt install the  
plugin

On 05/07/07, Unni K. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> >

–  
“Smile while you cry.”

“There are only two tragedies in life: one is not getting what one  
wants,  
and the other is getting it.”

---

<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, 2:30pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/19 "2007-07-05T14:30:01Z")

</div>

could you send me the plugin files so that i can put those files in the  
folder…as I am not about to install though the command line…

also please mentiond which files to put where…

---

<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, 2:20pm UTC](https://www.ruby-forum.com/t/problem-with-redbox/108599/20 "2007-07-05T14:20:48Z")

</div>

I am working on suse 10.2 and I tried logging in as su. still have the  
same problem

[Next page](https://www.ruby-forum.com/t/problem-with-redbox/108599.md?page=2)
