Ruby on Rails for Designers

Ruby on Rails for Designers

Apr 23rd in Ruby by Alex Coomans

Ruby on Rails is an open-source web framework that's optimized for programmer happiness and sustainable productivity. It lets you write beautiful code by favoring convention over configuration.

This is the way Ruby on Rails promotes itself - but in my words, it is an incredible framework that can really make your life much easier. You can learn more at their site http://rubyonrails.org

PG

Author: Alex Coomans

This is a NETTUTS contributor who has published 4 tutorial(s) so far here. Their bio is coming soon!

Step 1- Installing Ruby on Rails

Installing Ruby on Rails (also often shortened to RoR) is fairly painless on most systems, but you will need to be comfortable opening up the terminal. The Ruby on Rails download page provides links to get started, and I will reproduce them here to save you a bit of time. Just as a note, these are the places to get Ruby, which is what Rails is programmed in, and we will be installing Rails in a minute. To learn more about the language, review the Ruby site

  • Windows: One-Click Ruby Installer (I recommend using 1.8.6-26 Final Release)
  • Mac OS X 10.4: Ships with broken Ruby but you can follow the amazing guide by Dan Benjamin
  • Mac OS X 10.5: If you install the Developer Tools from Apple you will be set. Try either your installation discs or Apple's Developer Site and download Xcode
  • Linux: While this may vary for each distribution, you will need to install ruby, irb, & rdoc

Now that we've downloaded Ruby, make sure you have RubyGems, which is a package manager for Ruby.

Ruby Package

To test if you have RubyGems, run the following in terminal:

gem -v

As of this writing, 1.3.2 is the latest version. To update if you don't have the latest version, run the following, and if you are on a Mac, put sudo in the front.

gem update --system

If you won't be using RubyGems, follow these steps:

  1. Download the latest release of RubyGems here.
  2. Extract the package
  3. Change into the directory in your terminal (cd is the command)
  4. Run this in the terminal: ruby setup.rb (Add sudo in front of the command for Linux & Mac OS X users, you will also need to continue that for all gem install commands)

If you have a Linux system, you should be able to install RubyGems through your package manager, but I prefer the method above. If you have any more problems, check out the installation documentation at the RubyGems site.

Installing Rails

Now that we have the latest version of RubyGems, let's install Rails:

gem install rails

It will take a few minutes to install Rails and all of its' dependancies.

Step 2 - Creating an Application

So now that we have Ruby, RubyGems, and Rails installed, let's create a project! To create a new project, you will use the Rails command to create new projects. We will create a simple project named "blog." Note: This will create the app folder in the current directory you are in terminal, so make sure you change into the directory you want the app to be stored in.

rails blog

You should see something like this fly by:

Next, open the project in your favorite text editor/IDE. I personally love TextMate, -while only for Mac OS X, there are some great clones which are also available.

Folder Structure

The folder structure of a Ruby on Rails will look similar to the following:

There are three folders any developer or designer will need to work with on a daily basis: the app, config, and public folders. Please review the short explanations for each of the folders:

  • app: This is where your application's logic lives.
    • controllers: This is where Rails looks for the controller classes. In short, these receive the requests.
    • helpers: Helpers live in this directory and assist the controllers, models, and views
    • models: Each of these basically represents a table in the database, so finding information and setting up your application is dead simple
    • views: what the user sees
      • layouts: these are each of the layouts you can define a controller to use. Makes templating very easy.
      • all the other ones: While in our application we currently don't have any, each of the other folders that will be in this folder represent and relate back to the controllers, and the files that will be in here correspond to the actions in the controller
  • config: This folder holds all of your app's settings. Some specific files:
    • database.yml: This file holds your database settings
    • environment.rb: This file holds the Rails settings for your application
    • environements/: This folder holds the configuration settings for each of the specific environments: development, test, and production
    • routes.rb: This file holds the settings for the URL schema, as well as specific URL and where to send the requests
  • db: This folder will end up holding your database (if you use sqllite), your database schema, and all of your database migrations (changes to the structure)
  • doc: This folder will hold all of the documentation generated by rake doc:app
  • lib: The files in here contain application specific code that doesn't belong in your controllers.
  • log: Rails stores the logs in here, four of them. One for server specific stuff in server.log, and one for each environments.
  • public: This folder contains all of the files that will not change as much. Rails looks for files her before trying to go to a controller. Javascripts are stored in the javascripts folder, images in the images folder, and stylesheets in the stylesheets folder. Static files like robots.txt and other html files can also be stored here. Make sure you delete the index.html file because that will show up instead of what you want!
  • script: These scripts make your life a whole lot easier. The server script launches the development web server, and generate generates code.
  • test: The tests you write and the ones Rails creates for you are all stored here.
  • tmp: Rails stores any temporary files here.
  • vendor: Here you can install any Rails plugins (or libraries) made by third-parties that do not come default with the Rails distribution.

