Jump To Content

Lessons

  • Avatar
    Lesson

    Using the Immutable Attribute Plugin

    Description
    Rails surprisingly does not include a validation method to make a model attribute immutable. (That is, the attribute can not be changed after it is set the first time.) I created this validation plugin to help that. To install: scr...
  • Avatar
    Lesson

    Using Haml

    Description
    An introduction to haml haml is template languages for Ruby on Rails. It’s a plugin that provides an alternative to Rails’ native view templating library erb. sass is included with haml, and provides templating for css fil...
  • Avatar
    Lesson

    How to use Fliqz4R

    Description
    About Fliqz Fliqz is the leader in full-service, plug-and-play video solutions. The company offers the most flexible video solutions available online, providing seamless integration and full customization to companies of any size. Fli...
  • Avatar
    Lesson

    Learning how to Learn Rails

    Description
    Intended Audience This is a guide to assist people who: never used rails have some experience I’m not going to cover anything technical, just give some suggestions that I think made it easier for me to learn rail...
  • Avatar
    Lesson

    RORB 1. Knowing your Tools

    Description
    Ruby is an computer language to control the behavior of machines. If that doesn’t make sense maybe this scenario will. Real World Scenario If you had a giant robot that would destroy the world, you’d need someway...
  • Avatar
    Lesson

    RORB 2. Rails is like a team of departments

    Description
    Rails App Directory Structure Its important for you to become familiar with the folders of a rails app. Create empty Rails App Open in Terminal and create an empty rails app Open the new rails directroy and get look at al...
  • Avatar
    Lesson

    World's Best Rails Hiring Process

    Description
    Here is my hiring process for Rails developers. This continues some thoughts I shared in a guest blog post on Ruby Inside, called 11 Tips on hiring a Rails Developer. 1. Meet developer at a Rails Pub Nite (or similar). Collect the...
  • Avatar
    Lesson

    How to switch your default session store

    Description
    About Rails session stores Sessions allow you to store objects in memory between requests. This is useful for objects that are not yet ready to be persisted, such as a Signup object constructed in a multi-paged process, or objects tha...
  • Avatar
    Lesson

    MVC Public Service Announcements

    Description
    The guys at Rails Envy produced a series of “public service announcements” to help users better understand some of the things they should be aware of in their Rails projects. These videos are both entertaining and informative...
  • Avatar
    Lesson

    Railsconf 2008 in 36 minutes

    Description
    Gregg Pollack conducted nineteen (!!) video interviews with Railsconf presenters. They give an overview of what they presented, and hit on the key points of what they presented. Railsconf in 36 minutes from Gregg Pollack on Vimeo
  • Avatar
    Lesson

    Railsconf developer interviews

    Description
    The following interview were conducted at Railconf in Portland, Oregon. David Heinemeier Hansson David is the creator of Ruby on Rails. He is a partner in 37signals, the company behind Basecamp, Highrise, Backpack, Writeboard, and ...
  • Avatar
    Lesson

    RailsConf 2008 Summary & Review

    Description
    Here is the presentation file we’ve used for Toronto Ruby on Rails Project Night yesterday. | View | Upload your own Some useful links: Railsconf 2008 in 36 minutes MVC Public Service Announcements Railsconf developer interv...
  • Avatar
    Lesson

    Dealing with Microsoft Office Protocol Discovery in Rails

    Description
    Opening hyperlinks the ‘Microsoft Way’ When you embed a link in a Microsoft word document, Word will use “Microsoft Office Protocol Discovery” to determine if the document can be edited by Word (via DAV for exa...
  • Avatar
    Lesson

    Ruby on Rails实践(1)---我们需要J2EE吗

    Description
          如果你作为一个Java 程序员从事j2ee开发的话,你一定会使用到众多应用程序框架。没有任何一个语言会象java 语言社区那样活跃,任何一种新的程序理念都会很快在网上出现相应的开源实现。对应最常用的网站开发模式MVC,每一层都会有很多框架,Struts, Tapestry 属于控制器层(C), Velocity 框架属于视图层(V), 你使用的数据持久层可能是 Hibernate, iBatis, OJB, ...
  • Avatar
    Lesson

    Ruby on Rails实践(2)---Ruby 简介

    Description
    Ruby 简介:      在开始写这个教程之前,我原打算简单介绍一下 Rails 的使用就可以了,网上有相应的教程,只要照着翻译一遍就行。但是有两个原因促使我要先介绍一下 ruby: 一是:作为一个 Ruby 语言的爱好者,我觉得有必要向大家介绍它的好处。它是学习 Rails 的关键所在。二是:不先学习一些 Ruby 的基本知识,Rails一些代码你就会不明白原委。这里只是一个就一两个特性做说明,需要更详细了解Ruby...
  • Avatar
    Lesson

    Ruby on Rails实践(3)--- rails是什么 ?

    Description
            在写这个教程的最初,我基本上是在翻译网上的教程。但是 rails中包含了太多的程序和概念,如果只是简单的介绍,你虽然会很快学会使用 rails ,但是对于它的一些概念了解不深。在这里我希望更多地介绍一些rails 所包含的工具,比如 rubygems , webrick 等等。       整个教程是基于ruby的 windo...
  • Avatar
    Lesson

    Ruby on Rails实践(4)--- 做一个出来看看

    Description
          总算到了这激动人心的一步了。      注明:以下示例大量参考了ONLamp.com (http://www.onlamp.com/) 上的 Ruby on rails 教程“Rolling with Ruby on Rails” 原网址: http://www.onlamp.com/lpt/a/5546任务简介:我们这里要用 rails 实现的是一个简单的网...
  • Avatar
    Lesson

    Ruby on Rails实践(5)--- 连上数据库

    Description
    创建 mybook 数据库1:打开 MySQL Control Center , 新建 mybook 数据库.2:新建数据库表 books      表字段的定义如图所示id int(11) comment ‘主键’title varchar(100)description textbuydate date3: 告诉 rails 如何找到数据库信息,打开 D:\railsdoc\mybook\co...
  • Avatar
    Lesson

    Ruby on Rails实践(6)---用Rails的方式编程

    Description
    scaffold生成程序在 Mybook 目录下打开 DOS 命令行窗口,运行 ruby script\generate model bookrails 生成 Model 类 Book 的骨架文件book.rb。 在这里 Rails 将数据库中的books 表映射到 Book 类。 这里 Rails 再次使用了习惯约定,那就是数据库表以复数形式命名,而与之对应的 Model 类,使用单数形式。这里 rails 非常智能,它理解英文的复数规则,会自动将 person 类和...
  • Avatar
    Lesson

    Ruby on Rails实践(8)---关于Ruby on rails的思考

    Description
    关于Ruby on rails的思考      以下是一年多以前的一些思考,经过一年多的时间,ROR社区有了很大发展,而我也使用ROR开发了完整的商业网站,对ROR的理解也更深入,对ROR的发展和推广也更加充满信心。把以下文字放在这里,作为一个回顾。      我是从 thserverside.com 上了解到 Ruby on rails 的。oreilly.com 的教...
  • Avatar
    Lesson

    Ruby on Rails实践(7)---功能更深入一点

    Description
    关联关系处理定义如下:在D:\railsdoc\mybook目录中打开 DOS 命令行,运行下列命令为 Category 生成模型和控制器类ruby script\generate controller Categoryruby script\generate model Category打开 D:\railsdoc\mybook\app\controllers 中自动生成的 category_controller.rb 编辑class CategoryControll...
  • Avatar
    Lesson

    Ruby on Rails 2.1 What's new?

    Description
    Ruby on Rails What’s new? – English Version | View | Upload your own
  • Avatar
    Lesson

    Ruby on Rails 2.1 What's new? Chinese Version

    Description
    Ruby on Rails What’s new? – Chinese Version | View | Upload your own
  • Avatar
    Lesson

    Upgrading non-trivial apps to Rails 2.1

    Description
    For simple Ruby on Rails apps that use very few plugins, upgrading may be as simple as: rake rails:update For everyone else, there may be some work to do. Step 1: Upgrade incompatible plugins and gems Internally, Rails has un...
  • Avatar
    Lesson

    Nginx + HaProxy usage and a gotcha

    Description
    I’ve recently switched from using a straight up Apache mod_proxy + mongrel setup to Nginx + HaProxy +mongrel. Basically, mod_proxy is dumb as shit, and should never be used with mongrel + rails, especially with better options like ...
  • Avatar
    Lesson

    Calling partials through helpers

    Description
    Rails partials are are fragments of template code that can be inserted into a view. They can really simplify template code, by factoring out repeated code. For example, I often put forms into a partial so that the form can be shared b...
  • Avatar
    Lesson

    Ruby Coding Convention

    Description
    RubyCodingConvention File Names Directory and File names and Suffixes Ruby source code file/directory name is lower case class/module name with suffix ’.rb’. ex. Foo class => foo.rb Bar module => bar.r...
  • Avatar
    Presentation

    Netbeans Fast Debugger for Ruby

    Description
    How to use Netbeans FastDebugger for Ruby/Rails on Leopard/
  • Avatar
    Presentation

    Uptodate on TextMate Bundles

    Description
    How to keep uptodate on TextMate Bundles
  • Avatar
    Video

    Ruby Basics - Session 1

    Description
    Ruby Basics Screen CastSession 1