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 -- Posted via http://www.ruby-forum.com/.
Arthur Rats 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.cssin public/stylesheets.> > Now I dont get anything at all, they are missingDid 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 fromSure 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?> > ThanksBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/.
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 -- Posted via http://www.ruby-forum.com/.
`rails myproject -d mysql -t` will get you a backtrace. -eric On Oct 21, 9:30 am, Arthur Rats <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> 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 > -- > Posted viahttp://www.ruby-forum.com/.