lib/bivouac/template/generate/controller.rb in bivouac-0.1.6 vs lib/bivouac/template/generate/controller.rb in bivouac-0.2.0
- old
+ new
@@ -1,10 +1,17 @@
-module <%= @generation_app_name %>::Controllers
- class <%= @generation_class_name %><%= @generation_routes %>
+#
+# Project <%= @app.environment.appname %>
+#
+# Created using bivouac on <%= Time.now %>.
+# Copyright (c) <%= Time.now.year %> __My__. All rights reserved.
+#
+
+module <%= @app.environment.appname %>::Controllers
+ class <%= @controller_class_name %><%= @controller_routes %>
def get
- render :<%= @generation_view_name %>
+ render :<%= @view_name %>
end
def post
- render :<%= @generation_view_name %>
+ render :<%= @view_name %>
end
end
end
\ No newline at end of file