Commit Graph

67 Commits

Author SHA1 Message Date
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
Robin Dupret
c2d96d14ec Update Rails versions [ci skip]
As discussed in #15304, we need to automate this process but for now,
having out-of-date versions is not ideal.

Since master targets 4.2.0, let's also update references to the last 4.1
version to 4.2.0.

Finally, let's remove mentions to versions when this is not needed. The
guides cover the features of the current version anyway.

[Juanito Fatas + Robin Dupret]
2014-07-07 14:22:25 +02:00
Robin Dupret
11ac0cad08 Follow-up to #15215 [ci skip] 2014-06-27 16:52:04 +02:00
John Kelly Ferguson
3a480b45d6 Update all Rails 4.1.0 references in guides to 4.1.1 [ci skip] 2014-05-24 18:51:23 -04:00
John Kelly Ferguson
d02c810e29 Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip] 2014-05-21 23:01:45 -04:00
Robin Dupret
80d0dd53ca Fix a few typos [ci skip]
This is a follow up to 545afc15.
2014-04-12 20:12:47 +02:00
David Rodríguez de Dios
545afc150e Re-review the debugging guide.
Tested on a brand new app to exactly match current byebug's behaviour.
2014-04-11 13:55:42 +02:00
David Rodríguez de Dios
8834847a37 Minor fixes in the rails debugging guide 2014-04-11 11:00:19 +02:00
David Rodríguez de Dios
eb2d555f5c Update debugging guide to use byebug 2014-04-08 20:59:28 +02:00
Vijay Dev
f8872d658e copy edit [ci skip] 2014-03-29 17:08:07 +05:30
Gaurish Sharma
15a18c18e4 Clarify environment_name for logs
[ci skip]
2014-03-27 16:37:47 +05:30
Vijay Dev
d262773ab7 Merge branch 'master' of github.com:rails/docrails 2013-09-13 00:22:42 +05:30
Paul Nikitochkin
2c8bc2cdcd Use Ruby on Rails Coding Conventions for code examples in the guides
* Indent after private/protected
* Ruby >= 1.9 syntax for hashes
* Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks.

[ci skip]
2013-09-06 21:42:29 +03:00
Vipul A M
bc7a4f0f60 attibutes => attributes 2013-09-03 01:13:30 +05:30
Xavier Noria
b77f25cb84 cleans the guides sources from fancy non-ASCII stuff 2013-08-23 17:59:11 +02:00
Piotr Sarnacki
2c1ddd82e6 Merge pull request #11534 from gaurish/log
Add logging performance [ci skip]
2013-07-21 16:19:10 -07:00
Gaurish Sharma
b48bb74ef8 Add logging performance [ci skip] 2013-07-21 18:57:30 +05:30
Rashmi Yadav
2c07baf284 Using ruby 1.9 syntax [ci skip] 2013-07-14 22:55:56 +02:00
Ryan Williams
7ec63bb73e Grammar fix debugging rails applications [ci skip] 2013-07-03 11:51:12 -04:00
Drew Dara-Abrams
5a399dc6fa adding additional plugins for debugging [ci skip] 2013-06-27 20:35:21 -07:00
Vipul A M
988a2a8b6e We are now rails 4 [skip-ci] 2013-06-26 00:01:04 +05:30
Yves Senn
6cc1b4280e more naming fixes.
* it's Action Mailer not ActionMailer
* it's Action Pack not ActionPack
* it's Active Support not ActiveSupport

/cc @fxn
2013-04-30 18:08:43 +02:00
Benjamin Tan Wei Hao
69a87d5ada Fix links containing stray colons 2013-04-12 10:14:51 +08:00
Yves Senn
3a90e81ee2 remove broken links from reference section in debugging guide. 2013-04-03 12:33:22 +02:00
Ken Lu
8429a75418 fixed a article link at sitepoint 2013-03-31 23:48:32 -04:00
Jonathan Roes
edebf262c4 Minor proofing 2013-03-27 23:41:48 -03:00
Jonathan Roes
057ae0b7fc Remove unnecessary hyphen. 2013-03-27 23:30:51 -03:00
Vijay Dev
f049016cd3 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/getting_started.md
2013-01-09 01:04:15 +05:30
Ryunosuke SATO
3dc1a36b70 ERB::Util::h is no longer generated in scaffold 2013-01-05 00:23:40 +09:00
Akira Matsuda
c22fbeafc1 "SSL everywhere" for GitHub URLs
see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
2013-01-02 03:59:56 +09:00