Commit Graph

1246 Commits

Author SHA1 Message Date
Dalibor Nasevic
df85dfa6fa Improve wording for rails test command 2013-03-09 16:03:55 -05:00
Prem Sichanugrist
176b57c543 Add support for MiniTest flags in TestRunner
Any flags that got set will be passed through to MiniTest::Unit.runner,
such as `-n`, `-s-, and `-v`.
2013-03-09 16:03:55 -05:00
Prem Sichanugrist
9f75f7735a Update testing documentation
* 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.
2013-03-09 16:03:55 -05:00
Vijay Dev
b938f08a33 Merge branch 'master' of github.com:lifo/docrails 2013-03-10 00:09:26 +05:30
Vijay Dev
be3e402c79 copy edits [ci skip] 2013-03-10 00:06:51 +05:30
Yves Senn
41b9e86f9e fixed typo in strong parameters example 2013-03-09 12:21:28 +01:00
Yves Senn
1d8b566478 strong parameter example for hashes with integer keys.
This replicates the situation described in
https://github.com/rails/strong_parameters/issues/114
2013-03-09 12:18:34 +01:00
Fabrizio Regini
1fe5d36e11 Adding a note for :body option in mail method. 2013-03-08 23:29:58 +01:00
Neeraj Singh
4314d2bbb2 fixing typo in the merging scopes section 2013-03-08 08:47:38 -05:00
Neeraj Singh
2b8a05f35f Explained how merging of scope works 2013-03-08 08:38:43 -05:00
Hendy Tanata
c27f9481df Some copy edit and formatting for upgrading guide. 2013-03-08 17:30:40 +08:00
Alex Robbin
9b27e13c05 remove the new metadata note in Rails 4 upgrade guide
this was pulled out of Rails 4, see rails/rails#8399 for the discussion
2013-03-07 23:24:27 -05:00
awilliams
b045b5c163 fixes active_record_querying #pluck example 2013-03-07 19:05:27 +01:00
Yves Senn
239f0d0ffd replace non-breaking spaces with normal spaces [ci skip] 2013-03-07 16:05:32 +01:00
Rafael Mendonça França
4ce9843251 Merge pull request #9507 from senny/9483_migrations_without_transactions
Transactions can be turned off per Migration
2013-03-06 06:05:47 -08:00
Akira Matsuda
2fb1cdd0a5 Typppo 2013-03-06 03:56:36 +09:00
Vijay Dev
6ea48ebfa6 Merge branch 'master' of github.com:lifo/docrails 2013-03-05 22:51:48 +05:30
Yves Senn
b337390889 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.
2013-03-05 16:12:08 +01:00
Carlos Antonio da Silva
57c516f775 Fix typo in AC overview guide [ci skip] 2013-03-05 08:31:44 -03:00
Yves Senn
0e7abf21dd example for accepts_nested_attribtues_for and strong parameters.
Closes #9558.
2013-03-05 10:58:39 +01:00
Yves Senn
aeb48c3b29 strong parameters example for default values using fetch. [ci skip]
Origin: #9534.
2013-03-05 10:58:39 +01:00
Jonathan Roes
55269f9849 Remove reference to BugMash. Link hasn't been updated in 4 years. 2013-03-05 00:15:07 -05:00
Xavier Noria
5807513048 adds guides/.document to tell rdoc not to process this directory
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.
2013-03-04 22:28:23 +01:00
Nihad Abbasov
f9be80f51c add prompt to 422 page to check logs 2013-03-04 13:06:06 +04:00
wangjohn
293875457b Created an unscope method for removing relations from a chain of
relations. Specific where values can be unscoped, and the unscope method
still works when relations are merged or combined.
2013-03-03 20:42:01 -05:00
Yves Senn
fb63753031 integrate the strong params README into the AC guide.
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.
2013-03-03 13:19:08 +01:00
Guillermo Iguaran
8fe904b5ca Merge pull request #9512 from Jacke/master
New 404, 422, 500 pages, they are more stylish and bring ruby essence…
2013-03-02 14:06:37 -08:00
David Deller
b7d50f352f Add explanation of :dependent => :restrict
Based on information here: http://api.rubyonrails.org/classes/ActiveRecord/Associations/ClassMethods.html#method-i-has_many
2013-03-01 18:05:18 -05:00
Christine Hertzel
3dde99d01c Reverting commit regarding public/index.html (no longer in Rails 4.)
This reverts commit f8461f73c77c186ad0aa735fe9877990bffe1990.
2013-03-01 14:26:54 -05:00
Jeremy Kemper
99775fd161 Restore note about nested SCRIPT_NAME handling. 2013-03-01 11:47:04 -07:00
Stanislav
40f1642b67 New beauty pages(404, 422, 500)
moving changelog note to unreleased section

New beauty pages(404, 422, 500)
2013-03-02 00:24:54 +06:00
Christine Hertzel
a243f84b5d Fixed grammatical error and simplified paragraph concerning controllers.
Signed-off-by: Chelsea Macaluso <c.macaluso@modcloth.com>
2013-03-01 13:05:00 -05:00
Chelsea Macaluso
f8461f73c7 Clarified removal of public/index.html file
Signed-off-by: Trent Michaels <t.michaels@modcloth.com>
2013-03-01 12:32:40 -05:00
Trent Michaels
baa32a57f9 Clarified need to remove existing code in welcome index.
Signed-off-by: Chelsea Macaluso <c.macaluso@modcloth.com>
2013-03-01 12:08:12 -05:00
Sammy Larbi
20e041579f Support creating a table migration generator
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.
2013-03-01 06:13:30 -06:00
Jeremy Kemper
bb9f8312e7 Wordsmithing @trevorturk's upgrade notes
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.
2013-02-28 21:22:34 -07:00
Trevor Turk
7874c9be83 Document introduction of ActionDispatch::ParamsParser::ParseError 2013-02-28 15:55:27 -06:00
Trevor Turk
5b8b9771d7 Document that scopes require a callable object 2013-02-28 15:53:24 -06:00
Trevor Turk
51876271e2 Document common deprecations 2013-02-28 15:50:28 -06:00
Trevor Turk
0407ef5eaf Document the deprecation of ActionView::RecordIdentifier 2013-02-28 15:45:37 -06:00
Trevor Turk
a1d8b031d3 Document ActiveRecord::Fixtures becoming ActiveRecord::FixtureSet 2013-02-28 15:41:20 -06:00
Trevor Turk
74d471a4aa Document change in routes using match 2013-02-28 15:40:25 -06:00
Trevor Turk
97d9843ef5 Document removal of assets:precompile:primary 2013-02-28 15:34:38 -06:00
Trevor Turk
cfb04a69a1 Document sass-rails asset_url deprecation 2013-02-28 15:29:05 -06:00
Trevor Turk
8ecc2edcd0 Document caveat from 5b3bb61 which fixed handling SCRIPT_NAME from within mounted engine 2013-02-28 15:19:54 -06:00
Trevor Turk
1525268d1e Document rails-observers extraction 2013-02-28 14:25:07 -06:00
Trevor Turk
3dd5444e56 Document the switch from memcache-client to dalli 2013-02-28 14:17:47 -06:00
Trevor Turk
decff78d01 Improve docs for UpgradeSignatureToEncryptionCookieStore 2013-02-28 14:16:36 -06:00
Trevor Turk
27a304d8e0 Document extraction of actionpack-xml_parser 2013-02-28 14:06:15 -06:00
Trevor Turk
43ab0158fb Document introduction of the ActionController::UnknownFormat exception 2013-02-28 14:02:56 -06:00