zachinglis/crummy — Issue #16: controller level add_crumb() fails
Author: sjain
Created: 2011-10-28 21:44:17+00:00
State: open

With a class level add_crumb defined as follows:

class UsersController < ApplicationController
add_crumb("User List", :except => [:index]) { |instance| instance.send :users_path }
...
end

I get following in latest master:

NoMethodError: undefined method `map!' for "/users":String
vendor/bundle/ruby/1.8/gems/crummy-1.3/lib/crummy/action_controller.rb:24:in `add_crumb'
vendor/bundle/ruby/1.8/gems/activesupport-2.3.12/lib/active_support/callbacks.rb:182:in `call'
vendor/bundle/ruby/1.8/gems/activesupport-2.3.12/lib/active_support/callbacks.rb:182:in `evaluate_method'
vendor/bundle/ruby/1.8/gems/activesupport-2.3.12/lib/active_support/callbacks.rb:166:in `call'
test/functional/users_controller_test.rb:22:in `__bind_1319836051_713591'