Looks like the Engines plugin can't find the CE plugin, you're getting a
null pointer on #69 of routing.rb (in Engines):
routes_path = Engines.plugins[name].routes_path
This is called from your routes.rb (where you do map.from_plugin
:community_engine).
Are you certain that your environment.rb is set up correctly? It should
include something like the following:
RAILS_GEM_VERSION = '2.1.0' unless defined? RAILS_GEM_VERSION
# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')
require File.join(File.dirname(__FILE__), '../vendor/plugins/engines/boot')
Rails::Initializer.run do |config|
config.plugins = [:engines, :community_engine, :white_list, :all]
config.plugin_paths +=
["#{RAILS_ROOT}/vendor/plugins/community_engine/engine_plugins"]
Also, make sure you have a directory in vendor/plugins called
'community_engine' (note the underscore).
On Fri, Sep 26, 2008 at 9:08 AM, Jonathan <[EMAIL PROTECTED]> wrote:
>
> @Tibo - The error is exactly the same, except now with 2.1.0 as
> opposed to 2.1.1 - This leads me to believe that the initial problem
> had nothing to do with what version of Rails I have, especially
> considering Thanh Doan got CE working with 2.1.1
>
> gem version is 1.2.0
> rails version is (now) 2.1.0
>
> script/about output:
>
> /home/nimblecraft/public_html/nimbleSNS/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 /home/
> nimblecraft/public_html/nimbleSNS/config/routes.rb:39
> from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/
> action_controller/routing/route_set.rb:207:in `draw'
> from /home/nimblecraft/public_html/nimbleSNS/config/routes.rb:1
> from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
> active_support/dependencies.rb:502:in `load'
> from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
> active_support/dependencies.rb:502:in `load'
> from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
> active_support/dependencies.rb:354:in `new_constants_in'
> from /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.0/lib/
> active_support/dependencies.rb:502:in `load'
> from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.0/lib/
> action_controller/routing/route_set.rb:253:in `load_routes!'
> ... 9 levels...
> from
> /usr/lib/ruby/gems/1.8/gems/rails-2.1.0/lib/commands/about.rb:1
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `gem_original_require'
> from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> `require'
> from script/about:3
>
>
> On Sep 26, 3:40 pm, "Thanh Doan" <[EMAIL PROTECTED]> wrote:
> > I installed ubuntu 8.04, gem 1.2.0, rails 2.1.1 and managed to get CE
> > working.
> >
> > pls run gem -v to double check your gem version.
> >
> > The only thing I changed is to move
> > APP_URL = "http://localhost:3000" to the top of the development.rb and
> > test.rb files
> >
> > On Fri, Sep 26, 2008 at 1:23 AM, Jonathan <[EMAIL PROTECTED]> wrote:
> >
> > > Getting the same error as above, even after uninstalling Rails 2.1.1
> > > and replacing it with 2.1.0 - Guessing that is not the issue then?
> >
> > > On Sep 26, 3:54 am, Jonathan <[EMAIL PROTECTED]> wrote:
> > > > Many thanks.
> >
> > > > On Sep 26, 3:41 am, "Bruno Bornsztein" <[EMAIL PROTECTED]>
> > > > wrote:
> >
> > > > > gem uninstall -h
> > > > > gem install -h
> >
> > > > > On Thu, Sep 25, 2008 at 1:40 PM, Jonathan <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > Hrm, I see. Forgive me if this is a stupid question (being a RoR
> > > > > > newbie) - is it possible roll back my version of Rails to 2.1.0?
> >
> > > > > > On Sep 26, 3:30 am, "Bruno Bornsztein" <
> [EMAIL PROTECTED]>
> > > > > > wrote:
> > > > > > > You're using Rails 2.1.1: CE is not yet compatible with that
> > > version
> > > > > > (we're
> > > > > > > still on 2.1.0). Also, I think the Engines plugin hasn't been
> > > upgraded to
> > > > > > > that version yet.
> >
> > > > > > > On Thu, Sep 25, 2008 at 1:28 PM, Jonathan <[EMAIL PROTECTED]>
> > > wrote:
> >
> > > > > > > > Did a search before posting this, but didn't see anything
> that
> > > > > > > > addressed this particular issue. I'm getting the following
> error
> > > when
> > > > > > > > running the "script/generate plugin_migration" command:
> >
> > > /home/nimblecraft/public_html/nimbleSNS/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
> > > /home/
> > > > > > > > nimblecraft/public_html/nimbleSNS/config/routes.rb:39
> > > > > > > > from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/
> > > > > > > > action_controller/routing/route_set.rb:207:in `draw'
> > > > > > > > from
> > > /home/nimblecraft/public_html/nimbleSNS/config/routes.rb:1
> > > > > > > > from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
> > > > > > > > active_support/dependencies.rb:503:in `load'
> > > > > > > > from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
> > > > > > > > active_support/dependencies.rb:503:in `load'
> > > > > > > > from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
> > > > > > > > active_support/dependencies.rb:355:in `new_constants_in'
> > > > > > > > from
> /usr/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/
> > > > > > > > active_support/dependencies.rb:503:in `load'
> > > > > > > > from /usr/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/
> > > > > > > > action_controller/routing/route_set.rb:253:in `load_routes!'
> > > > > > > > ... 9 levels...
> > > > > > > > from
> > > > > > > >
> /usr/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/generate.rb:
> > > > > > > > 1
> > > > > > > > from
> > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > > > > > > > `gem_original_require'
> > > > > > > > from
> > > > > > /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
> > > > > > > > `require'
> > > > > > > > from script/generate:3
> >
> > > > > > > > Thoughts? Suggestions? Not sure what to do at this point.
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---