Rails generator fails to generate all files

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

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
[email protected]

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

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

-eric

On Oct 21, 9:30 am, Arthur R. [email protected]