Alex,

> undefined method `identity_map=' for ActiveRecord::Base:Class
> g:/ror/Ruby192/lib/ruby/gems/1.9.1/bundler/gems/rails-1bedee56314f/
> activerecord/lib/active_record/base.rb:1025:in `method_missing'

It looks like you are running rails under Windows.  That's probably
not related to this specific error, but its uncharted territory for
me.  Don't forget to always run from the command prompt with bundle
exec rake or bundle exec rails (or use the --binstubs trick).

But based on you path above, it appears that bunlder is running and
picking up the rails gem properly.  Make sure that bundle exec rails --
version returns the expected result.

If you're still having troubles, you can also get a fuller stack trace
with bin/rake --trace community_engine:install

>      I am wondering it is because the issue of rails 3.1.0.beta.
> Following is the way i created my rails 3.1.0.beta:
>      1. download the rails 3.1.0.beta ball from git-hub.
>      2. "bundle all", then "rake build"
>      3. go to dist directory, run "gem install rails-3.1.0.beta.gem

I first tried a method similar to what you described, but ran into
some other error during the rake build step with rails edge at that
time.  For reference, I've tried to document (mostly from memory) the
steps I took to set up a development environment.

I don't think that these steps will resolve your issue, but may serve
as a useful reference.

# Optionally fork CE on github.
git clone ... # (from either bborn or your own fork)
cd communityengine
bundle install --binstubs
bin/rails --version
bin/rails new test_app

mv test_app .. # (move test app directory out of the CE folder)
cd ../test_app

then follow the instructions in the docs: modify Gemfile, bundle
install --binstubs, etc.

Make sure to always run commands, including rake, from the bin/
folder.

I also recommend that you then point to :path => '../communityengine'
in your Gemfile.  Please note, I just found a few mistakes in the
Gemfile instructions I pointed you to.  Just be sure to use the
meta_search line that is currently commented out.  I'll be patching
those shortly.

>     I am confused, why we add following line into gem file. What is
> different with the ball file version with bborn branch?
>     gem 'rails', :git => 'http://github.com/bborn/rails.git'

I'm not sure what changes, if any, Bruno made to this fork.  It may be
safe to replace this with the rails/rails.git, but I haven't tried
that.  If you're still troubleshooting it would be worth a shot, but
you'll also pick up more recent changes in rails which could cause
other issues.

-- 
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.

Reply via email to