# Rails generator fails to generate all files

**URL:** <https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656>\
**Category:** Rails\
**Created:** [October 21, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656 "2009-10-21T17:47:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![artrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@artrat](https://www.ruby-forum.com/u/artrat)\
**Post date:** [October 21, 2009, 5:47pm UTC](https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656/1 "2009-10-21T17:47:23Z")

</div>

Hi

Ive lost all idea of why this can happen

I normally use rails to generate a new project

rails myproject -d mysql

inside the myproject directory normally there would be a file called  
application.html.erb, with in the public directory a file called  
style.css

Now I dont get anything at all, they are missing

All my previous projects have those files,

using 2.3.4 Ruby 1.9.1 Windows

Any ideas? Its bugging me somthing rotten that I havent a copy of those  
files anywhere on my PC to copy from

Does any one else know what i can do?

Thanks

---

<div class="post-metadata">

**Author:** ![artrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@artrat](https://www.ruby-forum.com/u/artrat)\
**Post date:** [October 21, 2009, 6:09pm UTC](https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656/2 "2009-10-21T18:09:18Z")

</div>

Arthur R. wrote:

> Hi
> 
> Ive lost all idea of why this can happen
> 
> I normally use rails to generate a new project
> 
> rails myproject -d mysql
> 
> inside the myproject directory normally there would be a file called  
> application.html.erb,

That would be in myproject/app/views/layouts or something like that.  
But I’m not sure Rails normally creates such a file. It creates  
public/index.html, though.

> with in the public directory a file called  
> style.css

in public/stylesheets.

> Now I dont get anything at all, they are missing

Did you look in the locations I gave?

> All my previous projects have those files,
> 
> using 2.3.4 Ruby 1.9.1 Windows
> 
> Any ideas? Its bugging me somthing rotten that I havent a copy of those  
> files anywhere on my PC to copy from

Sure you do. I think Rails keeps a master copy _somewhere_. But  
you’re right that if your Rails gem is misbehaving, you should figure  
out why.

> Does any one else know what i can do?

Reinstall the Rails gem?

> Thanks

## Best,

Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![artrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@artrat](https://www.ruby-forum.com/u/artrat)\
**Post date:** [October 21, 2009, 6:30pm UTC](https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656/3 "2009-10-21T18:30:32Z")

</div>

Hi Marnen

Yes did look into the locations - its Ruby 1.9 playing up,  
uninstalled/re installed Rails gem didnt make any difference

went back to 1.8.7 and then re installed rails 2.3.4 again and the files  
appear, gem works ok

Looks like another glitch with 2.3.4 and ruby 1.9 on Windows.

Is there a log for the rails generator to trace where it goes wrong?

Thanks  
Art

---

<div class="post-metadata">

**Author:** ![artrat](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@artrat](https://www.ruby-forum.com/u/artrat)\
**Post date:** [October 21, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/rails-generator-fails-to-generate-all-files/177656/4 "2009-10-21T18:56:03Z")

</div>

`rails myproject -d mysql -t` will get you a backtrace.

-eric

On Oct 21, 9:30 am, Arthur R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
