Latest in branch 1.0
1.0.0
Released 10 Apr 2008
(18 years ago)
SoftwareRuby on Rails
Version1.0
Status
End of life
Initial release1.0.0
10 Apr 2008
(18 years ago)
Latest release1.0.0
10 Apr 2008
(18 years ago)
End of bug fixesUnavailable
End of security fixesUnavailable
Release noteshttps://github.com/rails/rails/releases/tag/v1.0.0
Source codehttps://github.com/rails/rails/tree/v1.0.0
Downloadhttps://github.com/rails/rails/releases/tag/v1.0.0
Ruby on Rails 1.0 ReleasesView full list

What Is New in Ruby on Rails 1.0

CategoryHighlights
New FeaturesScaffolding, ActionMailer, ActionWebService, script/console, integrated testing framework
ImprovementsEnhanced routing DSL, richer ActiveRecord associations, default layout support, performance optimizations
Bug FixesFixed memory leaks in ActionController, corrected edge-case validation bugs, resolved issues with generated code
DeprecationsDeprecated the legacy plugin initialization API in favor of generators

How does Rails 1.0 simplify building CRUD interfaces?

Rails 1.0 introduces scaffolding that automatically generates a full CRUD stack for a given model.

Running the scaffold generator creates the model, migration, controller, views, and test files in one command:

rails generate scaffold Post title:string body:text

In practice this cuts weeks of boilerplate work down to minutes, letting teams focus on business logic instead of repetitive code.

What new email capabilities does Rails 1.0 provide?

Rails 1.0 adds ActionMailer, a built-in framework for composing and delivering email from your application.

A typical mailer class looks like this:

class NotificationMailer < ActionMailer::Base
  def welcome(user)
    @user = user
    mail(to: @user.email, subject: "Welcome!")
  end
end

Watch out for the need to configure your SMTP settings in config/environment.rb before sending mail in production.

How has testing been integrated into Rails 1.0?

Rails 1.0 ships with a built-in testing harness that ties Test::Unit directly into the framework.

Every scaffold now includes unit, functional, and integration test files, and you can run the full suite with:

rake test

This matters if you want zero-configuration test runs; fixtures are loaded automatically and controller tests have helper methods like get and post.

What improvements were made to routing and controller handling in Rails 1.0?

Rails 1.0 refines the routing DSL and streamlines controller callbacks for clearer request flow.

  • Routes are defined in config/routes.rb using a map object (e.g., map.connect ':controller/:action/:id').
  • Named routes and resource-like routes are introduced, reducing manual URL construction.
  • Before/after filters are now more consistent, allowing before_filter :authenticate at the controller level.

Most teams will see fewer routing bugs and easier URL generation with the new helpers.

Are there any breaking changes or deprecations to watch for when upgrading to Rails 1.0?

Rails 1.0 deprecates the old plugin initialization style, encouraging use of generators for extending the framework.

If your application relies on Rails::Plugin hooks, replace them with a generator-based approach or move the code into lib/ and require it manually.

Watch out for missing script/generate commands if you still use the pre-1.0 plugin scaffolding.

Frequently Asked Questions

Can I generate a scaffold for a model in Rails 1.0?
Yes, run rails generate scaffold ModelName field1:type field2:type from the command line.

How do I send an email using ActionMailer in Rails 1.0?
Create a mailer class inheriting from ActionMailer::Base and call the deliver method on the mail action.

Does Rails 1.0 include a console for interactive debugging?
Yes, script/console launches an IRB session with your Rails environment loaded.

What testing framework does Rails 1.0 use out of the box?
Rails 1.0 uses Test::Unit integrated with fixtures and functional tests.

Are there any deprecated APIs I need to replace when moving to Rails 1.0?
The old plugin init API is deprecated; you should use the new generator-based approach.

How does routing syntax differ in Rails 1.0 compared to earlier versions?
Routes are defined in config/routes.rb using a map object with methods like connect and resources.

Releases In Branch 1.0

VersionRelease date
1.0.010 Apr 2008
(18 years ago)