Redbox question

J

Jerry Jones

This may come acrossed as a really dumb question. I am wanting to
setup redbox on a website. I can get lightbox to work on a non-ruby
website.
Anyhow, here is one line they say to do.
<%= stylesheet_link_tag 'redbox' %> <%= javascript_include_tag
:defaults %> <%= javascript_include_tag 'redbox' %>

My question is this. javascript_include_tag is this exactly what
should be in the line, or is it a means of saying, you need to put the
include statement for your JS here.
I have not started working on it yet. I am a novice, and have seen
things in Ruby that tell me that this line, as pasted, should be in
the code.
 
P

Philip Hallstrom

This may come acrossed as a really dumb question. I am wanting to
setup redbox on a website. I can get lightbox to work on a non-ruby
website.
Anyhow, here is one line they say to do.
<%= stylesheet_link_tag 'redbox' %> <%= javascript_include_tag
:defaults %> <%= javascript_include_tag 'redbox' %>

My question is this. javascript_include_tag is this exactly what
should be in the line, or is it a means of saying, you need to put the
include statement for your JS here.
I have not started working on it yet. I am a novice, and have seen
things in Ruby that tell me that this line, as pasted, should be in
the code.

javascript_include_tag is the name of a method... so what you have above
is what you want in your view.

http://api.rubyonrails.com/classes/ActionView/Helpers/AssetTagHelper.html#M000588
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,813
Messages
2,569,696
Members
45,479
Latest member
QFZErin313

Latest Threads

Top