lib/rails/generators/joosy/layout_generator.rb in joosy-0.1.0.alpha vs lib/rails/generators/joosy/layout_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:layout joosy_app_name/layout_name
+Tip: do not add Layout suffix to layout_name
+HELP
+ exit 1
+ end
+ class_path[0]
end
end
end
end
\ No newline at end of file