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:inparameters’
/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:insend’
/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:ininstrument’
/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:ininstrument’
/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:inrescue_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:incall’
/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:incall’
/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:incall’
/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:incall’
/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:incall’
/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:inmethod_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:incall’
/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:inprocess’
/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:ineach’
/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:inrun’
/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:innew’
/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:ininitialize’
/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:inrun’
/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:instart’
/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:intap’
/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

On Wed, Jan 18, 2012 at 6:09 AM, angel david [email protected]
wrote:

`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

Javier Q. wrote in post #1041505:

On Wed, Jan 18, 2012 at 6:09 AM, angel david [email protected]
wrote:

`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.