Commit Graph

3573 Commits

Author SHA1 Message Date
Alexey Markov
0fb2600bbb Fix docs for debugging [ci skip]:
* fix command list for thread
* add omitted end of code
* fix description for `continue` and `finish` command
2015-08-24 08:13:26 +04:00
Alexey Markov
0b18876e15 Add bold to lists' titles [ci skip] 2015-08-21 10:19:38 +03:00
Alexey Markov
81cec09aac Small fixes [ci skip] 2015-08-20 21:36:58 +03:00
maclover7
8e35ab8610 Add code of conduct to README.md and to contributing guide [ci skip] 2015-08-18 19:53:31 -04:00
Alexey Markov
76c2f01fcb Small fixes [ci skip] 2015-08-17 23:09:31 +03:00
Kasper Timm Hansen
65d3bf9153 Merge pull request #21270 from jonatack/update-debugging-guide-byebug-info
Update the Debugging Rails Guide [skip ci]
2015-08-17 22:01:24 +02:00
Jon Atack
60a3122171 Update the Debugging Rails Guide
[skip ci].

- Update to the current output when running `byebug help`.

- Remove the alias `exit` because it does not work and seems to have
been removed from Byebug, as confirmed by the source code here:
https://github.com/deivid-rodriguez/byebug/blob/master/lib/byebug/comman
ds/quit.rb

- Added the useful `q!` instead to avoid the "Really quit? (y/n)"
prompt.
2015-08-17 20:23:26 +02:00
Zachary Scott
7985908bea reorganize testing guide. [Zachary Scott & Yves Senn]
[ci skip]

Better reading flow for the information presented in this guide.
The first part is written in a similar fashion as the "Getting Started
Guide" and can be read from start to finish. The second section
introduces the different testing components that Rails provides and
explains how and when to use them.

The guide is still work in progress.
2015-08-17 16:23:59 +02:00
Sean Griffin
249a06d3be Merge pull request #21135 from DropsOfSerenity/master
make disable_with default in submit_tag
2015-08-17 06:49:00 -06:00
Robin Dupret
b803798b9d Tiny documentation fixes [ci skip]
* Add missing `def` and remove useless `do` keywords.
* Move `:nodoc:` in front of the methods' definition so that methods
  under these ones are correctly visible on the API.
2015-08-16 14:16:20 +02:00
Alexey Markov
b00c436101 Small fixes [ci skip] 2015-08-15 00:19:47 +03:00
Brooks Reese
8e94137a12 [ci skip] SQL is written using statements, not sentences 2015-08-13 12:43:49 -05:00
Robin Dupret
9d70ec3551 Merge pull request #21120 from dhiachou/patch-1
How to pass arguments to ActiveJob Jobs [ci skip]
2015-08-13 16:58:24 +02:00
Dhia Eddine Chouchane
8b2f418972 [ci skip] How to pass arguments to ActiveJob Jobs
A section explaining how to pass arguments to Jobs has been added.

[ci skip] How to pass arguments to ActiveJob Jobs

Removed the "how to pass arguments" from what you will know section

[ci skip] improving Enqueue Job section

Using GuestsCleanupJob rather than MyJob for coherence.

[ci skip] Passing args section merged with enqueuing jobs

Passing args is now explained through examples withing Enqueuing the Jobs section

[ci skip] Unnecessary example removed

[ci skip] Typo fixed (missing as)
2015-08-13 15:06:39 +01:00
Andreas Lietz
03615fc283 [ci skip] Clarified asset pipeline guide 2015-08-13 11:25:48 +02:00
Rafael Mendonça França
fd27305782 Merge pull request #21211 from brooksreese/resrc_io_website_closed
[ci skip] Removed link to reSRC.io - site closed
2015-08-12 12:39:19 -03:00
Brooks Reese
61004e292b [ci skip] Removed link to reSRC.io - site closed 2015-08-12 10:30:07 -05:00
Matthew Draper
aea7e93ba4 Merge pull request #21204 from brooksreese/ruby_v_before_tip
[ci skip] Swap ruby -v and the installation tip
2015-08-12 14:20:47 +09:30
Brooks Reese
5d11fc4866 [ci skip] Swap ruby -v and the installation tip 2015-08-11 21:02:09 -05:00
Justin Schiff
3822a322a8 Make disable_with default in submit_tag
Prevents double submission by making disable_with the default.

Default disable_with option will only be applied if user has not
specified her/his own disable_with option, whether that is in the
`data-disable-with` string form or the
`:data => { :disable_with => "Saving..." }` hash form. disable_with
will default to the value attribute.

