Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: 4-1-stable

This branch is 704 commits ahead, 7835 commits behind master

Force generated route to be inserted

Thor isn't very discerning over whether some content is present when passed
to `inject_into_file`, e.g. a commented out route is detected as being present.
So to prevent people scratching their heads as to why a route hasn't appeared
it's better to fall on the side of having duplicate routes.

(cherry picked from commit 80838d9)
latest commit b719b65e7f
Andrew White pixeltrix authored


Railties – Gluing the Engine to the Rails

Railties is responsible for gluing all frameworks together. Overall, it:

  • handles the bootstrapping process for a Rails application;

  • manages the rails command line interface;

  • and provides the Rails generators core.


The latest version of Railties can be installed with RubyGems:

  • gem install railties

Source code can be downloaded as part of the Rails project on GitHub


Railties is released under the MIT license:


API documentation is at

Bug reports and feature requests can be filed with the rest for the Ruby on Rails project here:

Something went wrong with that request. Please try again.