lib/bivouac/commands/generate.rb in bivouac-0.1.3 vs lib/bivouac/commands/generate.rb in bivouac-0.1.4

- old
+ new

@@ -190,10 +190,11 @@ end def view file_extension = ".rb" if @generation_type.downcase == "erb" + raise "ERB applications are no longer supported. Sorry!" file_extension = ".html" end @destination_file = File.dirname( $0 ) + "/../app/views/" + @generation_file_name.underscore + file_extension @generation_view_name = @generation_class_name.underscore @@ -234,9 +235,10 @@ end # Generate scaffold views file_extension = ".rb" if @generation_type.downcase == "erb" + raise "ERB applications are no longer supported. Sorry!" file_extension = ".html" end @destination_file = File.dirname( $0 ) + "/../app/views/list_" + @generation_file_name + file_extension createFile( @destination_file ) do |io| io.puts template( "generate/scaffold_view_list_#{@generation_type.downcase}", binding )