
Challenge: Introduce yourself to Ruby on Rails by creating a simple web application.
Rails is a framework for the Ruby programming language and is focused on MVC (Model-View-Controller) architecture for programming. After spending a few months learning and playing with Rails, and then returning to do some C++ programming, I realized how much Rails had affected me. My code was clearer and much more organized. I think we can all benefit by just introducing ourselves to Ruby on Rails. I challenge you to try out Rails and write a simple web application. (maybe use the Twitter API that you looked at in a previous challenge)
IDEAS
- Create a small personal blog (very easy in Rails)
- Create a number guessing game (always fun for learning a new language)
- Create a web application that sends you an email (or anyone who enters an email address)
- Create a user registration/authentication system (little more advanced, but still doable)
RESOURCES
One great way to learn Rails is just to start playing with it. Rails tries to take complicated ideas and make them easier with the tools it brings. If you're looking for information or help with your challenge, then I first suggest the Ruby programming forum right here on Dream.In.Code. You can also look at Railscast which has a plethora of screencasts for doing all sorts of cool stuff with Rails. Also, if you plan on doing the blog idea, here's a screencast of how to create one in 15 minutes with Rails. And of course, the Ruby on Rails Documentation.
HOW TO GET STARTED
Getting Rails set up to develop with is fairly easy and only requires downloading one or two things, depending on your OS.
Windows users have InstantRails, which quickly and painlessly gets you going. Here's a simple screencast on setting it up.
Apple ships their latest OS X releases with Ruby set up by default, but may need updating. Try the following commands in a Terminal window:
sudo gem update -system sudo gem install rails
Once you get Ruby on Rails set up, you can create a project with the following command:
rails TestApp
You now have your basic Ruby on Rails application called TestApp set up with folders and everything. Test it out by going into the new TestApp directory and typing:
script/server
or
ruby script/server
This will start an internal web server to host the Rails web application. After it's running, point your browser to localhost:3000 to view the page.
Now let loose and see what Ruby on Rails has to offer you.
Thanks to Skaggles for submitting this challenge.

New Topic/Question
Reply



MultiQuote













|