Step 3 - Getting your Hands Dirty

While the purpose of this tutorial is not to create an application, we will still do a bit of programming. Let's first create a controller named articles: (Make sure you have changed into the root of the Rails application)

script/generate controller articles

Now open up the file, and you should see this:

class ArticlesController < ApplicationController
end

All this code says is that we are defining a new class called ArticlesController that inherits from another class called ApplicationController. Now, we are going to create an action (referred to as a method strictly speaking in Ruby) name index, so when you go to http://localhost:3000/articles/ you will be shown something. Change your code so it looks like:

class ArticlesController < ApplicationController
	def index
	end
end

So now that we have an action, go to the app/views folder. We are going to create a view so when a user requests that URL, they actually see something. You may have noticed that there is a new folder in here named articles; this folder was created when we generated the controller. So, make a new file in the articles folder named index.html.erb. You may ask about the ending, the html refers to the type of file, and the erb refers to embedded Ruby as the templating engine. I personally prefer rhtml as it is a single ending, but that will be depreciated in Rails 3, which is planned to be released at RailsConf this summer. Put this into your new file:

The time now is <%= Time.now %>

The <%= %> tags may intrigue you. This tag is meant so that Ruby ouputs the results of the enclosed Ruby code. So this code will print the Time now. The other tag you will use in Rails is simply <%- -%>. This tag is meant for Ruby code that doesn't actually output anything, such as when repeating through items in an array.

Now we are going to create a layout to make this text beautiful. So create a file in the views/layouts directory named application.html.erb with the following in it:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title><%= h(@title) %></title>
    <%= stylesheet_link_tag 'application' %>
	<%= javascript_include_tag 'prototype' %>
    <%= yield(:head) %>
  </head>
  <body>
    <div id="container">
      <%- flash.each do |name, msg| -%>
        <%= content_tag :div, msg, :id => "flash_#{name}" %>
      <%- end -%>      
      <%= yield %>
    </div>
  </body>
</html>

First, before I explain the code, I do want you to know why we named the file application.html.erb. Rails will automatically load this layout every time unless otherwise specified. If you had named this layout "layout" then you would have had to add layout :layout to the top of the controller. This block of code has some important tidbits that you will want to know for when you are developing layouts.

  • <%= stylesheet_link_tag 'application' %>: This tag generate the CSS inclusion tag for the CSS file named application.css
  • <%= javascript_include_tag 'prototype' %>: This tag generates the Javascript inclusion tag for the Prototype javascript library. Prototype is the default javascript library that comes with Rails. You can also put :defaults (not in single quotes) instead of just prototype and Rails will load all of the defaults, :all would load all files in the public/javascripts folder.
  • <%- flash.each do |name, msg| -%>: This code and the code in the block means that for every item in the flash array, it will show a message to the the user.
  • <%= yield %>: This outputs all of the info from the individual view, and outputs in inside the template and sends this to the user.

