lib/generators/the_comments/USAGE in the_comments-1.1.0 vs lib/generators/the_comments/USAGE in the_comments-2.0.0
- old
+ new
@@ -1,33 +1,44 @@
Description:
- TheComments generator will copy files for organize comment's tree in your web project
+ TheComments: generators will copy files for organize comments tree in your web project
-This text:
- bundle exec rails g the_comments --help
+ Usage: [bundle exec] rails g the_comments NAME
+ Usage: [bundle exec] rails g the_comments:views NAME
-Generators:
- bundle exec rails g the_comments install
+# This text:
+ > rails g the_comments --help
+# Main generators:
+ > rails g the_comments install
+
This will create:
config/initializers/the_comments.rb
-
- app/models/ip_black_list.rb
- app/models/user_agent_black_list.rb
-
app/controllers/comments_controller.rb
- app/controllers/ip_black_lists_controller.rb
- app/controllers/user_agent_black_lists_controller.rb
+ app/models/comment.rb
- bundle exec rails g the_comments controllers
+# Controller generators:
+ > rails g the_comments controllers
This will create:
app/controllers/comments_controller.rb
- app/controllers/ip_black_lists_controller.rb
- app/controllers/user_agent_black_lists_controller.rb
+
+# Model generators:
+ > rails g the_comments models
+
+ This will create:
+ app/models/comment.rb
-View Generators:
- bundle exec rails g the_comments:views assets
- bundle exec rails g the_comments:views helper
- bundle exec rails g the_comments:views views
+# Config generators:
+ > rails g the_comments config
-Migrations:
- bundle exec rake the_comments_engine:install:migrations
+# Locals generators:
+ > rails g the_comments locales
+
+# View Generators:
+ > rails g the_comments:views js
+ > rails g the_comments:views css
+ > rails g the_comments:views assets
+ > rails g the_comments:views helper
+ > rails g the_comments:views views
+
+# Migrations:
+ > rake the_comments_engine:install:migrations
\ No newline at end of file