background preloader

Ruby

Facebook Twitter

The Bastards Book of Ruby. Getting Started with Rails. 1 Guide Assumptions This guide is designed for beginners who want to get started with a Rails application from scratch. It does not assume that you have any prior experience with Rails. Rails is a web application framework running on the Ruby programming language. If you have no prior experience with Ruby, you will find a very steep learning curve diving straight into Rails. There are several curated lists of online resources for learning Ruby: Be aware that some resources, while still excellent, cover versions of Ruby as old as 1.6, and commonly 1.8, and will not include some syntax that you will see in day-to-day development with Rails. 2 What is Rails?

Rails is a web application development framework written in the Ruby programming language. Rails is opinionated software. The Rails philosophy includes two major guiding principles: 3 Creating a New Rails Project The best way to read this guide is to follow it step by step. 3.1 Installing Rails Open up a command line prompt. 4 Hello, Rails! Documentation. Guides, tutorials, and reference material to help you learn more about Ruby Installing Ruby Although you can easily try Ruby in your browser, you can also read the installation guide for help on installing Ruby.

Getting Started Official FAQ The official frequently asked questions. Ruby Koans The Koans walk you along the path to enlightenment in order to learn Ruby. Why’s (Poignant) Guide to Ruby An unconventional but interesting book that will teach you Ruby through stories, wit, and comics. Ruby Essentials A free on-line book designed to provide a concise and easy to follow guide to learning Ruby. Learn to Program A wonderful little tutorial by Chris Pine for programming newbies. Learn Ruby the Hard Way A very good set of exercises with explanations that guide you from the absolute basics of Ruby all the way to OOP and web development. Manuals Programming Ruby The seminal work on Ruby in English, this first edition of the Pragmatic Programmers’ book is available for free online. Ruby Core Reference. Ruby on Rails: Screencasts. How to install Ruby on Rails in Ubuntu 11.10. Ubuntu (The latest stable version : 11.10(Oneiric Ocelot), released few weeks ago) is one of the most Linux based popular operating system and gradually becoming more popular among programmers and web developers.

C/C++/Java programmers and web developers are rocking with the Ubuntu as it has a bunch of open source development tools available to increase the productivity at minimum or zero cost. Ruby on Rails is one of the most popular framework for developing web applications using Agile approach. Rails (Latest version : 3.1) is based MVC (Model View Framework). Getting started with Rails has been little messy (On Linux platform) for beginners due to its installation/setup errors, probably due to some missing dependencies (e.g gems).Relax, it’s very simple, you just need to understand few basic things. To install ruby on rails in Ubuntu 11.10 (or other similar Linux distribution such as Linux Mint, Debian etc), just follow these simple steps.

Step 1. Sudo apt-get install git step 2. Installing Ruby on Rails Ubuntu 11.10 using RVM and Ruby 1.9.2 « The Tech Tutorial. Ruby Rails is a Web application framework created in 2004 intended as a rapid development web framework that runs the Ruby programing language. The latest version of the Ruby is ‘Ruby 1.9.2‘ and was realised in August 2011, it brings many new features and bug fixeses. The most signifiant changes are Block local variables, An additional lambda syntax, Per-string character encodings are supported and a new New socket API (IPv6 support). You can find a great walkthrough of all the new features at Ruby Inside. coinciding with the release of Ruby 1.9 is the Rails 3.1 framework which requires Ruby 1.8.7 or higher. RubyonRails 3.1 brings many new features, most notably: jQuery as default, HTTP Streaming, a new assets pipeline powered by Sprockets 2.0. So this is all good stuff and I’m sure you want to be working with the latest version of Ruby and RubyonRails, especially if you setting up a new server.

Now let’s install the latest version of RVM using curl: rvm requirements rvm install 1.9.3. Ubuntu - Installed Ruby 1.9.3 with RVM but command line doesn't show ruby -v.