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
Unni K.,
try this <%= javascript_include_tag ‘redbox.js’ %>
regards,
Bala
On Jul 5, 10:47 am, Unni K. [email protected]
are you using redbox plugin?
On Jul 5, 1:13 pm, unnikrishnan [email protected]
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 [email protected]
I am not sure really… I am following the steps which I found in he
following url
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 [email protected]
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 [email protected]
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 [email protected]
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 [email protected]
have you restarted your server after you install the plugin?
On Jul 5, 3:41 pm, unnikrishnan [email protected]
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
by using html its working?
On Jul 5, 4:25 pm, unnikrishnan [email protected]
did you check the plugin installed properly in vendors folder?
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
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()
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
got the following error when I run the abode command
svn: Can’t connect to host ‘rubyforge.org’: No route to host
maybe bcos of firewall or some security reason you couldnt install the
plugin
On 05/07/07, Unni K. [email protected] 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.”
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…
I am working on suse 10.2 and I tried logging in as su. still have the
same problem