> He has a Rails app running; he installs my gem; he restarts his
> server; he gets an error in one of the my_model_url methods, i.e.,
> model_path(my_model) fails for him as a result of installing a gem
> which is only required in his .irbrc, and not anywhere in his
> application.
Actually, the error isn't in Rails itself as far as I can tell. As you
can see in the screencast @module becomes nil, which could point to
the fact that it's never set in the controller, which is
understandable as utility belt probably uses a lot magic to create
stuff like the finder shortcuts.
It's possible that it has something to do with IRB and reading
the .irbrc, but as far as I know it's only used through ruby-debug now.
Can you find out…
- …what version of Rails he's using.
- …what is in his .irbrc.
- …what happens when he removes the .irbrc.
And after that create a ticket about it?
Manfred
breakpoint.rb requires irb so it may be coming from that (or at least it used to)...
acts_as_statemachine/test/test_helper.rb:
...
require 'active_support/binding_of_caller'
require 'active_support/breakpoint'
...
Moral: Also double-check any other installed plugins.
--