Jump to content

The ultimate community for Ruby on Rails developers.


Photo

Facing NoMethodError (undefined method `sweep' for #<Hash:0x2e346a0>): exception


  • Please log in to reply
2 replies to this topic

#1 irakesh710@gmail.com

irakesh710@gmail.com

    Passenger

  • Members
  • 4 posts

Posted 06 December 2013 - 11:07 AM

HI ,

 

Whenever I runs server using command  "rails s"

It is showing below error :

NoMethodError (undefined method `sweep' for #<Hash:0x2e346a0>):
  actionpack (3.2.12) lib/action_dispatch/middleware/flash.rb:239:in `call'
  rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
  rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
  actionpack (3.2.12) lib/action_dispatch/middleware/cookies.rb:341:in `call'
  activerecord (3.2.12) lib/active_record/query_cache.rb:64:in `call'
  activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connectio
n_pool.rb:479:in `call'
  actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:28:in `block i
n call'
  activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `_run__494640093
__call__709208679__callbacks'
  activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback'
 
  activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_call_callb
acks'

 

 

 

 

 

 

I am not able to figure out what does this error means.Please guide .



#2 Bharat Soni

Bharat Soni

    Dispatcher

  • Members
  • 55 posts
  • LocationAhmedabad

Posted 06 December 2013 - 12:54 PM

Can you please write the version of Ruby and Rails which you have use in your application ?

:)


Fun with Ruby on Rails


#3 irakesh710@gmail.com

irakesh710@gmail.com

    Passenger

  • Members
  • 4 posts

Posted 06 December 2013 - 01:19 PM

I have ruby version 1.9.3 and rails version 3.2.12






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users