Project

General

Profile

javascript on a plugin

Added by Zehzim Coleta about 9 years ago

Hello,

I'm new to javascript, redmine and RoR. So far I have read and understood the plugin development tutorial. But when I try to do things on my own they won't work...

If I use this:

<% content_for :header_tags do >
<
= javascript_include_tag 'script', :plugin => 'my_plugin' >
<
end %>

it will generate the correct link code on page source but there will be no scripts loaded to redmine_root/public/plugin_assets. Is that supposed to happen?

I would like to make this example work (hello world example):

http://www.jointjs.com/tutorial

if someone can help me out with understand why the scripts are not loading and how to properly use scripts unders redmine I would be very grateful.

Zeh.