The Rails Creator

December 3rd, 2007 -

A while back I created this gem that took ahold of your hand and walked you through creating a rails application, adding some extra functionality, such as committing it to subversion for you. Well, I never used it – I hated it. It was like something that came out of a bad eighties movie. I mean, a terminal session that talks to you, with text, asking you questions every, and I mean every, step of the way. Sheesh. Annoying! And the code, I won’t even talk about that…

So, it’s time to introduce a new and better version. One I’m actually using now. It still has the same name (thanks drnic), but it has grown up a bit. Let’s see how this thing works:

Say I want to create my rails app using mysql, built on edge rails:

rails_creator -m my_app_name

Say, I don’t want it on edge rails, but rather on the version installed on my machine (with mysql)

rails_creator -M my_app_name

Say, i’m allergic to mysql and want postgres with the rails version on my machine:

rails_creator -P my_app_name

And, what if I’m feeling spicy want to live on the edge with postgres?

rails_creator -p my_app_name

That’s it.

If you want to commit it to one of your svn repo’s, it will ask you after it has created your application. At the time, I wasn’t sure how I wanted to incorporate committing to svn, so it asks you right now ( I know back to the eighties) and gets the location and all that stuff.

Perhaps I’ll update it so you can do rails_creator—m-svn my_app or something like that. Or you can suggest an idea and I’ll take it under consideration.

Want to install it? Just do:

sudo gem install rails_creator

and add some hot sauce. enjoy!

Tags: rails

 

Comments

Kevin Miller

December 3rd, 2007

Keep this up and people will forget how to do it all together… :)

Good job!

Kevin

Jeff Whitmire

December 4th, 2007

Thanks for keeping this up Robert. I had forgotten about your gem, but found it again just as I had need of it.

 

Commenting has been turned off.