SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Hybrid View

  1. #1
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Get me going, folks!

    Ok.

    I've heard a lot about Ruby, but quite honestly, I don't understand pretty much any of it? Can someone run me through the basic principle of it?

    - Script/Server-side?
    - Any special compilers required?

    so on..

    Feel free to post links to online resources too.
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Ruby is a scripting language. You can use it on the web through CGI, or you can use a framework like Ruby on Rails to make things easier than just using naked Ruby, in the same way that you can use a PHP framework to take some of the tedium out of writing PHP.

    To just run Ruby scripts you don't need anything special except the Ruby interpreter. To run Ruby on Rails you need to install Ruby, RubyGems, and the Rails framework, and optionally a web server like lighttpd (preferred) or Apache.

    What platform are you on? Windows, OSX, Linux? Let us know and we'll give you the best setup instructions for your platform

  3. #3
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vgarcia
    Ruby is a scripting language. You can use it on the web through CGI, or you can use a framework like Ruby on Rails to make things easier than just using naked Ruby, in the same way that you can use a PHP framework to take some of the tedium out of writing PHP.

    To just run Ruby scripts you don't need anything special except the Ruby interpreter. To run Ruby on Rails you need to install Ruby, RubyGems, and the Rails framework, and optionally a web server like lighttpd (preferred) or Apache.

    What platform are you on? Windows, OSX, Linux? Let us know and we'll give you the best setup instructions for your platform
    Thank's Vinnie. That's really good input.

    I'm running Windows XP SP2. I've got Apache 2.2.2.
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by F4nat1c
    Thank's Vinnie. That's really good input.

    I'm running Windows XP SP2. I've got Apache 2.2.2.
    I wouldn't worry about Apache for now. Rails is enough to learn on its own

    I'll walk you through a quick howto for installing Rails:

    • Go to RubyForge and download the latest version of the Ruby one-click Installer for Windows. Install it by running the setup program. I recommend installing it to c:\ruby
    • Download and install RubyGems.
    • When Ruby and RubyGems have both been set up, run this in a terminal/command prompt window to install Ruby on Rails and all its dependencies:
      Code:
      gem install rails --include-dependencies
    • Create a folder to hold your rails Apps. I use c:\rails.
    • Create a test application by issuing this command in a terminal/command prompt:
      Code:
      rails testApp
    • You should then see a folder called testApp in c:\rails. Go into the testApp folder in a terminal/command prompt and type this:
      Code:
      ruby script/server
    • Open your browser and go to http://localhost:3000/.
    • Congratulations, you're on Rails!


    If this all seems like too much for you, you can also use InstantRails, which has Ruby, Rails, Apache, and MySQL all in one package. I prefer the above method

  5. #5
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I didn't understand this one bit:

    Go into the testApp folder in a terminal/command prompt and type this:
    Could you clarify please? Other than that, thank you so much, that's such a great help and so easy to follow.

    You're a star dude!
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  6. #6
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by F4nat1c
    I didn't understand this one bit:



    Could you clarify please? Other than that, thank you so much, that's such a great help and so easy to follow.

    You're a star dude!
    • Start => Run
    • Type in "cmd" and press enter
    • Type "cd c:\rails"
    • Type "rails testApp" to create a Rails application called testApp
    • The rails command should have created a folder called "testApp". Go into that folder by typing
      Code:
      cd testApp
      In the command prompt.
    • Once you're in the testApp folder, run "ruby script/server" to start WEBrick, Rails's built-in development web server.

  7. #7
    Wadge! F4nat1c's Avatar
    Join Date
    Oct 2005
    Location
    South Wales, UK
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it. Oh thanks again vinnie. I don't know how I can re-pay you? Paypal?

    No seriously. I couldn't have hoped for as much help as that. rep+++++++
    OMFG SitePoint ROXORZ TEH BIG ONE111!
    Wish you were invisible?

  8. #8
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,236
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by F4nat1c
    Got it. Oh thanks again vinnie. I don't know how I can re-pay you? Paypal?
    see sig


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •