diff --git a/README b/README new file mode 100644 index 0000000..f315164 --- /dev/null +++ b/README @@ -0,0 +1,3 @@ +== PostageApp: Rails example + +This is a working Rails app that shows how to send mass emails through PostageApp diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..3bb0e85 --- /dev/null +++ b/Rakefile @@ -0,0 +1,10 @@ +# Add your own tasks in files placed in lib/tasks ending in .rake, +# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. + +require(File.join(File.dirname(__FILE__), 'config', 'boot')) + +require 'rake' +require 'rake/testtask' +require 'rake/rdoctask' + +require 'tasks/rails' diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb new file mode 100644 index 0000000..6635a3f --- /dev/null +++ b/app/controllers/application_controller.rb @@ -0,0 +1,10 @@ +# Filters added to this controller apply to all controllers in the application. +# Likewise, all the methods added will be available for all controllers. + +class ApplicationController < ActionController::Base + helper :all # include all helpers, all the time + protect_from_forgery # See ActionController::RequestForgeryProtection for details + + # Scrub sensitive parameters from your log + # filter_parameter_logging :password +end diff --git a/app/controllers/content_controller.rb b/app/controllers/content_controller.rb new file mode 100644 index 0000000..6b20c4b --- /dev/null +++ b/app/controllers/content_controller.rb @@ -0,0 +1,12 @@ +class ContentController < ApplicationController + def home + if request.post? + @result = UserMailer::deliver_message(params) + if @result.response[:status] == 'ok' + flash.now[:notice] = "Your message has been sent. Check your project in PostageApp" + else + flash.now[:error] = "There was an error sending your message" + end + end + end +end diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb new file mode 100644 index 0000000..22a7940 --- /dev/null +++ b/app/helpers/application_helper.rb @@ -0,0 +1,3 @@ +# Methods added to this helper will be available to all templates in the application. +module ApplicationHelper +end diff --git a/app/helpers/content_helper.rb b/app/helpers/content_helper.rb new file mode 100644 index 0000000..3199604 --- /dev/null +++ b/app/helpers/content_helper.rb @@ -0,0 +1,2 @@ +module ContentHelper +end diff --git a/app/models/user_mailer.rb b/app/models/user_mailer.rb new file mode 100644 index 0000000..17f75e8 --- /dev/null +++ b/app/models/user_mailer.rb @@ -0,0 +1,11 @@ +class UserMailer < ActionMailer::Base + + def message(params) + recipients params[:email] => {'name' => params[:variable]} + from 'somebody@somewhere.com' + body :plain_text_message => params[:plain_text], :html_message => params[:html] + headers 'Reply-to' => 'somebody@somewhere.com' + subject params[:subject] + end + +end \ No newline at end of file diff --git a/app/views/content/_current_configuration.rhtml b/app/views/content/_current_configuration.rhtml new file mode 100644 index 0000000..c421699 --- /dev/null +++ b/app/views/content/_current_configuration.rhtml @@ -0,0 +1,8 @@ +<% if Postage.api_key.blank? || Postage.api_key == 'ENTER YOUR API KEY HERE' %> +
+ Before sending a message you'll need to add your API key to config/initializers/postage.rb
+
and restart your server.
Your API key is: <%= Postage.api_key %>
+<% end %> + diff --git a/app/views/content/home.rhtml b/app/views/content/home.rhtml new file mode 100644 index 0000000..beae5ba --- /dev/null +++ b/app/views/content/home.rhtml @@ -0,0 +1,35 @@ ++ Enter a subject, your email address and a value for the {{name}} variable. +
+ <% unless @result.blank? %> +Here is the response received from PostageApp:
+ <%= debug @result %> +<%= text_field_tag :subject, 'My name is {{name}}' %>
+<%= text_field_tag :email %>
+<%= text_field_tag :variable %>
+
+
+
+ <%=text_area_tag :plain_text, "Hi\nMy name is {{name}} and this is a test.", :cols => 40, :rows => 5 %>
+
+
+
+ <%= text_area_tag :html, "
Hi,
My name is {{name}} and this is a test.
", :cols => 40, :rows => 5 %> + +<%= submit_tag "Send message" %>
+ <% end %> +" +; @output_buffer.concat(( text_field_tag :subject ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :email ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :variable ).to_s); @output_buffer.concat "
\n\n \n " + + +; @output_buffer.concat(( + text_area_tag :plain_text do + %{ + Hi, + My name is {{name}} and this is a test. + } + ).to_s); @output_buffer.concat "\n
\n" + +; @output_buffer.concat(( text_area_tag :html ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( submit_tag "Recover password" ).to_s); @output_buffer.concat "
\n" +; end ; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:22:in `compile!' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:61:in `compile' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:28:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/template.rb:199:in `render_template' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:260:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:343:in `_render_with_layout' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:257:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1246:in `render_for_file' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:941:in `render_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1322:in `default_render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1328:in `perform_action_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:617:in `call_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in `perform_action' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `send' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `process_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in `dispatch' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in `_call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in `initialize' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:in `safe_fork' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server:61 + +ActionView::TemplateError (compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:15: syntax error, unexpected ')', expecting kEND + ).to_s); @output_buffer.concat ... + ^ +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:20: syntax error, unexpected kENSURE, expecting ')' +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:22: syntax error, unexpected kEND, expecting ')') on line #15 of app/views/content/home.rhtml: +12: Hi, +13: My name is {{name}} and this is a test. +14: } +15: %> +16: +17:<%= text_area_tag :html %>
+18:<%= submit_tag "Recover password" %>
+ + app/views/content/home.rhtml:22:in `compile!' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (89.0ms) +Rendered rescues/_request_and_response (5.7ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:02:50) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:03:10) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 19ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:03:29) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:03:33) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 101ms (View: 93, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:03:44) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 13ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:04:07) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:04:44) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 19ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:04:51) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:05:20) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:05:52) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:05:59) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 13ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:06:12) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:06:28) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 18ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:06:38) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 13ms (View: 4, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:06:42) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 19ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:08:52) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:09:14) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 13ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:10:03) [GET] +Rendering template within layouts/application +Rendering content/home +ERROR: compiling _run_rhtml_app47views47layouts47application46rhtml RAISED compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/layouts/application.rhtml:15: syntax error, unexpected kCLASS, expecting ')' +...ostageapp-rails-example" class=>"small").to_s); @output_buff... + ^ +Function body: def _run_rhtml_app47views47layouts47application46rhtml(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat "\n\n \n \n " + + + + +; @output_buffer.concat(( stylesheet_link_tag 'main' ).to_s); @output_buffer.concat "\n \n" + +; @output_buffer.concat(( debug Postage.inspect ).to_s); @output_buffer.concat "
\n" +; form_for :user, :url => home_path do |f| ; @output_buffer.concat "\n" +; @output_buffer.concat(( text_field_tag :subject ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :email ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :variable ).to_s); @output_buffer.concat "
\n\n \n
\n "
+
+
+
+; @output_buffer.concat((text_area_tag :plain_text, "Hi\nMy name is {{name}} and this is a test.", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n
\n \n
\n "
+
+
+
+
+; @output_buffer.concat(( text_area_tag :html, "
Hi,
My name is {{name}} and this is a test.
", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n \n" + +; @output_buffer.concat(( submit_tag "Send message" ).to_s); @output_buffer.concat "
\n" +; end ; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:33:in `compile!' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:61:in `compile' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:28:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/template.rb:199:in `render_template' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:260:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:343:in `_render_with_layout' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:257:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1246:in `render_for_file' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:941:in `render_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1322:in `default_render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1328:in `perform_action_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:617:in `call_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in `perform_action' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `send' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `process_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in `dispatch' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in `_call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in `initialize' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:in `safe_fork' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server:61 + +ActionView::TemplateError (compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:2: syntax error, unexpected '=', expecting kEND + =config_accessors = [ + ^) on line #2 of app/views/content/home.rhtml: +1: <% +2: =config_accessors = [ +3: [:api_key, ' API Key: '], +4: [:api_version, ' API Version: '], +5: [:url, 'PostageApp Service URL: '], + + app/views/content/home.rhtml:33:in `compile!' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (86.6ms) +Rendered rescues/_request_and_response (0.6ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:15:59) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:16:25) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:17:45) [GET] +Rendering template within layouts/application +Rendering content/home +ERROR: compiling _run_rhtml_app47views47content47home46rhtml RAISED compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:9: syntax error, unexpected ')' +...fig_accessors.each do |k, v| ).to_s); @output_buffer.concat ... + ^ +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:31: syntax error, unexpected kENSURE, expecting ')' +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:33: syntax error, unexpected kEND, expecting ')' +Function body: def _run_rhtml_app47views47content47home46rhtml(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat(( + config_accessors = [ + [:api_key, ' API Key: '], + [:api_version, ' API Version: '], + [:url, 'PostageApp Service URL: '], + [:recipient_override, ' Recipient Override: '] + ] + + config_accessors.each do |k, v| ).to_s); @output_buffer.concat "\n" +; @output_buffer.concat(( v ).to_s); @output_buffer.concat(( Postage.send(k).inspect).to_s); @output_buffer.concat "
\n " +; end ; @output_buffer.concat "\n\n\n" + + +; @output_buffer.concat(( debug Postage.inspect ).to_s); @output_buffer.concat "
\n" +; form_for :user, :url => home_path do |f| ; @output_buffer.concat "\n" +; @output_buffer.concat(( text_field_tag :subject ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :email ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :variable ).to_s); @output_buffer.concat "
\n\n \n
\n "
+
+
+
+; @output_buffer.concat((text_area_tag :plain_text, "Hi\nMy name is {{name}} and this is a test.", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n
\n \n
\n "
+
+
+
+
+; @output_buffer.concat(( text_area_tag :html, "
Hi,
My name is {{name}} and this is a test.
", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n \n" + +; @output_buffer.concat(( submit_tag "Send message" ).to_s); @output_buffer.concat "
\n" +; end ; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:33:in `compile!' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:61:in `compile' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:28:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/template.rb:199:in `render_template' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:260:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:343:in `_render_with_layout' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:257:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1246:in `render_for_file' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:941:in `render_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1322:in `default_render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1328:in `perform_action_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:617:in `call_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in `perform_action' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `send' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `process_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in `dispatch' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in `_call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in `initialize' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:in `safe_fork' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server:61 + +ActionView::TemplateError (compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:9: syntax error, unexpected ')' +...fig_accessors.each do |k, v| ).to_s); @output_buffer.concat ... + ^ +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:31: syntax error, unexpected kENSURE, expecting ')' +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:33: syntax error, unexpected kEND, expecting ')') on line #9 of app/views/content/home.rhtml: +6: [:recipient_override, ' Recipient Override: '] +7: ] +8: +9: config_accessors.each do |k, v| %> +10:<%= v %><%= Postage.send(k).inspect%>
+11: <% end %> +12: + + app/views/content/home.rhtml:33:in `compile!' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (210.7ms) +Rendered rescues/_request_and_response (0.6ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:18:17) [GET] +Rendering template within layouts/application +Rendering content/home +ERROR: compiling _run_rhtml_app47views47content47home46rhtml RAISED compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:10: syntax error, unexpected '=' + = "#{v} #{Postage.send(k).inspect}
" + ^ +Function body: def _run_rhtml_app47views47content47home46rhtml(local_assigns) + old_output_buffer = output_buffer;;@output_buffer = ''; __in_erb_template=true ; @output_buffer.concat(( + config_accessors = [ + [:api_key, ' API Key: '], + [:api_version, ' API Version: '], + [:url, 'PostageApp Service URL: '], + [:recipient_override, ' Recipient Override: '] + ] + + config_accessors.each do |k, v| + = "#{v} #{Postage.send(k).inspect}
" + end +).to_s); @output_buffer.concat "\n\n" + +; @output_buffer.concat(( debug Postage.inspect ).to_s); @output_buffer.concat "
\n" +; form_for :user, :url => home_path do |f| ; @output_buffer.concat "\n" +; @output_buffer.concat(( text_field_tag :subject ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :email ).to_s); @output_buffer.concat "
\n" +; @output_buffer.concat(( text_field_tag :variable ).to_s); @output_buffer.concat "
\n\n \n
\n "
+
+
+
+; @output_buffer.concat((text_area_tag :plain_text, "Hi\nMy name is {{name}} and this is a test.", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n
\n \n
\n "
+
+
+
+
+; @output_buffer.concat(( text_area_tag :html, "
Hi,
My name is {{name}} and this is a test.
", :cols => 40, :rows => 5 ).to_s); @output_buffer.concat "\n \n" + +; @output_buffer.concat(( submit_tag "Send message" ).to_s); @output_buffer.concat "
\n" +; end ; @output_buffer + ensure + self.output_buffer = old_output_buffer + end +Backtrace: /Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:33:in `compile!' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:61:in `compile' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/renderable.rb:28:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/template.rb:199:in `render_template' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:260:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:343:in `_render_with_layout' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_view/base.rb:257:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1246:in `render_for_file' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:941:in `render_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:51:in `render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1322:in `default_render' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:1328:in `perform_action_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:617:in `call_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/1.8/benchmark.rb:308:in `realtime' +/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.3/lib/active_support/core_ext/benchmark.rb:17:in `ms' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/flash.rb:146:in `perform_action' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `send' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:527:in `process_without_filters' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/filters.rb:606:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:391:in `process' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/base.rb:386:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/routing/route_set.rb:434:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:88:in `dispatch' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:111:in `_call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:82:in `initialize' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:9:in `cache' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/query_cache.rb:28:in `call' +/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.3.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/head.rb:9:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/methodoverride.rb:24:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/params_parser.rb:15:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/session/cookie_store.rb:93:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/reloader.rb:29:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/failsafe.rb:26:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/vendor/rack-1.0.0-git/lib/rack/lock.rb:11:in `call' +/opt/local/lib/ruby/gems/1.8/gems/actionpack-2.3.3/lib/action_controller/dispatcher.rb:106:in `call' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/utils.rb:182:in `safe_fork' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:162:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/railz/application_spawner.rb:213:in `start' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `__send__' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:351:in `main_loop' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' +/opt/local/lib/ruby/gems/1.8/gems/passenger-2.2.4/bin/passenger-spawn-server:61 + +ActionView::TemplateError (compile error +/Users/jneto/Sites/postageapp-rails-example/app/views/content/home.rhtml:10: syntax error, unexpected '=' + = "#{v} #{Postage.send(k).inspect}
" + ^) on line #10 of app/views/content/home.rhtml: +7: ] +8: +9: config_accessors.each do |k, v| +10: = "#{v} #{Postage.send(k).inspect}
" +11: end +12: %> +13: + + app/views/content/home.rhtml:33:in `compile!' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (87.4ms) +Rendered rescues/_request_and_response (0.6ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:18:23) [GET] +Rendering template within layouts/application +Rendering content/home +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:19:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.8ms) +Completed in 25ms (View: 17, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:19:41) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.1ms) +Completed in 21ms (View: 12, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:20:11) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.9ms) +Completed in 19ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:21:07) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.1ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:22:14) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:22:21) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.1ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:23:56) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.1ms) +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:24:40) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 37ms (View: 28, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:25:04) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.3ms) +Completed in 21ms (View: 12, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:26:54) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 26ms (View: 18, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:27:09) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 21ms (View: 12, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:27:46) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:28:31) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:28:34) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:28:46) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 21ms (View: 13, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:29:01) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:29:12) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:29:19) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:29:43) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:30:07) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:30:36) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:30:56) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:31:50) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:32:11) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:32:23) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:32:32) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:33:39) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:33:51) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:34:00) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:34:15) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:34:26) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:34:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:35:00) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:35:05) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:35:49) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.3ms) +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:35:53) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:36:24) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:36:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:37:08) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:38:16) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:38:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:39:00) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:39:22) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 19ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:39:25) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:39:34) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:39:49) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 20ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:40:39) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 19ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:40:54) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:40:56) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:40:57) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:41:12) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.5ms) +Completed in 38ms (View: 29, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:41:42) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 37ms (View: 29, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:42:15) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 21ms (View: 13, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:42:20) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"", "email"=>"", "variable"=>""} + +RuntimeError (--- !map:HashWithIndifferentAccess +html:Hi,
My name is {{name}} and this is a test.
+commit: Send message +plain_text: |- + Hi + My name is {{name}} and this is a test. +authenticity_token: VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI= +action: home +subject: "" +controller: content +variable: "" +email: "" +): + app/controllers/content_controller.rb:4:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (81.8ms) +Rendered rescues/_request_and_response (2.4ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:43:23) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:43:30) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 129ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:43:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:44:05) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:44:16) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:44:23) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 15ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:44:24) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:45:37) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.3ms) +Completed in 37ms (View: 28, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:46:46) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.4ms) +Completed in 21ms (View: 13, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:47:00) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:47:12) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:47:25) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 15ms (View: 7, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:47:36) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:47:46) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:48:00) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"", "email"=>"", "variable"=>""} + +RuntimeError (--- !map:HashWithIndifferentAccess +html:Hi,
My name is {{name}} and this is a test.
+commit: Send message +plain_text: |- + Hi + My name is {{name}} and this is a test. +authenticity_token: VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI= +action: home +subject: "" +controller: content +variable: "" +email: "" +): + app/controllers/content_controller.rb:5:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (190.1ms) +Rendered rescues/_request_and_response (2.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:58:04) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.3ms) +Completed in 37ms (View: 28, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:58:37) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"", "variable"=>""} + +SyntaxError (/Users/jneto/Sites/postageapp-rails-example/app/models/user_mailer.rb:4: syntax error, unexpected tASSOC, expecting '}' + recipients {params[:email] => {'name' => params[:name]} + ^ +/Users/jneto/Sites/postageapp-rails-example/app/models/user_mailer.rb:9: syntax error, unexpected kEND, expecting '}'): + app/controllers/content_controller.rb:4:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (93.2ms) +Rendered rescues/_request_and_response (2.6ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:58:52) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"", "variable"=>""} + +SyntaxError (/Users/jneto/Sites/postageapp-rails-example/app/models/user_mailer.rb:4: syntax error, unexpected tASSOC, expecting '}' + recipients {params[:email] => {'name' => params[:name]}} + ^): + app/controllers/content_controller.rb:4:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (202.7ms) +Rendered rescues/_request_and_response (0.7ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 14:59:23) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"", "variable"=>""} +Sending mail via Postage... + +RuntimeError (--- +): + app/controllers/content_controller.rb:5:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (72.4ms) +Rendered rescues/_request_and_response (0.7ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:00:24) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:05:50) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"my name"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257883550.88845 + +RuntimeError (--- !map:Postage::Response +data: !map:HashWithIndifferentAccess + message: !map:HashWithIndifferentAccess + id: 8993 +response: !map:HashWithIndifferentAccess + uid: "1257883550.88845" + status: ok +api: !map:HashWithIndifferentAccess + version: "1.0" + key: x0RqcKNgPffbQOrIk8FC3C2yumEMtW17 +): + app/controllers/content_controller.rb:5:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (79.8ms) +Rendered rescues/_request_and_response (2.3ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:10:32) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"my name"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257883832.42853 + +NoMethodError (undefined method `status' for {"uid"=>"1257883832.42853", "status"=>"ok"}:HashWithIndifferentAccess): + app/controllers/content_controller.rb:5:in `home' + passenger (2.2.4) lib/phusion_passenger/rack/request_handler.rb:91:in `process_request' + passenger (2.2.4) lib/phusion_passenger/abstract_request_handler.rb:206:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:376:in `start_request_handler' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/utils.rb:182:in `safe_fork' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:162:in `start' + passenger (2.2.4) lib/phusion_passenger/railz/application_spawner.rb:213:in `start' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:261:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:254:in `spawn_rails_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:153:in `spawn_application' + passenger (2.2.4) lib/phusion_passenger/spawn_manager.rb:286:in `handle_spawn_application' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `__send__' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:351:in `main_loop' + passenger (2.2.4) lib/phusion_passenger/abstract_server.rb:195:in `start_synchronously' + +Rendered rescues/_trace (211.1ms) +Rendered rescues/_request_and_response (0.7ms) +Rendering rescues/layout (internal_server_error) + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:11:31) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"my name"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257883891.98913 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.2ms) +Completed in 288ms (View: 29, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:12:28) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"my name"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257883948.38221 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 340ms (View: 19, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:13:47) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"my name"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884027.96346 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 277ms (View: 18, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:14:06) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:14:36) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 21ms (View: 12, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:14:52) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884092.69662 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 271ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:15:09) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884109.15326 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 2008ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:15:59) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884159.21098 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 275ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:16:18) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884178.59524 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 384ms (View: 11, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:16:28) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884188.26151 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 286ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:16:44) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Test"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884204.72121 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 497ms (View: 9, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:16:58) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:17:02) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 5, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:17:35) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"aa"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884255.33344 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.4ms) +Completed in 384ms (View: 10, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:17:39) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 14ms (View: 6, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:18:10) [POST] + Parameters: {"html"=>"Hi,
My name is {{name}} and this is a test.
", "commit"=>"Send message", "authenticity_token"=>"VPrJaGhvx4Ie0mOk/QohMotqo5tkkv9RULBLBCLAzhI=", "plain_text"=>"Hi\r\nMy name is {{name}} and this is a test.", "subject"=>"My name is {{name}}", "email"=>"jack@twg.ca", "variable"=>"Jack"} +Sending mail via Postage... +Mail successfully sent. Check postage_development.log for more details. UID: 1257884290.21652 +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (0.3ms) +Completed in 275ms (View: 16, DB: 0) | 200 OK [http://postageapp-rails-example.local/] + + +Processing ContentController#home (for 127.0.0.1 at 2009-11-10 15:27:28) [GET] +Rendering template within layouts/application +Rendering content/home +Rendered content/_current_configuration (1.3ms) +Completed in 38ms (View: 29, DB: 0) | 200 OK [http://postageapp-rails-example.local/] diff --git a/log/postage_development.log b/log/postage_development.log new file mode 100644 index 0000000..62273a4 --- /dev/null +++ b/log/postage_development.log @@ -0,0 +1,86 @@ +Sending Request [UID: 1257883163.88383 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{""=>{"name"=>nil}}} + +Received Response [UID: 1257883163.88383] +{"response"=>{"uid"=>"1257883163.88383", "status"=>"ok"}, "data"=>{"message"=>{"id"=>8991}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Failed to perform delivery with postage: +#Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>nil}}} + +Received Response [UID: 1257883550.88845] +{"response"=>{"uid"=>"1257883550.88845", "status"=>"ok"}, "data"=>{"message"=>{"id"=>8993}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257883832.42853 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>nil}}} + +Received Response [UID: 1257883832.42853] +{"response"=>{"uid"=>"1257883832.42853", "status"=>"ok"}, "data"=>{"message"=>{"id"=>8997}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257883891.98913 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"my name"}}} + +Received Response [UID: 1257883891.98913] +{"response"=>{"uid"=>"1257883891.98913", "status"=>"ok"}, "data"=>{"message"=>{"id"=>8998}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257883948.38221 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"my name"}}} + +Received Response [UID: 1257883948.38221] +{"response"=>{"uid"=>"1257883948.38221", "status"=>"ok"}, "data"=>{"message"=>{"id"=>8999}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884027.96346 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"my name"}}} + +Received Response [UID: 1257884027.96346] +{"response"=>{"uid"=>"1257884027.96346", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9001}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884092.69662 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884092.69662] +{"response"=>{"uid"=>"1257884092.69662", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9002}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884109.15326 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884109.15326] +{"response"=>{"uid"=>"1257884109.15326", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9003}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884159.21098 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884159.21098] +{"response"=>{"uid"=>"1257884159.21098", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9005}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884178.59524 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884178.59524] +{"response"=>{"uid"=>"1257884178.59524", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9006}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884188.26151 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884188.26151] +{"response"=>{"uid"=>"1257884188.26151", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9007}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884204.72121 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Test"}}} + +Received Response [UID: 1257884204.72121] +{"response"=>{"uid"=>"1257884204.72121", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9009}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884255.33344 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"aa"}}} + +Received Response [UID: 1257884255.33344] +{"response"=>{"uid"=>"1257884255.33344", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9010}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + +Sending Request [UID: 1257884290.21652 URL: http://api.postageapp.com/v.1.0/send_message.json] +{:headers=>{"Subject"=>"My name is {{name}}", "From"=>"somebody@somewhere.com", "Reply-to"=>"somebody@somewhere.com"}, :message=>{"text/html"=>"Hi,
My name is {{name}} and this is a test.
", "text/plain"=>"Hi\r\nMy name is {{name}} and this is a test.\n"}, :recipients=>{"jack@twg.ca"=>{"name"=>"Jack"}}} + +Received Response [UID: 1257884290.21652] +{"response"=>{"uid"=>"1257884290.21652", "status"=>"ok"}, "data"=>{"message"=>{"id"=>9011}}, "api"=>{"version"=>"1.0", "key"=>"x0RqcKNgPffbQOrIk8FC3C2yumEMtW17"}} + diff --git a/log/production.log b/log/production.log new file mode 100644 index 0000000..e69de29 diff --git a/log/server.log b/log/server.log new file mode 100644 index 0000000..e69de29 diff --git a/log/test.log b/log/test.log new file mode 100644 index 0000000..e69de29 diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..eff660b --- /dev/null +++ b/public/404.html @@ -0,0 +1,30 @@ + + + + + + +You may have mistyped the address or the page may have moved.
+Maybe you tried to change something you didn't have access to.
+We've been notified about this issue and we'll take a look at it shortly.
+