| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
| | |
| | |
| | | |
signed cookies generated by Rails 3 to avoid invalidating them when upgrading to Rails 4
|
|/ /
| |
| |
| | |
Newer version contains some generator bugfixes
|
|\ \
| | |
| | | |
Raise an ArgumentError when a clashing named route is defined
|
| | | |
|
|/ / |
|
| |
| |
| | |
The error that's raised in case the required key is missing it's actually `ActionController::ParameterMissing` not `ActionController::MissingParameter`. It's important to fix so that people reading the guides knows what error to rescue from when needed.
|
| |
| |
| |
| | |
v2 of pull request based on feedback from @rafaelfranca, @schneems, and @carlosantoniodasilva
|
| |
| |
| |
| |
| |
| | |
There was an s missing in 'views'.
Fixes #9752.
|
| |
| |
| |
| |
| |
| |
| | |
When I updated these images, I must have gotten this one wrong. Now it's
right.
Fixes #9749.
|
| |
| |
| |
| |
| |
| |
| |
| | |
The similarity of `Relation#uniq` to `Array#uniq` is confusing. Since our
Relation API is close to SQL terms I renamed `#uniq` to `#distinct`.
There is no deprecation. `#uniq` and `#uniq!` are aliases and will continue
to work. I also updated the documentation to promote the use of `#distinct`.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The env hash passed to `Http::Headers#new` must be in env format.
Also be aware that the passed hash is modified directly.
docs and test-cases for setting headers/env in functional tests.
Follow up to #9700.
|
| |
| |
| |
| | |
Brought up in https://github.com/rails/rails/issues/9727
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Any flags that got set will be passed through to MiniTest::Unit.runner,
such as `-n`, `-s-, and `-v`.
|
|/
|
|
|
|
|
| |
* Update test invocation to use `rails test` instead.
* Update all the test command previews (since we're now using MiniTest.)
* Mentioning MiniTest instead of Test::Unit.
* Update list of test suites.
|
|\ |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
This replicates the situation described in
https://github.com/rails/strong_parameters/issues/114
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
this was pulled out of Rails 4, see rails/rails#8399 for the discussion
|
| | |
|
| | |
|
| | |
|
|\ \
| |/
|/| |
Transactions can be turned off per Migration
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Closes #9483.
There are SQL Queries that can't run inside a transaction. Since
the Migrator used to wrap all Migrations inside a transaction there
was no way to run these queries within a migration.
This patch adds `self.disable_ddl_transaction!` to the migration to
turn transactions off when necessary.
|
|\ \
| |/
|/| |
|
| | |
|
| |
| |
| | |
Based on information here: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_many
|
| |
| |
| |
| | |
This reverts commit f8461f73c77c186ad0aa735fe9877990bffe1990.
|
| |
| |
| |
| | |
Signed-off-by: Chelsea Macaluso <c.macaluso@modcloth.com>
|
| |
| |
| |
| | |
Signed-off-by: Trent Michaels <t.michaels@modcloth.com>
|
| |
| |
| |
| | |
Signed-off-by: Chelsea Macaluso <c.macaluso@modcloth.com>
|
| | |
|
| |
| |
| |
| | |
Closes #9558.
|
| |
| |
| |
| | |
Origin: #9534.
|
| |
| |
| |
| |
| |
| | |
When the Rails 4 gem is installed rdoc sees markdown files below the
guides directory and processes them. With an empty .document file
we prevent that from happening. Thanks to @drbrain for the tip.
|
| | |
|
| |
| |
| |
| |
| | |
relations. Specific where values can be unscoped, and the unscope method
still works when relations are merged or combined.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The current ActionController guide does not mention strong parameters
at all. I integrated the README into the guide to explain the API.
I also included a section to illustrate that the API does not solve
all possible whitelisting scenarios.
The origin was #9454.
|
|\ \
| | |
| | | |
New 404, 422, 500 pages, they are more stylish and bring ruby essence…
|
| | |
| | |
| | |
| | |
| | |
| | | |
moving changelog note to unreleased section
New beauty pages(404, 422, 500)
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Sometimes you want to create a table without an associated model and
test, which is also not a join table. With this commit, you can now
do that.
Example:
rails g migration create_posts title:string
or
rails g migration CreatePosts title:string
This commit also moves the template the model generator uses for the
migration to the migration templates folder, as it seems a more
sensible place for it now that it is shared code.
|
| |
| |
| |
| |
| | |
Removed the bit about `SCRIPT_NAME` handling, since setting
`default_url_options[:script_name]` does work correctly.
We ran into an issue with it but it was an app bug.
|
| | |
|