lib/rails/generators/joosy/widget_generator.rb in joosy-0.1.0.alpha vs lib/rails/generators/joosy/widget_generator.rb in joosy-1.0.0.RC1

- old
+ new

@@ -16,10 +16,17 @@ end protected def app_path - File.join class_path + unless class_path.size == 1 + puts <<HELP +Usage: rails generate joosy:widget joosy_app_name/widget_name +Tip: do not add Widget suffix to widget_name +HELP + exit 1 + end + class_path[0] end end end end \ No newline at end of file