lib/padrino-gen/generators/app.rb in padrino-gen-0.9.24 vs lib/padrino-gen/generators/app.rb in padrino-gen-0.9.25

- old
+ new

@@ -29,19 +29,19 @@ def create_app self.destination_root = options[:root] @app_name = name.gsub(/\W/, "_").underscore.camelize if in_app_root? self.behavior = :revoke if options[:destroy] - app_skeleton(name, options[:tiny]) - empty_directory destination_root("public/#{name}") - append_file destination_root("config/apps.rb"), "\nPadrino.mount(\"#{@app_name}\").to(\"/#{name.underscore}\")" + app_skeleton(@app_name.downcase, options[:tiny]) + empty_directory destination_root("public/#{@app_name.downcase}") + append_file destination_root("config/apps.rb"), "\nPadrino.mount(\"#{@app_name}\").to(\"/#{@app_name.downcase}\")" return if self.behavior == :revoke say (<<-TEXT).gsub(/ {10}/,'') ================================================================= Your #{@app_name} application has been installed. - This application has been mounted to /#{name.underscore} + This application has been mounted to /#{@app_name.downcase} You can configure a different path by editing 'config/apps.rb' ================================================================= TEXT else \ No newline at end of file