The Machine | Search for a cog | Submit a cog | Photoshop Videos | Machine Talk

Archive for the ‘Ruby on Rails’ Category

Rails 101: Introduction

Wednesday, July 16th, 2008

A basic introduction to Ruby on Rails.

To view:

http://thinkrefresh.com/posts/13/rails-101-introduction

Creating a Project

Wednesday, July 16th, 2008

To create a project in Rails you need to be in your Terminal. Find an appropriate place to store your applications, so if you’re on a Mac the “sites” folder is probably a good idea.

To view:

http://thinkrefresh.com/posts/15/rails-101-file-structure

Rails 101: Generators

Wednesday, July 16th, 2008

So you’re just about to crack on and dive into that code, but wait, you don’t even need to do that! Rails comes with generators for basic functionality so you can get going as quickly as possible.

To view:

http://thinkrefresh.com/posts/16/rails-101-generators

Introduction to Form Helpers

Thursday, May 29th, 2008

A handy introduction to Ruby on Rails form helpers.

http://www.railsforum.com/viewtopic.php?id=1026

Refactoring on Rails: Multiple Scopes in Controller

Thursday, May 29th, 2008

Introduction to a couple of refactoring methods for Ruby on Rails.

http://www.railsforum.com/viewtopic.php?id=737

Creating Two Models in One Form

Thursday, May 29th, 2008

Q: How do I make a form that handles multiple models?

This question is asked quite frequently. Scaffolding and simple Rails tutorials show you how to create one model per form. Unfortunately, sometimes this is not sufficient.

In this article we will make one form that creates two models: Project and Task (where a project has many tasks). What I would like to do is have the first task be created the same time the project is created (in the same form).

http://www.railsforum.com/viewtopic.php?id=717

User Management Using Salted Hash Login Generator

Thursday, May 29th, 2008

This is a simple tutorial for RoR beginners.

This tutorial is meant for those using the Salted Hash Login Generator.

Problem: You need a login system that will show the user their information only.  For example:  A user has many blog entries and they should only be able to edit their blog entry.

To view this tutorial: http://railsforum.com/viewtopic.php?id=1191

Using Autotest with Rails on Windows XP machines

Thursday, May 29th, 2008

This is a short tutorial on how to use autotest on a Windows XP device. The great thing about autotest is that it updates your test results automatically each time you make changes to your models, controllers or test files.

To view:
http://www.railsforum.com/viewtopic.php?id=961

Debugging on Rails: Reading Stack Traces

Thursday, May 29th, 2008

Learn the basics of reading a stack trace.

To view:

http://www.railsforum.com/viewtopic.php?id=872

HOWTO: Send Instant Messages from Rails

Thursday, May 29th, 2008

In this tutorial we are going to use a BackgrounDRb worker to hold an IM client. Our Rails app will then use BackgrounDRb to tell the IM client to send instant messages.

To view this tutorial: http://www.railsforum.com/viewtopic.php?id=1033