A configuration option was added to opt out of this functionality if
the user so desires.
`config.action_view.automatically_disable_submit_tag = false`
2015-08-11 16:35:10 -07:00
Yves Senn
df5ada78c0 Merge pull request #21195 from brooksreese/fix_broken_link_markup
[ci skip] Fix broken link markup
2015-08-11 17:34:59 +02:00
Brooks Reese
f5c3f41bae [ci skip] Fix broken link markup 2015-08-11 10:03:50 -05:00
Robin Dupret
f51d142881 Tiny documentation fixes [ci skip] 2015-08-11 15:35:35 +02:00
Rafael Mendonça França
99ae9b1698 Merge pull request #21138 from dhiachou/patch-2
Outdated information about session storage updated [ci skip]
2015-08-11 09:00:49 -03:00
Brooks Reese
ab360318cf [ci skip] Add link to testing guide 2015-08-10 12:34:14 -05:00
Brooks Reese
c939bb7e8a [ci skip] Modify introduction text and bullets to be consistent with other guides 2015-08-10 09:49:28 -05:00
Yves Senn
8d70f40da5 docs, use hash instead of a string for order. [ci skip]
Closes #21121
2015-08-10 09:18:56 +02:00
Claudio B.
644c4efdc9 Merge pull request #21177 from brooksreese/single_crud_operation
[ci skip] Note that each action maps to a specific CRUD operation
2015-08-09 11:12:03 -07:00
Brooks Reese
0082ffeff1 [ci skip] Note that each action maps to a specific CRUD operation 2015-08-09 11:16:20 -05:00
Claudio B.
175d8acf43 Merge pull request #21166 from brooksreese/migration_seed_explanation
[ci skip] Give in-depth explanation of migrations vs. seeds.rb
2015-08-08 13:18:17 -07:00
Brooks Reese
4445e79157 [ci skip] Give in-depth explanation of migrations vs. seeds.rb 2015-08-08 14:37:21 -05:00
melissawahnish
1896be9741 [ci skip] Adding a note to Action Mailer Basics documentation that Google increased its
security measures so using the example for Gmail will return a “Password Incorrect” error,
and you will receive an email from Google that they blocked a sign-in attempt.  You can change
your Gmail settings or use another ESP.

I discovered this when I was testing a simple mailer example app and was just going to
use my personal Gmail account for the test.  I think it would be best to note this change
since now Gmail may not be the best option for a quick test.  I hope this saves time for other Rails
developers.  The Gmail example does show a good example of how to configure the smpt settings.
2015-08-08 14:02:33 -04:00
yuuji.yaginuma
c0747e2f39 use uuid method to define the UUID type [ci skip] 2015-08-08 18:37:22 +09:00
yui-knk
235155302e [ci skip] Add an explanation for status option 2015-08-08 12:27:55 +09:00
Aaron Patterson
81cfdf2489 stop using @_env in the controller instance
Actions are processed through `dispatch`, so they should have the
request set on them before any user land code can be executed.  Lets
stop setting _env on the controller, and give access to it through the
`env` method.
2015-08-07 16:00:57 -07:00
Zachary Scott
f7ebdb1ac5 Remove XML Serialization from core.
This includes the following classes:

- ActiveModel::Serializers::Xml
- ActiveRecord::Serialization::XmlSerializer
2015-08-07 11:01:48 -04:00
Tom Copeland
7a3566ea3f Fix doc typo 2015-08-07 10:12:56 -04:00
yui-knk
222e9c5f83 [ci skip] Remove identity.active_record
This is removed by this commit
cf: https://github.com/rails/rails/pull/5261
2015-08-07 13:47:49 +09:00
Mehmet Emin İNAÇ
c7375fd162 Added bin/update script to update application automatically
use system!

fix changelog

use bundle check first and use rake

use system instead system! for bundle check
2015-08-07 04:01:34 +03:00
Alexey Markov
35aa47d524 Small fix 2015-08-06 22:35:05 +03:00
Andreas Lietz
0b92d80cec Corrected instructions for using Sass 2015-08-06 12:18:18 +02:00
Dhia Eddine Chouchane
a42ca131a5 [ci skip] Typo fixed 2015-08-06 09:21:03 +01:00
Dhia Eddine Chouchane
87f0e6719f Outdated information about session storage updated [ci skip]
The guide contains information about Rails 2 storing mechanism, but not Rails 4. 
Enhanced the accuracy and coherence of information (There was a part saying "Older versions of Rails use CookieStore, which uses `secret_token` instead of `secret_key_base` that is used by EncryptedCookieStore." while there was no mention of EncryptedCookieStore before)
2015-08-06 09:08:11 +01:00
Kasper Timm Hansen
7a3ca69959 Merge pull request #20800 from xijo/make_active_job_locale_aware
Make ActiveJob locale aware
2015-08-04 11:56:57 +02:00
Claudio B.
98ce161668 Merge pull request #21076 from r11runner/guide-join-tables
migration and association guides: added some remarks about join tables
2015-08-03 21:17:04 -07:00
Johannes Opper
3860e6b2bf Fixes #20799
When `#perform_later` is called the locale isn't stored on the
queue, which results in a locale reset when the job is performed.

An example of the problem:

    I18n.locale = 'de'
    HelloJob.perform_now # german message, correct

but

    I18n.locale = 'de'
    HelloJob.perform_later # english message, incorrect

This PR attaches the current I18n.locale to every job during the
serialization process. It is then restored during deserialization
and used to perform the job with the correct locale.

It falls back to the default locale if no serialized locale is
found in order to provide backward compatibility with previously
stored jobs. It is not necessary to clear the queue for the update.
2015-08-04 00:38:18 +02:00
r11runner
d73a524b6e [ci skip] migration and association guides: added some remarks about join tables 2015-08-04 00:09:38 +02:00
Robin Dupret
63c03077f3 Correctly close a fenced code block [ci skip] 2015-08-03 13:22:42 +02:00
Andrew White
aa79574d09 Add note to routing guide about overriding defaults [ci skip]
Fixes #21085.
2015-08-03 11:50:12 +01:00
Kasper Timm Hansen
3a5c3f5304 Merge pull request #21052 from robin850/caching-guide
Publish the "Caching with Rails" guide
2015-08-03 12:30:16 +02:00