pulled down a repo from git. For some reason I need to do
./script/rails.rb s
where on the rails 3 ap I started on my box, I can just do the
rails server
can anyone help me set up my environment so I don’t have to do this? I’m still trying to figure out what I need to type to do a migration…
I think I’ve figured this out. The repo you downloaded was from somebody developing on a Windows machine. They have to add the “.rb” extention to
script/railsto get it to work right.Calling
rails serveris really just an alias forscript/rails. But you’re getting an error because when you typerails server,script/railsisn’t there.The solution is easy: in your local copy of that project, rename
script/rails.rbback toscript/railsthe way it should be.Also,
rails sandrails serverare the same thing – one is just a shortcut.