views:

38

answers:

2

I'm new to rails and trying to follow along with railstutorial.org.

When I use Rails generate scaffold user:string password:string, it creates a new folder entitled generate and does the same command as "Rails Demo_App". I'm assuming I don't have something installed correctly.

I'm using Windows 7, Cygwin/Vim/Sqlite3 - I have needed to reinstall Cygwin about 3 times to make sure openssh, git, vim, and other plugins/libraries were installed. I'm assuming I will need to do something similar again.

Also, a Gemfile isn't created with the rails command. Could this be related?

+1  A: 

Aren't you supposed to call script/generate scaffold user:string password:string ? AFAIK, calling generate not from app folder may cause incorrect behaviour.

Nikita Rybak
A: 

Use script/generate scaffold ... inside of your application directory. The rails command is used to create a new project.

Gabriel Evans