how to use ruby on a mac and how to get HTML for this site?

Discussion in 'Web Design and Development' started by iOrlando, Sep 25, 2009.

  1. iOrlando macrumors 68000

    Jul 20, 2008
    tried googling this last night...not too much luck.

    is there an easy tutorial on how to use ruby programming? i am clueless (like to how to use it on a mac..the actual program to type stuff....not How to use the code) exactly do you get the html file for a website? so i want to see the html behind this website just to play around with do i do that?
  2. Darth.Titan macrumors 68030


    Oct 31, 2007
    Austin, TX
    For the Ruby programming, I recommend making a trip to your local bookstore to find a good book on it. The online tutorials I've found are minimal at best. Find a book with tutorials and make sure there is a chapter on setup. It will be worth the investment.

    As for viewing html for a site the easiest way is to right-click and "View Source".
  3. iOrlando thread starter macrumors 68000

    Jul 20, 2008
    oh ok thanks. so i have the where do i put this so i can play around with it and then see what it would look like again?

    open up a blank web page file? is there such a way..

    like say i want to change the color of a banner..etc..
  4. Sijmen macrumors 6502a

    Sep 7, 2005
    You can edit both Ruby and HTML code with whatever text editor you want, because both are just written as plain text. So you can open up such a file in TextEdit (in text mode, not rich text) and start playing around. Save HTML files as .html (like “hello.html”) and Ruby files as .rb (like “test.rb”).

    Now, as for running: you can drag HTML files into Safari and it should show the page.

    Ruby is kind of a different beast, as you need something to run the Ruby code. That’s where the ruby program comes in. Go to Applications, then Utilities, and open Terminal. Then in the terminal, you will want to go to the directory where you keep your code, and then type “ruby myfile.rb”. Ruby should then interpret and run your program – or give an error message indicating what’s wrong with your program.

    If you’re not familiar with the terminal, check out this introduction by MacApper.

    This is a lot to grasp at once, and lots of it might have gone over your head. That’s okay. Like Darth.Titan suggested, you should go to a book store or library and see if you can find a book on HTML and one on Ruby to gently introduce you to each of these languages. Know that you won’t learn either of those overnight.

    Maybe you don’t want to become a HTML or Ruby programmer, but just get X or Y done. In that case, try out programs like iWeb (comes with your Mac) or RapidWeaver for websites, and something like Automator (also included) for automating tasks.
  5. iOrlando thread starter macrumors 68000

    Jul 20, 2008
    makes sense. i probably will search for books down the road. figure cant go wrong starting with html and just getting a little familiar with that.

    this site uses ruby right -> ?

    and what is your take on how that site was made? team of development? or one person? price-range?
  6. Sijmen macrumors 6502a

    Sep 7, 2005
    I didn’t look at the site closely, but most large sites or web applications are made by a small team of people, prices ranging from thousands to hundreds of thousands of dollars.

    Apart from Ruby, there are many popular back-end languages for building websites. Some of them are ASP.NET (which supports many languages), PHP and Java.

    The web development field consists of quite some different jobs though. There are designers who design the way a website works and looks (sometimes these are divided up into multiple jobs), font-end developers who write HTML, CSS and Javascript code, and back-end developers who do the application and database logic. Well, if there aren’t separate “database people” on the project.

    There roles are not set in stone, and many a site are created by just one or two people. You can, most definitely, make websites and webapps on your own.
  7. iOrlando thread starter macrumors 68000

    Jul 20, 2008
  8. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    Have you checked out this page from the Apple Developer Connection? (Page is kinda old, I think, so some of the info may be stale)

Share This Page