Now, let's create a quick CSS file, named application.css in public/stylesheets, and put the following in it:

body {
  background-color: #111;
  font-family: Verdana, Helvetica, Arial;
  font-size: 14px;
}
#container {
  width: 75%;
  margin: 0 auto;
  background-color: #FFF;
  padding: 10px;
  border: solid 5px #999;
  margin-top: 20px;
}

Now, we have a very simple application for displaying the current time; hopefully, you should be more acquainted with the basics of Rails.

Step 4 - Finishing Up

You might be thinking, "This is cool and all, but how do I see the final product?" There is a terminal command that you need to run while in the base of the Rails application to start the local development server. script/server will start the server, normally on port 3000. Run the command and point your browser to http://127.0.0.1:3000/articles. You should see the following:

To stop the server select the terminal window and Control-C. This will stop the development server. As a note, make sure you never run a production server this way.

There is one last thing that I would like to show you. As I said before, the config/routes.rb file manages where requests go. Open up the file; we are going to make it so when you go to http://127.0.0.1:3000/, you see the same thing as before. Find the line, "# You can have the root of your site routed with map.root -- just remember to delete public/index.html." Under that section, add the following:

map.root :controller => "articles"

Save the file, and make sure you restart the web server. You will always need to restart the server whenever you create a new model, and change some other files that Rails stores in memory to speed up the server. Make sure you delete public/index.html, or just rename it. Now make sure the server is started and go to http://127.0.0.1:3000. You should see the same thing.

Conclusion

So now you should be a little more familiar with Ruby on Rails. I have also linked to some really great sites to refer to when developing with Rails. Have fun coding with Rails!

  • Railscasts put on by Ryan Bates is an amazing source of video tutorials, and you can always expect something great.
  • The Rails API is a great way to find more information about a subject you may not be entirely sure about.

Follow us on Twitter for more daily web development tuts and articles.


Related Posts

Check out some more great tutorials and articles that you might like

Enjoy this Post?

Your vote will help us grow this site and provide even more awesomeness

Plus Members

Source Files, Bonus Tutorials and
More for $9 a month for all TUTS+
sites in one subscription.

Join Now

User Comments

