Having updated to 0.11.0, (though by uninstalling and then installing
instead of using "gem update", because that didn''t seem to
actually
make my app aware of the new libraries) I find that my app is now
broken. When attempting to call the index action of my "topic"
controller, I get the following error:
> NoMethodError in Topic#index
> undefined method `discard'' for {}:Hash
with the following framework trace:
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/flash.rb:151:in `fire_flash''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:316:in `send''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:316:in `call_filters''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:312:in `each''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:312:in `call_filters''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:301:in `before_action''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/filters.rb:293:in
`perform_action_without_benchmark''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/benchmarking.rb:30:in
> `perform_action_without_rescue''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/benchmarking.rb:30:in `measure''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/benchmarking.rb:30:in
> `perform_action_without_rescue''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/rescue.rb:79:in `perform_action''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/base.rb:323:in `send''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/base.rb:323:in `process''
> /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.6.0/lib/
> action_controller/base.rb:266:in `process''
> /usr/local/lib/ruby/gems/1.8/gems/rails-0.11.0/lib/dispatcher.rb:32:in
> `dispatch''
> /Users/mdaines/jbk/public/dispatch.rb:10
> /usr/local/lib/ruby/1.8/apache/ruby-run.rb:53:in `load''
> /usr/local/lib/ruby/1.8/apache/ruby-run.rb:53:in `handler''
I''m sort of imagining this not really being a problem with the code in
"flash.rb", and instead with something that calls it, but of course I
have no real idea about that.
Anyway, please help! If it is bad form to post things like this on the
mailing list, I apologize.
Thanks,
- Michael Daines