views:

35

answers:

1

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...

+2  A: 

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/rails to get it to work right.

Calling rails server is really just an alias for script/rails. But you're getting an error because when you type rails server, script/rails isn't there.

The solution is easy: in your local copy of that project, rename script/rails.rb back to script/rails the way it should be.

Also, rails s and rails server are the same thing - one is just a shortcut.

Jaime Bellmyer
I don't even know how the file ended up as rails.rb! It was definitely made on a mac. I substituted the file with one from a rails 3 proj I had made on my box and it worked! thanks jaime.
jtmkrueger
You're welcome, glad I could help!
Jaime Bellmyer