background preloader

RubySource » For Ruby & Rails Developers

RubySource » For Ruby & Rails Developers

Must-Read Ruby Links Every programming language has a number of works you just cannot not read. Perl has the camel book, C++ has "The C++ Programming Lanugage," etc. Ruby does have it's own dead tree you cannot not read, "Programming Ruby: The Pragmatic Programmer's Guide," the so-called "pickaxe book," but that's covered so many places and recommended by everyone. Ruby Koans - A "koan" is a story or dialog crafted to make a student think. The Ruby Homepage - This might seem like a no-brainer, the Ruby homepage. Stack Overflow - In the same vein as the Ruby mailing lists is Stack Overflow. Ruby-Doc.org - Yes, you probably have Ruby documentation on your system already. Ruby Inside - Peter Cooper has been slavishly updating this blog for years now. Ruby Flow - Another one from Peter Cooper, but this time anyone can submit. Ruby Internals presentation - This is a presentation done by Patrick Farley shows you how Ruby really works. Ruby Hacking Guide - Here's another work that digs real deep into Ruby.

Gosu, 2D game development library jQuery: The Write Less, Do More, JavaScript Library Complex Rails Forms with Nested AttributesRubySource Rails provides a powerful mechanism for easily creating rich forms called “nested attributes.” It allows you to combine more than one model in your forms while keeping the same basic code pattern that you use with simple single model forms. In this article I’ll be showing a number of different ways to use this technique. I’ll assume that you’re familiar with basic Rails forms, of the kind that are generated by the scaffolding commands. We’ll be building up a complex form step by step that allows a user to edit their preferences. Our domain is a not-for-profit management system, where volunteers (users) have areas of expertise and tasks that have been assigned to them. The Base Form Let’s start with a basic form that can edit a user. First up is a simple user model with just one attribute: We will be using the same controller for the entire of this article. Our base form is exactly what is generated by the Rails scaffolding: With that out of the way, let’s dive in! Adding an Address

The Ruby Programming Language Ruby on Rails Guides Ruby Programming Ruby is an interpreted, object-oriented programming language. Its creator, Yukihiro Matsumoto, a.k.a “Matz,” released it to the public in 1995. Its history is covered here. The book is currently broken down into several sections and is intended to be read sequentially. Table of Contents[edit] Getting started[edit] Overview Installing Ruby Ruby editors Notation conventions Interactive Ruby Mailing List FAQ Basic Ruby[edit] Hello world Strings Alternate quotes Here documents Encoding Introduction to objects Ruby basics Data types — numbers, strings, hashes and arrays Writing methods Classes and objects Exceptions Ruby Semantic reference[edit] See also some rdoc documentation on the various keywords. Built in Classes[edit] This is a list of classes that are available to you by default in Ruby. Available Standard Library Modules[edit] These are parts of Ruby that you have available (in the standard library, or via installation as a gem). Other Libraries[edit] Database Interface Modules GUI Libraries[edit] RubyDoc

flyerhzm/bullet Ruby Hacking Guide

Related: