This project is archived and is in readonly mode.
App generation attemps to generate app/views/layouts/application.html.erb twice
Reported by Ryan Bigg | April 10th, 2010 @ 11:44 PM
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
Comments and changes to this ticket
-
Charles Melbye April 11th, 2010 @ 05:39 AM
Can you provide more information please, such as the version of Rails that you're using?
-
Ryan Bigg April 11th, 2010 @ 06:42 AM
Jesus, my bad! I should know better than that! It was the Rails 3 HEAD version.
-
Ryan Bigg April 11th, 2010 @ 09:10 AM
Confirmed by amerine on IRC, spastorino says he cannot. I have left a note to future-self to give it a go.
-
Andrew White April 12th, 2010 @ 12:32 PM
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? -
Santiago Pastorino April 12th, 2010 @ 03:26 PM
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. -
Ryan Bigg April 12th, 2010 @ 09:18 PM
Yup, just about to re-install it from head now and attempt it again.
-
Ryan Bigg April 12th, 2010 @ 09:25 PM
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.
-
Ryan Bigg April 12th, 2010 @ 09:59 PM
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.
-
Ryan Bigg April 12th, 2010 @ 10:05 PM
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
. -
Ryan Bigg April 12th, 2010 @ 10:47 PM
- 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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>