I had that problem, and it was that I had a from_plugin call in my app's
routes to a plugin that actually didn't exist. If you're sure the plugin
does exist, can you try editing that file and make it like:
module Engines::RailsExtensions::Routing
# Loads the set of routes from within a plugin and evaluates them at this
# point within an application's main <tt>routes.rb</tt> file.
#
# Plugin routes are loaded from <tt><plugin_root>/routes.rb</tt>.
def from_plugin(name)
map = self # to make 'map' available within the plugin route file
# add these debug stmts
Engines.logger.debug "Trying to load plugin #{name}'s routes."
Engines.logger.debug "Engines loaded so far: #{Engines.plugins.collect
(&:name).inspect}"
routes_path = Engines.plugins[name].routes_path
Engines.logger.debug "loading routes from #{routes_path}"
eval(IO.read(routes_path), binding, routes_path) if File.file
?(routes_path)
end
end
....
and let us know what the result of those lines is?
Can you also paste in the full stack trace?
thnx
-Andrew
On Jan 2, 2008 7:59 PM, Sean Schofield <[EMAIL PROTECTED]> wrote:
> Getting a routing error when I tried upgrading to Rails 2.0.2.
>
> ... vendor/plugins/engines/lib/engines/rails_extensions/routing.rb:69:in
> `from_plugin': You have a nil object when you didn't expect it!
> (NoMethodError)
> The error occurred while evaluating nil.routes_path from ...........
>
> Any ideas on this? Its possible there is a 2.0 issue with my code or
> another plugin but the logs show only the following ...
>
> Attempting to copy plugin assets from
> '..............vendor/plugins/calendar_date_select/public' to
> '............ public/plugin_assets'
> ** has_many_polymorphs: rails environment detected
> ** has_many_polymorphs: loaded ok
>
> TIA,
>
> Sean
> _______________________________________________
> Engine-Users mailing list
> [email protected]
> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
>
_______________________________________________
Engine-Users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org