Rails 3 with iPhone

Hi all,

Im working in a project where i will get response from iPhone. But while
getting this, Im getting a bunch of errors like this..

Error during failsafe response: ActionView::Template::Error
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/whiny_nil.rb:48:in
`method_missing'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/http/parameters.rb:10:in
`parameters'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb:3:in
`__usr_lib_ruby_gems_____gems_actionpack_______lib_action_dispatch_middleware_templates_rescues_diagnostics_erb__635341031__619180958_0'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/template.rb:135:in
`send'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/template.rb:135:in
`render'
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/notifications.rb:54:in
`instrument'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/template.rb:127:in
`render'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/render/rendering.rb:59:in
`_render_template'
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/notifications.rb:52:in
`instrument'
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/notifications/instrumenter.rb:21:in
`instrument'
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/notifications.rb:52:in
`instrument'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/render/rendering.rb:56:in
`_render_template'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_view/render/rendering.rb:26:in
`render'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/middleware/show_exceptions.rb:88:in
`rescue_action_locally'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/middleware/show_exceptions.rb:68:in
`render_exception'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/middleware/show_exceptions.rb:59:in
`call'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/rack/logger.rb:13:in
`call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/runtime.rb:17:in
`call'
  /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.1/lib/active_support/cache/strategy/local_cache.rb:72:in
`call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in `call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in
`synchronize'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/lock.rb:13:in `call'
  /usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/middleware/static.rb:30:in
`call'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:168:in
`call'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:77:in
`send'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/application.rb:77:in
`method_missing'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/rack/log_tailer.rb:14:in
`call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/content_length.rb:13:in
`call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/chunked.rb:15:in
`call'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/handler/mongrel.rb:67:in
`process'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
`process_client'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in `each'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
`process_client'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
`initialize'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `new'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:285:in `run'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in
`initialize'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `new'
  /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/lib/mongrel.rb:268:in `run'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/handler/mongrel.rb:38:in
`run'
  /usr/lib/ruby/gems/1.8/gems/rack-1.2.5/lib/rack/server.rb:217:in
`start'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/commands/server.rb:65:in
`start'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/commands.rb:30
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/commands.rb:27:in
`tap'
  /usr/lib/ruby/gems/1.8/gems/railties-3.0.1/lib/rails/commands.rb:27
  script/rails:6:in `require'
  script/rails:6

Started POST "/api/v1/sessions/" for 192.9.200.113 at Wed Jan 18
16:20:26 +0530 2012

EOFError (bad content body):

Please anybody help on this

What comes before this?

Javier

Javier Quarite wrote in post #1041505:

`method_missing'

/usr/lib/ruby/gems/1.8/gems/actionpack-3.0.1/lib/action_dispatch/http/parameters.rb:10:in

`parameters'

What comes before this?

Javier

Hi Javier..

Thanks for your reply..

This is what i get when they post parameters from iPhone..

The method is not even called and before callling the method itself this
error pops up.