rails--rails/railties
Henrik Nyh e87608e355 Use safer 'destroy!' in controller scaffolds
The old code does

    @foo.destroy
    redirect_to foo_url, notice: "Foo was successfully destroyed."

which would incorrectly state the record was destroyed even if prevented
by a `before_destroy` callback.

The new version would raise.
2022-01-20 16:46:07 +00:00
..
bin
exe
lib Use safer 'destroy!' in controller scaffolds 2022-01-20 16:46:07 +00:00
test Use safer 'destroy!' in controller scaffolds 2022-01-20 16:46:07 +00:00
.gitignore
CHANGELOG.md Disable config.add_autoload_paths_to_load_path by default in Rails 7.1 2022-01-11 12:05:32 +01:00
MIT-LICENSE Bump license years to 2022 [ci-skip] 2022-01-01 15:22:15 +09:00
RDOC_MAIN.rdoc Fix 404 links on https://rubyonrails.org/ [ci-skip] 2021-12-17 02:26:34 +09:00
README.rdoc Fix grammar mistakes [ci skip] 2021-04-10 22:15:52 -05:00
Rakefile Require shellwords where it is used 2022-01-06 00:19:11 +00:00
railties.gemspec Fix gemspec 2021-11-15 21:06:21 +00:00

README.rdoc

= 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.

== Download

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

* https://github.com/rails/rails/tree/main/railties

== License

Railties is released under the MIT license:

* https://opensource.org/licenses/MIT

== Support

API documentation is at

* https://api.rubyonrails.org

Bug reports can be filed for the Ruby on Rails project here:

* https://github.com/rails/rails/issues

Feature requests should be discussed on the rails-core mailing list here:

* https://discuss.rubyonrails.org/c/rubyonrails-core