Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 3.0pre produces a conflict on new project creation

#3640

Generating a new Rails application using Rails 3.0pre, produces a conflict because it appears to want to create a development.rb file a second time:


$ ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-darwin10]

$ rails tmp
      create  
      create  README
      create  .gitignore
      create  Rakefile
      create  config.ru
      create  Gemfile
      create  app
      create  app/controllers/application_controller.rb
      create  app/helpers/application_helper.rb
      create  app/models
      create  app/views/layouts
      create  config
      create  config/routes.rb
      create  config/application.rb
      create  config/environment.rb
      create  config/environments
      create  config/environments/development.rb
    conflict  config/environments/development.rb
Overwrite /Users/conradwt/rails.dir/examples/tmp/config/environments/development.rb? (enter "h" for help) [Ynaqdh]

Reported by Conrad Taylor · December 31st, 2009 @ 03:28 AM

State: stale
Milestone: none
Assigned to: José Valim José Valim
Importance: Low

Activity

  1. José Valim
    José Valim
    • State changed from new to open
    • Assigned user set to José Valim

    I could not reproduce on master:

    git clone git://github.com/rails/rails.git
    ruby rails/railties/bin/rails tempapp
    

    Can you?

    January 2nd, 2010 @ 11:44 PM

  2. Conrad Taylor
    Conrad Taylor

    I performed the following operations:

    
    git clone git://github.com/rails/rails.git
    cd rails
    git submodule init
    git submodule update
    sudo rake install
    cd
    rails tempapp
    

    Next, this happens consistently following the above on my MacBook Pro (Intel) but I wasn't able to reproduce
    this on the PowerMac G5 (PPC). Now, I'm seeing the same issue on MacBook Pro (Intel) when I try the following:

    
    git clone git://github.com/rails/rails.git
    ruby rails/railties/bin/rails tempapp
    

    Finally, this doesn't happen when using Rails 2.3.5.

    January 3rd, 2010 @ 12:46 AM

  3. José Valim
    José Valim

    This is odd! I definitely cannot reproduce here or anyone in the core team. Have you tried reinstalling 1.9.1 in rvm? (I use 1.9.1 from rvm as well)

    January 3rd, 2010 @ 11:35 AM

  4. Conrad Taylor
    Conrad Taylor

    I installed Ruby 1.9.1p376 using MacPorts on both laptop (i.e. MacBook Pro) and desktop (i.e. PowerMac G5).

    January 3rd, 2010 @ 01:09 PM

  5. José Valim
    José Valim

    I cannot duplicate at all. This problem still happens? Any extra information?

    January 20th, 2010 @ 01:58 PM

  6. José Valim
    José Valim
    • State changed from open to stale

    Ok, I'm closing this one. I will reopen if you have any information on how to reproduce it.

    February 24th, 2010 @ 07:33 AM

  7. Conrad Taylor
    Conrad Taylor

    Jose, I cannot reproduce this issue either after upgrading to the Rails 3.0.0 beta.

    February 24th, 2010 @ 10:17 AM

  8. José Valim
    José Valim

    Awesome, thanks for the update!

    February 24th, 2010 @ 10:20 AM