( ADD YOURS )
  1. PG

    Brian April 23rd

    Too many frameworks to little time!

    ( Reply )
    1. PG

      w1sh April 23rd

      +1

      ( Reply )
      1. PG

        Erez April 24th

        Since I started with Ruby and Rails (2 years ago)

        1. I will never write code in another language other then Ruby.
        2. I have time, lots of time.

  2. PG

    jeff April 23rd

    As a heads up, as of today (april 23) the rubyonrails.org site is down due to a domain renewal error. It is not hacked/stolen/etc. and should be back soon. :)

    ( Reply )
  3. PG

    Timothy April 23rd

    I love Ruby. But I still have not tried out Rails

    ( Reply )
  4. PG

    insic April 23rd

    nice and simple tut about rails. cool

    ( Reply )
    1. PG

      Barack Obama April 23rd

      god! i hate the way you comment, boo.

      ( Reply )
    2. PG

      Miles Johnson April 23rd

      Why does insic insist on commenting each article? Spam much.

      ( Reply )
      1. PG

        Brad April 23rd

        Probably the same reason you post nothing but negative, demeaning and useless comments in every article. Get a hobby.

      2. PG

        iconz April 23rd

        lol!

      3. PG

        Jasper Wissels April 24th

        @miles Johnson

        I thought the same thing – but the answer is simple. Click her name and get to her site. She just wants her name to show on as many weblogs as possible, to create maximal exposure. Contributing? Nah, not really. This is working for her. More traffic to her site = more money. Dont forget tutsplus is about making money aswell. Just because its about helping and contributing makes you forget sometimes.

    3. PG

      Jasper Wissels April 24th

      BTW, insic redesign?

      Combine tutsplus + smashingmagazine, and there you go.

      Original content btw…. Or is this out of line brad?

      ( Reply )
      1. PG

        awake April 24th

        Guys!

        Stop the hate… So what if she does it for exposure.

        NetTuts was on sites/networks like 9rules.

        I have actually found a couple of her articles helpful (especially her list of open source frameworks and e-commerce tools)

        @Jasper you’re ridiculous if you think getting inspiration/ideas from different sources and using them is bad. I’ll refer you to picasso’s quote “Good artists copy. Great artists steal.”

        She’s not stealing yet hence the reason for your lame observations.

    4. PG

      insic April 27th

      OMG! if you guys have a problem to deal with me DM me here in twitter @insic or you have my email if you want, not here. please!.

      I commented in an article to show appreciation or thanks to the author who wrote the article because it helps me or give me an additional knowledge. I think this is one of the purpose why WP has a commenting system, Right? Not for your out of topic comment. :) lol

      ( Reply )
      1. PG

        karn May 1st

        @insic
        A few questions:
        How often do you comment?
        How many sites do you comment on?
        Do you actually have time to read all the articles?
        Is it really you on the photo?

        No offense

      2. PG

        insic May 1st

        Guys I am so sorry I just don’t know what to do. I have no life. Please forget me. I am a crazy spam bot. That’s it.

      3. PG

        insic May 4th

        ahaha this thread is going to be out of topic, and some one mimick my name and sorry you ddnt get my right email. lol

        I just dont expect that there are people like you in sites like this. Its quite a shame. lol

  5. PG

    Evan Byrne April 23rd

    The ruby on rails site you linked to is giving me an ad page…

    ( Reply )
    1. PG

      B. Ackles April 23rd

      @Evan Here’s why you’re seeing a bunch of ads…http://bit.ly/nxfb6

      ( Reply )
    2. PG

      Mike April 23rd

      If you are referring to Railscasts link above…the correct URL is http://railscasts.com not http://railscats.com as linked (he put “cats” instead of “casts” in the url.

      ( Reply )
  6. PG

    Niels April 23rd

    Bad timing guys, the RoR-project site is down. It seems they forgot to update/renew their domain

    ( Reply )
  7. PG

    Kevin Quillen April 23rd

    Whoa, a little too fast for designers I think.

    ( Reply )
  8. PG

    Adam April 23rd

    Bad day to write a tutorial on RoR :)

    Their domain register wither made a big mistake or like some rumors they got hacked. Either way the site is down for the current time.

    ( Reply )
  9. PG

    sabel April 23rd

    fail :)

    ( Reply )
  10. PG

    Jorge Oliveira April 23rd

    Nice post indeed.
    But, your timing was not the best as rubyonrails.org just got hacked :)

    ( Reply )
  11. PG

    Jem April 23rd

    Nice to see some more tuts on Rails! I’ve explored the framework some, and its been difficult to decide on Rails or Django for the time being (obviously I’d love to learn both) … Django seems to be built in a more re-useable fashion and has an amazing admin interface built in which from the comparisons of the two frameworks appears to be the two big sellers for Django… but Rails still probably has a larger community!

    The choices!

    ( Reply )
  12. PG

    Nick Brown April 23rd

    Oi, just another framework I don’t have the time I want to learn. Thanks for the tutorial though.

    ( Reply )
  13. PG

    crysfel April 23rd

    i’m starting a project and i dont know if work with Ruby on Rails or Code Igniter, i know a few things about those frameworks but i am not an expert, which you recommend me?

    ( Reply )
    1. PG

      Wassim April 24th

      ASP.NET MVC :D

      ( Reply )
    2. PG

      Darren McPherson April 24th

      CI is based on Rails?

      ( Reply )
      1. PG

        Shane April 24th

        Um, CI is based on PHP.

        Both CI and RoR are accomplished MVC-based frameworks with good support and a large following.

        Try both of ‘em, have a play, and decide for yourself. I’m not being rude here – but we could discuss which is better all day, but it’s based on personal opinion. Form your own by having a play :)

      2. PG

        crysfel April 24th

        i go with rails, i think it is so much popular than CI, which means more documentation and resources.

        thanks you.

    3. PG

      awake April 24th

      There’s a learning curve for any framework you know :-)

      @ any rate I’ll say you should check out Yii Framework. It’s a PHP framework that steals ideas from Rails, ASP.Net, PRADO and some other solid names out there.

      ( Reply )
  14. PG

    choen April 23rd

    ur link http://rubyonrails.org…. i think it wrong address

    ( Reply )
  15. PG

    Matt P April 23rd

    Screencast! Screencast!! Screencast!!! Please…………..

    ( Reply )
    1. PG

      Thom April 23rd

      If you want many screencast go to : http://www.railscasts.com, it have an error in reference link…

      ( Reply )
    2. PG

      Alex Coomans April 23rd

      I would love to if Jeffrey was interested!

      ( Reply )
  16. PG

    Jason April 23rd

    This article offers nothing that the official Rails site doesn’t already offer. Plus they have a screen cast, and a whole new guides section.

    http://rubyonrails.org

    ( Reply )
  17. PG

    Robert April 23rd

    So yeah – RoR intimidates me as a designer. PHP… I can just write whatever I want, plop it wherever I want and make it work. The necessity to work through the terminal to do anything is just… ugh.

    ( Reply )
    1. PG

      crysfel April 23rd

      i like the terminal XD

      do not be afraid, the terminal is your friend!!

      ( Reply )
  18. PG

    Shane April 23rd

    My reaction to this is that most of it has already been covered in previous nettuts tutorials.

    ( Reply )
  19. PG

    John April 23rd

    I I’m in the root of the root of the ruby application (blog) but when i enter script/generate controller articles it says the command isn’t recognized. Can anyone help? I’m using Windows Vista.

    ( Reply )
    1. PG

      crysfel April 23rd

      try this:

      ruby script/generate controller articles

      that should works ;)

      ( Reply )
      1. PG

        John April 23rd

        Thank you so much! that worked perfectly!

  20. PG

    jeff April 23rd

  21. PG

    jeff April 23rd

    And for those who want screencasts, check out http://rubyonrails.org/screencasts

    ( Reply )
  22. PG

    Kris Allen U. April 23rd

    I’ve dabbled with it using Agile Web Development with Rails. I really liked it. You really need to spend a large amount of time to get proficient with it.

    ( Reply )
  23. PG

    Kevin Quillen April 23rd

    My stance on ROR is its more of a hardcore developer thing. Designers don’t like to have the barriers of doing things, thats where they need their developer coworker to make it all work, then the designer affects the .rb/display files to theme the application.

    ( Reply )
  24. PG

    B. Ackles April 23rd

    Does anyone know when the merge between Merb and Rails is going to be complete? I think this framework is facing massive changes in the near future. Do you know how Rails will be effected from these changes?

    ( Reply )
  25. PG

    Mexx April 23rd

    I was always noisy what Ruby is all about. This might be a starting point, once I got some time…

    ( Reply )
  26. PG

    Chris April 23rd

    mhm, trying it tomorow!

    ( Reply )
  27. PG

    Daniel April 23rd

    That was a good initiation tutorial on RoR, but what does it have to do with design?!

    ( Reply )
  28. PG

    jaffe April 23rd

    Rails and Merb are going to merge someday…
    There are nice changes coming, like these (as far as i know):
    - you can use Data Mapper instead of Active Record
    - you can choose different kind of application structure when creating application, not tied to implement all the features you don’t need
    - it will be a lot faster together with new ruby 1.9

    Anyone there not tried Rails yet, go on and do it. I tried it, i build a simple application back in the 2007. And that was it, I loved it and been using it since.

    A tip for you jQuery users, you can change to use jQuery instead of Prototype if you want to. All those rails javascript helper methods are usable also with jQuery.

    ( Reply )
  29. PG

    Alex April 23rd

    Been waiting for a rails tut on here for a while now, great stuff

    ( Reply )
  30. PG

    tutcity April 23rd

    very cool! thanks for that ;)

    ( Reply )
  31. PG

    Coops April 23rd

    net rails+ bring it on….

    ( Reply )
  32. RoR is something I have heard a lot about and also something that is appearing more and more in Job Specs, so for people coming into the industry I would say its a good skill-set to have.

    However, I would say that RoR is suited more to the coders than the designers so the title of this post is a little misleading.

    ( Reply )
  33. PG

    iconz April 23rd

    i have tried ruby on rails and I keep dumping it… somewhere in my hard disk again…one too many times and forget about it. This happens every time I see a good ruby on rails tutorial. But I have had it with this ruby stuff.. I am not saying its bad.. But its not as fun as designing :)

    ( Reply )
  34. PG

    Tarek April 23rd

    Damn, with a tutorial like this there is no excuse to ignore Ruby on Rails for me anymore.

    Great write up! I’m gonna check it out.

    ( Reply )
    1. PG

      Alex Coomans April 24th

      Thanks Tarek! I am glad you like it!

      ( Reply )
  35. PG

    Ben G April 24th

    Anytime a tut that involves ‘terminal’ and is supposed to be for designers, I cry inside.

    But this one wasn’t bad ;)

    Thanks for the article and info!

    ( Reply )
  36. PG

    bundle April 24th

    I got this when installing rails:

    WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and
    /usr/bin aren’t both writable.
    WARNING: You don’t have /Users/Azriel/.gem/ruby/1.8/bin in your PATH,
    gem executables will not run.
    Successfully installed rake-0.8.4
    Successfully installed activesupport-2.3.2
    Successfully installed activerecord-2.3.2
    Successfully installed actionpack-2.3.2
    Successfully installed actionmailer-2.3.2
    Successfully installed activeresource-2.3.2
    Successfully installed rails-2.3.2
    7 gems installed
    Installing ri documentation for rake-0.8.4…
    Installing ri documentation for activesupport-2.3.2…
    Installing ri documentation for activerecord-2.3.2…
    Installing ri documentation for actionpack-2.3.2…
    Installing ri documentation for actionmailer-2.3.2…
    Installing ri documentation for activeresource-2.3.2…
    Installing RDoc documentation for rake-0.8.4…
    Installing RDoc documentation for activesupport-2.3.2…
    Installing RDoc documentation for activerecord-2.3.2…
    Installing RDoc documentation for actionpack-2.3.2…
    Installing RDoc documentation for actionmailer-2.3.2…
    Installing RDoc documentation for activeresource-2.3.2…

    Do the warnings at the beginning mean I need to do something? Anyone able to help me make sure it’s properly installed?

    Thanks.

    ( Reply )
    1. PG

      Alex Coomans April 24th

      Yes because the folder it installed to is not in your path, it Terminal will say it cannot find any of the applications.
      Did you make sure sudo was in front of your command because that would be required to install this the easier way. You will have to have a password though for sudo; a blank one will not work.

      -Alex

      ( Reply )
  37. PG

    Scott Raine April 25th

    Hi, great tutorial but when i run localhost:3000 with the web server running and i click about your applications enviroment i get
    We’re sorry, but something went wrong.

    We’ve been notified about this issue and we’ll take a look at it shortly.

    also when i run the tutorial application i get the same error, i dont no what to do :(

    ( Reply )
  38. PG

    Scott Raine April 25th

    dont worry guys i fixed it, for those who may get the same error. Do the following:

    download these and extract them both in the ruby/bin directory:
    http://www.sqlite.org/sqlite-3_6_10.zip
    http://www.sqlite.org/sqlitedll-3_6_10.zip

    then type this in command prompt:
    gem install sqlite3-ruby -v 1.2.3

    now if u run the ruby on rails server it should all be working fine.

    ( Reply )
    1. PG

      john quinn May 31st

      i tried that an for some reason i still get the error. any suggestions?

      ( Reply )
  39. PG

    Ethan April 26th

    This is exactly what I needed! Thank you Alex!

    ( Reply )
  40. PG

    Stanley April 27th

    ROR is great, and I think it has a lot to offer designers, shame this tutorial didn’t:(

    Hope the follow-up can emphasise what the benefits for designers might be, and not repeat what is already on the web and on this website for digg or twitter referrals.

    ( Reply )
  41. PG

    accessoire April 27th

    Seriousl this is totally dumb. What happened to Ruby on Rails Weeks? Why restart the ruby tutorials? The Weeks tutorials were great and now you’re beginning from scratch again …

    ( Reply )
  42. PG

    accessoire April 27th

    Just in addition to my comment. Don’t get me wrong: I apreciate the tutorial and probably it’s a good one (didn’t read it I just scanned it) but as you can see I am sad to see that there is no real guideline in Ruby anymore. I’d like to see something like the weekly articles again. Something that’s really pushing us forward.

    ( Reply )
    1. PG

      Alex Coomans April 28th

      Well I appreciate your feedback :) I wasn’t the original author of those tutorials and I have no idea where they went to. I will look into them and see if maybe I cans start them up again.

      -alex

      ( Reply )
  43. PG

    Jonny Haynes April 28th

    Great article, shows a nice little insight into setting up and getting started with Rails, I for one will be trying it now I know it’s this easy to get up and running!

    ( Reply )
  44. PG

    photo retouching April 29th

    Great to see opensource programs of quality. All the big companies charge way too much for their software!

    ( Reply )
  45. PG

    Nayaab Akhtar April 30th

    Nice tuts…

    ( Reply )
  46. PG

    Nayaab Akhtar April 30th

    really good one for anyone starting with Rails.

    ( Reply )
  47. PG

    m May 2nd

    Where’s insic?

    ( Reply )
  48. PG

    CgBaran Tuts May 5th

    Good article to get started

    ( Reply )
  49. PG

    mu_yousef May 8th

    i kinda have problem with the server ..
    can i install it on apache server or webbrick …..

    ( Reply )
    1. PG

      Alex Coomans May 11th

      Well webbrick is fine for local development, but for production sites it is a misfit. If you want to hook up a rails application to apache, I would recommend using mod_rails (http://www.modrails.com/). Their documentation is clear on how to get this setup with an Apache server.

      ( Reply )
  50. PG

    Hemanth May 20th

    Superb really good article

    ( Reply )
  51. PG

    Rob May 25th

    WOW

    Everyone says that RoR is some awesomelly simple and easy.

    Is this really what you need to do to make RoR go?

    ( Reply )
  52. PG

    Joe June 11th

    I’m a total beginner and this seemed a little over my head. I didn’t fully understand what was going on but it was nice to get something started that I could see working.

    Thanks

    ( Reply )
  53. PG

    Jaap June 26th

    The title suggests this article will go into the benefits of using Rails for designers, but it’s still really a getting-started-with-rails tut. The great thing about Rails is that most of the time you don’t really need a designer until the last phase of development. And because a good Rails app has ids for every element, most of the time they won’t even have to poke around in your views!

    That’s why Rails is so designer-friendly!

    ( Reply )
  54. PG

    Joey September 1st

    Ruby died

    ( Reply )
  55. PG

    Alex September 20th

    Well I have to say that it took to me about 3 ours to undestand, install and create the fist blog app. This was really my firsth aproach to ruby and it was not so simple. lastly i’ve completed the tut but i think it’s hard move myself to my standard workflow and use it, only for creating a blog site. maybe I haven’t seen everything about it.

    ( Reply )
  56. PG

    izdelava spletnih strani November 14th

    having problems with this one :(

    ( Reply )
  1. Arrow
    Gravatar

    Your Name
    November 14th