This project is archived and is in readonly mode.
App generation attemps to generate app/views/layouts/application.html.erb twice
-
Charles Melbye
Can you provide more information please, such as the version of Rails that you're using?
-
Ryan Bigg
Jesus, my bad! I should know better than that! It was the Rails 3 HEAD version.
-
Ryan Bigg
Confirmed by amerine on IRC, spastorino says he cannot. I have left a note to future-self to give it a go.
-
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_threethat you typed? -
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. -
Ryan Bigg
Yup, just about to re-install it from head now and attempt it again.
-
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.
-
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.
-
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. -
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.