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.

App generation attemps to generate app/views/layouts/application.html.erb twice

#4364

Ran rails two_thirty and got this:

  create
  create  README
  create  Rakefile
  create  config.ru
  create  Gemfile
  create  app
  create  app/controllers/application_controller.rb
  create  app/views/layouts/application.html.erb
conflict  app/views/layouts/application.html.erb
Overwrite /home/boris/two_three/app/views/layouts/application.html.erb? (enter "h" for help) [Ynaqdh] y

Reported by Ryan Bigg · April 10th, 2010 @ 11:44 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Charles Melbye
    Charles Melbye

    Can you provide more information please, such as the version of Rails that you're using?

    April 11th, 2010 @ 05:39 AM

  2. Ryan Bigg
    Ryan Bigg

    Jesus, my bad! I should know better than that! It was the Rails 3 HEAD version.

    April 11th, 2010 @ 06:42 AM

  3. Ryan Bigg
    Ryan Bigg

    Confirmed by amerine on IRC, spastorino says he cannot. I have left a note to future-self to give it a go.

    April 11th, 2010 @ 09:10 AM

  4. Andrew White
    Andrew White

    Ryan I can't reproduce this using HEAD on 1.8.7 or 1.9.1. Looking at the error message it's got '/home/boris/two_three' as the application root so are you sure it was rails two_three that you typed?

    April 12th, 2010 @ 12:32 PM

  5. Santiago Pastorino
    Santiago Pastorino

    Yes Andrew i can't reproduce neither and i'm seeing the same as you /home/boris/two_three/app/views/layouts/application.html.erb two_three is not two_thirty.
    Perhaps Ryan try to reproduce again.

    April 12th, 2010 @ 03:26 PM

  6. Ryan Bigg
    Ryan Bigg

    Yup, just about to re-install it from head now and attempt it again.

    April 12th, 2010 @ 09:18 PM

  7. Ryan Bigg
    Ryan Bigg

    Latest head and Ruby version: ruby 1.9.2dev (2010-04-09 trunk 27265) [i686-linux], it's still occurring. Will take a look at this.

    April 12th, 2010 @ 09:25 PM

  8. Ryan Bigg
    Ryan Bigg

    When I looked in the /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta3/lib/rails/generators/rails/app/templates/app/views/layouts/ directory I saw there is one application.html.erb and one application.html.erb.tt. I nuked my cloned version of Rails and started afresh, and only application.html.erb.tt exists, which makes sense. Giving it a try now.

    April 12th, 2010 @ 09:59 PM

  9. Ryan Bigg
    Ryan Bigg

    Still can only confirm it. This is what the railties gem contains: http://skitch.com/ryanbigg/n6tbw/boris-borscht-home-boris-rails-rai....

    The railties directory inside the cloned repo does not contain this directory, so I think that it's been generated somehow by rake install.

    April 12th, 2010 @ 10:05 PM

  10. Ryan Bigg
    Ryan Bigg
    • State changed from new to resolved

    I don't know how this happened. I removed the railties gem and installed it once more and now it works. Thanks to Santiago for suggesting this.

    April 12th, 2010 @ 10:47 PM