Tag Archives: rails 2.0

MySQL Configuration for Rails

As of Rails 2.0, the helper to generate a new application structure uses SQLite instead of MySQL. While MySQL is more heavyweight, it has some strengths over SQLite, such as power GUI tools, and the ability to rename columns. If you need a MySQL database configuration sample, we have one here! Continue reading

Posted in Deployment, Development | Tagged , , , | 2 Comments

Foxy Fixtures Explained

Rails integrated a plugin called Foxy Fixtures into the core API. How does it work? It allows you to refer to other fixtures by name, instead of by ID (so no more hard-coded IDs). But there’s a gotcha–the IDs are generated automatically, so they’re not 1 or 2 like you might expect (for your first and second fixtures). Continue reading

Posted in Gems and Plugins, Testing | Tagged , , | 1 Comment

Routing in Rails

One aspect of web development developers would like control over is the URL structure. In most web development languages, the URL is intrinsically tied to the folder and file structure. Rails–although it also allows use of this structure for static … Continue reading

Posted in Development | Tagged , , , | Comments Off

Scaffolding in Rails 2.0

Scaffolding is one very useful part of Rails. It allows you to quickly test your application without having to write a lot of code–most of it is standard boilerplate code anyways! With Rails 2.0, you may have noticed that dynamic … Continue reading

Posted in Development | Tagged , | Comments Off

Migrating to Rails 2.0

Rails 2.0 was released in December, 2007. Upgrading to Rails 2.0 is relatively straight-forward (albeit a bit risky; you can hose your Rails environment if you’re not careful!) You need to update Rails to 2.0, and update the system gems; and a few code-changes are necessary. Continue reading

Posted in Development | Tagged , | 1 Comment

Dynamic Front Page

You’ve created your amazing Ruby on Rails application. And now, you want to get rid of that standard “Welcome to RoR!” front page. How do you do it? Look in /public. There’s a file called index.html. Delete it, and replace … Continue reading

Posted in Development | Tagged , , | Comments Off