Permalink
Browse files

Generator-alias: "v2", i.e. now ".script/generate v2" works too. =)

  • Loading branch information...
1 parent f07895d commit e3753556b1e5fbf3f89923f4d9fa66b5524e8492 @grimen grimen committed Oct 31, 2009
Showing with 6 additions and 1 deletion.
  1. +1 −1 README.textile
  2. +5 −0 generators/validatious/v2_generator.rb
View
@@ -93,7 +93,7 @@ $ ./script/generate validatious
create public/javascripts/v2.rails.js
</pre>
-*Important:* It is very impostant that you do this (update these scripts) on each new gem release; especially @v2.Rails@ will be a subject for change because this library contains kind of low level helpers to get Validatious and additional features such as AJAX validations to play. I'm not sure what might be added/removed in the future, but as long as you keep these updated you probably won't notice any difference.
+*Important:* It is very impostant that you do this (update these scripts) on each new gem release; especially @v2.rails@ will be a subject for change because this library contains kind of low level helpers to get Validatious and additional features such as AJAX validations to play. I'm not sure what might be added/removed in the future, but as long as you keep these updated you probably won't notice any difference.
h3. 2. Include the javascripts in your layout
@@ -0,0 +1,5 @@
+# encoding: utf-8
+
+require File.join(File.dirname(__FILE__), 'validatious_generator')
+
+class V2Generator < ValidatiousGenerator; end

0 comments on commit e375355

Please sign in to comment.