You can also use tags from one component in another. To do this, you must require the source component from the component you wish to use them in. This can be done in the
config/dependencies.rb file. Just put
in the file.
Dependencies act just like
require in ruby, but for whole components.
Sometimes you may need to include an externally hosted JS file from a component. To do this, simply do the following in the dependencies.rb file:
Note, however, that jquery and bootstrap are currently both included by default. Dependencies included with
css_file will be mixed in with your component assets at the correct locations according to the order that they occur in the dependencies.rb files.