Commit Graph

96 Commits

Author SHA1 Message Date
Jesse Waites
0220b8d61f
Updated to add Derailed link 2019-08-07 16:46:06 -04:00
Clivia
7d9f5b661f
Remove outdated debugging plugins
Footnote and Query review are outdated, unmaintained, 
and Query review is for rails 3.
2019-04-11 16:09:46 +08:00
soartec-lab
e1e6b18e95 Add unknown method to list of methods to write current log [ci skip] 2019-03-21 23:49:53 +09:00
Nick Coyne
0f19d7b3c2
Fix typo
Just a small typo fix for the recently merged #34257
2018-11-05 08:46:44 +13:00
Olivier Lacan
8c3a228354 Add guides section on verbose query logs to Debugging
Since this is a useful tool in debugging it made sense to document
its existence and usage, especially in the console where it's disabled
by default.

[ci skip]
2018-10-19 11:27:55 -04:00
Paul McMahon
7b9c19d94b Rails guides are now served over https
http links will be redirected to the https version, but still better to
just directly link to the https version.
2018-07-24 11:29:31 +09:00
Anthony Crumley
258670244d Added a lot of Oxford commas
[ci skip] A regular expression was used to find a lot of missing Oxford
commas and add them.  The regular expression was as follows.

", ([a-zA-Z0-9.\`:'\"]+ ){1,6}(or|and) "
2018-05-10 12:46:06 -05:00
Yauheni Dakuka
df497cf085 Update debugging_rails_applications [ci skip] 2017-08-21 22:18:53 +03:00
Yoshiyuki Hirano
e7c8e6391d Update Debugging Rails Applications guide [ci skip] 2017-08-20 21:00:55 +09:00
Yoshiyuki Hirano
b44b393243 Fix debugging rails application [ci skip] 2017-08-14 22:25:47 +09:00
Jon Moss
aaa9a5b5d8 Upgrade various Rails 5.0 references to 5.1
RC1 is out, `5-1-stable` has been created, figured it was time to start
updating this stuff :)

[ci skip]
2017-03-25 11:45:46 -04:00
Eugene Kenny
a05845e0a6 Remove unused @txn variable
This was added in c24c885209ac2334dc6f798c394a821ee270bec6, removed in
b89ffe7f0047eb614e42232a21201b317b880755, and then (unintentionally?)
reintroduced in 2d7ae1b08ee2a10b12cbfeef3a6cc6da55b57df6.
2017-03-15 12:14:46 +00:00
Andrew White
9ae511f550 Add duration constructors for use in Numeric extensions
The Numeric extensions like 1.day, 1.month, etc. shouldn't know
how the internals of ActiveSupport::Duration works.
2017-01-12 10:05:16 +00:00
Andrey Novikov
cb9d0e4864
Fix inconsistent results when parsing large durations and constructing durations from code
ActiveSupport::Duration.parse('P3Y') == 3.years # It should be true

Duration parsing made independent from any moment of time:
Fixed length in seconds is assigned to each duration part during parsing.

Changed duration of months and years in seconds to more accurate and logical:

 1. The value of 365.2425 days in Gregorian year is more accurate
    as it accounts for every 400th non-leap year.

 2. Month's length is bound to year's duration, which makes
    sensible comparisons like `12.months == 1.year` to be `true`
    and nonsensical ones like `30.days == 1.month` to be `false`.

Calculations on times and dates with durations shouldn't be affected as
duration's numeric value isn't used in calculations, only parts are used.

Methods on `Numeric` like `2.days` now use these predefined durations
to avoid duplicating of duration constants through the codebase and
eliminate creation of intermediate durations.
2017-01-09 23:04:48 +03:00
bogdanvlviv
a170304174 Add link to 'Pry' in debugging guide [ci skip] 2016-08-07 21:47:27 +03:00
yuuji.yaginuma
987df0fea0 remove old links from debugging guide [ci skip] 2016-08-01 16:38:55 +09:00
Vipul A M
9bc6015a48 Pass over debugging guide
[ci skip]
2016-04-28 20:00:06 +05:30
David Rodríguez
7fb381d247 Review the byebug debugging guide
* Several formatting fixes.
* Updated command outputs to latest version.
* Minor rewordings.

[ci skip]
2016-04-28 14:55:51 +02:00
Sam Ruby
56ed162bf3 Match Puma 3 startup messages [ci skip] 2016-03-04 16:38:34 -05:00
Kuldeep Aggarwal
3edab2a56b [ci skip]Add info for specifying logger in different envrionments.
refer 2dc3e81aea8dbc, 56ca2061df83a3
2016-02-27 14:52:36 +05:30
prajakta
2dc3e81aea - Changed Debugging Rails Applications doc's logger introduction section. Changed location for specifying logger.
[Prajakta, thiagoaugusto]
2016-02-26 15:22:39 +05:30
Gaurav Sharma
1474619196 [ci skip] update guide for Puma web server instead of Webrick
Rails 5.0 default server puma web server. following commit - https://github.com/rails/rails/commit/ae48ea69
2016-01-20 00:50:47 +05:30
Genadi Samokovarov
c29fbd3c7a ApplicationRecord documentation pass
This is a pass over the documentation which fills the missing gaps of
`ApplicationRecord`.

[ci skip]
2015-12-17 11:56:35 +01:00
Jacob Bednarz
16d67f4e87 Remove valgrind note about linux only support
Update the valgrind debugging documentation to remove the notes about being
linux only as 3.11.0[1] introduces preliminary support for Mac OSX 10.11 (El
Capitan).

