Person
Lessons
-
- Lesson
-
Action Controller: Rescue
- Description
- Rescue Most likely your application is going to contain bugs or otherwise throw an exception that needs to be handled. For example, if the user follows a link to a resource...
-
- Description
- Streaming and file downloads Sometimes you may want to send a file to the user instead of rendering an HTML page. All controllers in Rails have the send_data and the send_f...
-
- Description
- Parameter filtering Rails keeps a log file for each environment (development, test and production) in the “log” folder. These are extremely useful when debuggin...
-
- Description
- HTTP Basic Authentication Rails comes with built-in HTTP Basic authentication. This is an authentication scheme that is supported by the major ity of browsers and other HTT...
-
- Description
- The request and response objects In every controller there are two accessor methods pointing to the request and the response objects associated with the request cycle that ...
-
- Description
- Verification Verifications make sure certain criterias are met in order for a controller or action to run. They can specify that a certain key (or several keys in the form ...
-
- Lesson
-
Action Controller: Cookies
- Description
- Cookies Your application can store small amounts of data on the client – called cookies – that will be persisted across requests and even sessions. Rails provid...
-
- Lesson
-
Action Controller: Filters
- Description
- Filters Filters are methods that are run before, after or “around” a controller action. For example, one filter might check to see if the logged in user has the...
-
- Lesson
-
Action Controller: Session
- Description
- Session Your application has a session for each user in which you can store small amounts of data that will be persisted between requests. The session is only available in ...
-
- Description
- Parameters You will probably want to access data sent in by the user or other parameters in your controller actions. There are two kinds of parameters possible in a web app...
-
- Description
- What does a controller do? Action Controller is the C in MVC. After routing has determined which controller to use for a request, your controller is responsible for making ...
-
- Lesson
-
Action Controller: Basics
- Description
- Action Controller basics In this guide you will learn how controllers work and how they fit into the request cycle in your application. You will learn how to make use of th...
-
- Lesson
-
Getting Started With Rails
- Description
- This guide covers getting up and running with Ruby on Rails. After reading it, you should be familiar with: Installing Rails, creating a new Rails application, and con...
-
- 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 o...
-
- Description
- Many developers have been switching version control systems recently. Git has been a popular choice for those moving away from Subversion, due to git’s easy to use branch...
-
- 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 use...
-
- 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: U...
-
- Description
- Opening hyperlinks the ‘Microsoft Way’ When you embed a link in a Microsoft word document, Word will use “Microsoft Office Protocol Discovery” to de...
-
- 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, t...
-
- 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....
-
- 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 ...
-
- Lesson
-
Joy Division
- Description
- Joy Division has long had many “bootleg” videos floating around due to the lack of material being published before Ian Curtis’s death. Here are few that are av...
-
- 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 Sign...
-
- Lesson
-
How to Install Merb
- Description
- Install the gem$ sudo gem install merb --include-dependenciesOr install from sourceIf you feel like living on the edge, or you want to contribute with some code or documentation...
-
- 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. s...
-
- 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 create...