Redbox question

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs