Ruby on Rails Database Setup Tutorial
Posted by Andrew Cetinick on June 24th, 2008Ruby 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.
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.
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
When writing an application that has poetential to grow it is important to use Object Relational Mapping(ORM) to access data in your database. Doctrine for PHP is an ORM which generates models for your tables, giving you access to methods to update/delete/insert/find records in your database. It also supports the relationships between objects through the table relations.
This is a step by step tutorial on how you can set up an Excel Pivot Table based on an Access table or query.
To implement authentication for your Rails application I recommend using the restful_authentication plugin created by technoweenie. There are quite a few plugins at his Git repository , so I recommend that you take a look.
Lately I have been playing around with the acts_as_ferret plugin which makes it dead simple to implement full text search in your models for Ruby on Rails. The plugin is designed for the Ferret gem (a full featured search engine based on Apache Lucene). In this article I will guide you through the steps needed to implement searching for your models and talk about some of the problems I faced on the way.
Recent Comments