denki_guy 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +3 -0
- data/lib/generators/rpg/rpg_generator.rb +1 -2
- metadata +1 -1
data/README.markdown
CHANGED
|
@@ -18,6 +18,9 @@ Setup
|
|
|
18
18
|
2. rails generate rpg <whatever_you_want_the_map_to_be_called>
|
|
19
19
|
3. Add in the jquery javascript file in application.rb like so:
|
|
20
20
|
<%= javascript_include_tag 'jquery' %>
|
|
21
|
+
|
|
22
|
+
Note about (3): There are a few ways to switch over to jquery. The key is to not have any of the prototype files messing up the game. So that means
|
|
23
|
+
<%= javascript_include_tag :defaults %> will cause you problems, along with any inclusions of prototype.js, effects.js, dragdrop.js, or controls.js.
|
|
21
24
|
|
|
22
25
|
Usage
|
|
23
26
|
----
|
|
@@ -84,8 +84,7 @@ class RpgGenerator < Rails::Generators::NamedBase
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
This will not work if you are using prototype
|
|
87
|
-
A line such as '<%= javascript_include_tag :defaults %>' in application.html.erb will yield unexpected, weird behavior
|
|
88
|
-
(mostly just breaking the page as far as I know so far).
|
|
87
|
+
A line such as '<%= javascript_include_tag :defaults %>' in application.html.erb will yield unexpected, weird behavior, so delete that and other references to prototype files (effects.js, dragdrop.js, controls.js, and naturally prototype.js)
|
|
89
88
|
|
|
90
89
|
A Jquery file has been added. You will need to include this somewhere in your application layout or view like so:
|
|
91
90
|
<%= javascript_include_tag 'jquery' %>
|