So I have installed Instant Rails on my computer, and I've been
following some RoR tutorials from lynda.com. I created a new app
called music_library, and then when trying to create a model, I get
something weird,
NOW, I've generated a model before, and I THINK i ran rails script or
rails script/generate in my rails_apps directory. Then I noticed that
i had to be in my actual application directory (music_library) in this
case, and when i tried to generate a model I get only these three
lines, as opposed to a lot more before. Same thing happens when I try
to generate a controller. And my application does not do what it's
supposed to do in the tutorial (basically throws me an error)
Actually, not for Instant rails.
On the instant rails window, click the black "I". Bring up Rails
Applications>Manage Rails Applications... In this window, click on
"Create New Rails App". This brings up a command prompt in the
Instant Rails environment. In particular, the ruby which comes with
Instant Rails is in the path. "ruby script/generate model Albums"
should now work just fine. If you are already set up in subversion, -
c will add the new files.