lib/generators/templates/application/merb_flat/config/init.rb in merb-gen-0.9.8 vs lib/generators/templates/application/merb_flat/config/init.rb in merb-gen-0.9.9

- old
+ new

@@ -116,22 +116,27 @@ <%= "# " unless template_engine == :erb %>use_template_engine :erb <%= "# " unless template_engine == :haml %>use_template_engine :haml # Move this to application.rb if you want it to be reloadable in dev mode. -Merb::Router.prepare do |r| - r.match('/').to(:controller => 'foo', :action =>'index') - r.default_routes +Merb::Router.prepare do + match('/').to(:controller => "<%= self.name.gsub("-", "_") %>", :action =>'index') + + default_routes end Merb::Config.use { |c| c[:environment] = 'production', c[:framework] = {}, c[:log_level] = :debug, + c[:log_stream] = STDOUT, + # or use file for loggine: + # c[:log_file] = Merb.root / "log" / "merb.log", c[:use_mutex] = false, c[:session_store] = 'cookie', c[:session_id_key] = '_session_id', c[:session_secret_key] = '<%= SHA1.new(rand(100000000000).to_s).to_s %>', c[:exception_details] = true, c[:reload_classes] = true, + c[:reload_templates] = true, c[:reload_time] = 0.5 }