[1]: http://valgrind.org/docs/manual/dist.news.html
2015-11-24 12:43:46 +11:00
Robin Dupret
f59de082bf Fix a tiny typo [ci skip] 2015-08-25 16:13:34 +02:00
Yves Senn
a256a5790a Merge pull request #21320 from piton4eg/patch-8
Small fixes [ci skip]
2015-08-24 11:56:16 +02:00
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
Jon Atack
94a0c1c584 [skip ci] Debugging Rails Guide fixes
- Fixes:

"we want go deep" -> "we won't go deep"

"to next next line" -> "to the next line"

- Minor improvements in clarity and grammar.

Cheers :)
2015-08-22 10:55:59 +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
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
Santosh Wadghule
11fecafcf2 [ci skip] Used 'instance_variables' in example for consistency.
- Found that checking instance_variables elements using string object
  gives us 'false' value.
  `instance_variables.include? "@articles" # => false`
- Used only 'instance_variables' instead of using '.include?' on it. So
  that it will return recent instance variables list.
2015-06-01 14:04:19 +05:30
karanarora
0750330941 Spelling/typo/grammatical fixes [ci skip]
spelling fix [ci skip]

example to be consistent [ci skip]

grammatical fix

typo fixes [ci skip]
2015-05-23 03:01:33 +05:30
Gaurav Sharma
a9aefffea6 Rails 5.0 will target Ruby 2.2+, correct rails guide example [ci skip] 2015-05-20 17:18:24 +05:30
Zachary Scott
1e7640e68d Fix method call typo [ci skip] 2015-05-02 00:50:14 -07:00
Thomas Osborn
1beff7cbe6 Clean up debugging guide and fix minor grammatical errors[ci skip] 2015-05-01 15:34:09 -07:00
Jon Atack
6345f31fbf Fix typos and improve the documentation
This is a squash of the following commits, from first to last:

-

Fix minor, random things I’ve come across lately that individually
did not seem worth making a PR for, so I saved them for one commit.

One common error is using “it’s” (which is an abbreviation of “it is”)
when the possessive “its” should be used for indicating possession.

-

Changes include the name of a test, so remove the `[skip ci]` (thanks @senny).

-

Line wrap the changes at 80 chars and add one more doc fix.

-

Add a missing line wrap in the Contributing to Ruby on Rails Guide.

-

Line wrap the `TIP` section in the Contributing to Ruby on Rails Guide as well.

Rendering the guide locally with `bundle exec rake guides:generate` did
not show any change in on-screen formatting after adding the line wrap.

The HTML generated is (extra line added to illustrate where the line
wrap takes place):

    <div class="info"><p>Please squash your commits into a single commit
when appropriate. This

    simplifies future cherry picks and also keeps the git log
clean.</p></div>

-

Squash commits.
2015-04-15 16:25:24 +05:30
Robin Dupret
8a74190121 Tiny documentation edits [ci skip] 2015-03-03 21:30:20 +01:00
Robin Dupret
565bf8926e Merge pull request #19168 from gsamokovarov/byebug-defaults-guide
Nit pick the byebug settings guide for default values [ci skip]
2015-03-02 13:06:55 +01:00
Genadi Samokovarov
62dfb16842 Nit pick the byebug settings guide for default values [ci skip]
In #19097 we had a discussion where we decided to change `byebug`
settings sections default part to actually say `defaults`.
2015-03-02 14:05:08 +02:00
Genadi Samokovarov
f46b198142 Web Console documentation for the upcoming 2.1 release [ci skip]
With the upcoming 2.1 [web-console release], I have tweaked the existing
documentation a bit. I tried to focus on the spawning console use case,
because I think a lot of people overlook that.

Tried to explain it as best as I can, however, my English and prose
aren't my best skills :) If you guys can chime in and help me improve
the wording, I would be extremely grateful.

There has been some configuration default changes. For example, the
whitelisted IPs always include IPv4 and IPv6 localhosts now and this
wasn't the case in 2.0. I think a lot of people got bitten by it, that's
why I changed it. I'm a bit confused on how to document this. Should I
just document the latest version, I don't think I can expect all the
people reading the guide to be on it.

[web-console release]: https://github.com/rails/web-console/pull/110
2015-03-02 13:53:51 +02:00
Robin Dupret
bab3c7c63d Minor guides edits [ci skip] 2015-02-21 18:52:47 +01:00
Zachary Scott
ba8502171e Merge pull request #18679 from adipra3n/master
Add web console in debugging rails applications guide [ci skip]
2015-02-16 10:07:03 -08:00
Thiago Pradi
a9e200b252 Updating Query Tracer github repository 2015-02-14 00:44:44 -02:00
James T. Perreault
d1d4772209 [ci skip]
improve sentence flow with grammar change
2015-02-03 13:33:17 -05:00
Adi Pradhan
b7d316cd56 document web console in debugging guide [ci skip]
document web console in debugging guide [ci skip]

document web console in debugging guide [ci skip]
2015-01-26 23:42:22 -07:00
Vipul A M
5cfaf5a46e - Changed IN to ON in markdown renderer condition
- Changed `IN` to `ON` in all note sentences in guides.
2015-01-14 11:52:13 +05:30
Lucas Caton
93fb7c76b1 Updating guides for Rails 5.0 [ci skip] 2015-01-02 09:05:59 +10:00
Xavier Noria
7702974281 warn about reading guides in GitHub
References #18148.
2014-12-23 23:32:50 +01:00
yuuji.yaginuma
4f5d60f4f2 [ci skip] modify the description of production log level default 2014-09-21 07:41:32 +09:00
Guo Xiang Tan
2dd22ead21 Missing space. [CI SKIP] 2014-08-22 17:51:47 +08:00