lib/jazz/controller_generator.rb in jazz-jss-0.0.1 vs lib/jazz/controller_generator.rb in jazz-jss-0.0.2

- old
+ new

@@ -14,11 +14,18 @@ def greeting $stdout.puts "Creating new Jazz controller #{name.pluralize}Controller" end def build_the_controller - template "templates/controller.js", "#{app_path}/app/controllers/#{name.downcase}_controller.js" - empty_directory "#{app_path}/app/views/#{name.downcase}" + generate_controller + end + + def build_the_views + generate_views + end + + def build_the_glue + generate_glue end def farewell $stdout.puts "Your controller is ready to rule!" end \ No newline at end of file