Posted by Andrew Cetinick on September 15th, 2008
Recently I been playing around with alot of Ext JS. It’s a great Ajax Framework, which makes building a full Ajax application easy as pie. All you really need to worry about is how to transfer Json between your Rails application and Ext JS.
Here’s a tutorial on how to get Ext JS’s TreePanel going with Ruby on Rails.
Read the rest of this entry »
Posted by Andrew Cetinick on July 30th, 2008
Recently I needed to change my WeBrick’s application root from /public to something else. If you need to have it running under a different directory, all of your routing to public stylesheets, images, etc. will have errors.
Read the rest of this entry »
Posted by Andrew Cetinick on July 15th, 2008
Here’s how you can setup debugging with your Ruby environment using Netbeans 6.1. Netbeans 6.1 comes with a debugger installed, but only with JRuby, this is how to set it up to work with Ruby.
Read the rest of this entry »
Posted by Andrew Cetinick on July 1st, 2008
In this tutorial I will show you how to add ratings to your models by using the acts_as_rateable plugin in Ruby on Rails. This plugin makes ActiveRecord models rateable through a polymorphic association and optionally logs which user rated which model.
Read the rest of this entry »
Posted by Andrew Cetinick on June 24th, 2008
One of the most important parts of web development is building an administration back-end for your data, a place that is secure from the rest of your application where you can administrate users, topics, categories, or whatever you need for your website. But how do you do it in Ruby on Rails? Where do my controllers go? I will show you a simple way of creating an administration back-end for your Rails application.
Read the rest of this entry »
Posted by Andrew Cetinick on June 24th, 2008
Ruby on Rails supports many different type of databases. How do you setup Ruby on Rails with your database? Here are some examples to help you out.
Read the rest of this entry »
Posted by Andrew Cetinick on June 23rd, 2008
New version of Ruby Gems has been released. The new version is said to fix problems with ‘gem install’ hogging up your system’s memory.
Upgrade using the command:
Read the rest of this entry »
Posted by Andrew Cetinick on June 19th, 2008
Ruby on Rails is designed to achieve more with less code. A perfect example of this is its use of Dynamic Finders.
Read the rest of this entry »
Posted by Andrew Cetinick on June 17th, 2008
In this tutorial I will show you how to create a one-to-one relationship in Ruby on Rails. There are some cases you will need to use a one-to-one relationship, where one record in table A has a record in table B and vice versa.
Related: Ruby on Rails one-to-many Tutorial
Related: Ruby on Rails many-to-many Tutorial
Read the rest of this entry »
Posted by Andrew Cetinick on June 17th, 2008
This tutorial covers the basics of implementing a one-to-many relationship in Ruby on Rails. There are many options available to you when creating this relationship. You should be aware of these, and I will cover a few of the important ones. I will also show you some of the methods Rails gives you access to in the relationship.
Related: Ruby on Rails many-to-many Tutorial
Related: Ruby on Rails one-to-one Tutorial
Read the rest of this entry »
Recent Comments