Commit Graph

269 Commits

Author SHA1 Message Date
Shakib Hossain
6b42667607 [ci skip] fix #23157 2016-01-22 02:25:55 +06:00
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
Gaurav Sharma
352a8892fd use bin/rails default instead of rake commands [ci skip]
I go through the `http://edgeguides.rubyonrails.org/` and found `rake` commands in various files that are in RAILS 5.0 implement by `bin/rails` command. I try to change all that can be directly use `bin/rails …`
2016-01-19 23:47:14 +05:30
Victor Felder
2f7d6c57d5 [ci skip] Update doc/resource link removed by #21211 2016-01-05 09:11:41 +01:00
Matthew Conway
7482572347 Update README extension in Getting Started guide
Generated Rails app READMEs are Markdown as of 9739f07d763e29b1c5d71cabf1ca8cfa4421e653
2015-12-20 22:06:22 -08:00
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
Matthew Draper
97c77160cd Use a real migration version number in docs
Even though this means more things to change when we bump after a
release, it's more important that our examples are directly copyable.
2015-12-15 17:18:10 +10:30
Matthew Draper
c0af95e0ab Use a deliberately-invalid migration version in all doc examples
If we use a real version, at best that'll be an onerous update required
for each release; at worst, it will encourage users to write new
migrations against an older version than they're using.

The other option would be to leave these bare, without any version
specifier. But as that's just a variant spelling of "4.2", it would seem
to raise the same concerns as above.
2015-12-15 17:18:09 +10:30
Shivani
ac1c888b95 [ci skip] Better description for starting up with new Rails project
These changes rephrases the description with better explanation of step by step process.
2015-08-28 15:31:59 +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
Brooks Reese
5d11fc4866 [ci skip] Swap ruby -v and the installation tip 2015-08-11 21:02:09 -05: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
Robin Dupret
e18bf1dc49 Tiny documentation edits [ci skip] 2015-07-28 15:05:41 +02:00
Vijay Dev
14354f1955 Merge branch 'master' of github.com:rails/docrails 2015-07-11 17:45:02 +00:00
Rafael Mendonça França
1a433020bb Merge pull request #20734 from srikanthps/master
To fix #20644
2015-06-29 21:22:08 -03:00
Mehmet Emin İNAÇ
33fac9917d Minor addition to getting started guide for foreign_key description of references migration [ci skip] 2015-06-29 22:58:45 +03:00
Srikanth Shreenivas
1b1afc62f8 To fix #20644
Added a note on development kit for Windows Users.  This is required as Windows users can get frustrated when their first rails project creation would fail as some native gem won't get built.
2015-06-30 00:25:47 +05:30
Xavier Noria
fd495a8d18 updates a migration example in the Getting Started guide [ci skip]
Closes #20705.
2015-06-28 12:12:28 +02:00
Dmitry Pak
e7de3e4ac6 Change routes.rb look in getting started [ci skip] 2015-06-27 02:16:02 +03:00
yui-knk
0ad43eb70d [ci skip] Fix hash key to symbol 2015-06-24 00:26:32 +09:00
yuuji.yaginuma
79da980448 correct example output of references migration [ci skip]
this behavior was changed in 99a6f9e60ea55924b44f894a16f8de0162cf2702
2015-06-19 08:16:36 +09:00
Robin Dupret
b10c3866d7 Tiny documentation edits [ci skip] 2015-06-07 16:01:09 +02:00
Yves Senn
1a4f470d59 no rails command short-cuts in the getting-started guide. [ci skip]
The full command name is more expressive.
2015-05-31 13:14:40 +02:00
Vijay Dev
9c290fbe7f Merge branch 'master' of github.com:rails/docrails 2015-05-08 16:20:27 +00:00
Yves Senn
f4da2b7437 docs, fix spelling. refs #20040 [ci skip] 2015-05-06 10:43:33 +02:00
Ankit gupta
a29d21c69d Using the real C and R def of Crud [ci skip] 2015-05-05 11:33:25 -04:00
Kevin Busby
1856899364 Rewording
Rewording in accordance with the documentation guidelines (‘Prefer
wordings that avoid "you"s and "your”s.’) and to remove in particular
“if you'd call”.
2015-04-28 17:00:50 +01:00
Prathamesh Sonpatki
a931971368 Replaced Javascript with JavaScript in guides 2015-04-28 13:41:44 +05:30
yuuji.yaginuma
9a0177b604 update Ruby required version in Getting Started guide [ci skip] 2015-04-22 01:37:16 +09:00
yui-knk
e509bfc819 [ci skip] Update current version of Ruby 2015-04-21 20:53:03 +09: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
Zachary Scott
e8a334a9ee Merge pull request #19483 from yui-knk/fix/getting_started
[ci skip] Fix an object of `reference`
2015-03-29 12:52:19 -07:00
Vijay Dev
c26ee64b92 Merge branch 'master' of github.com:rails/docrails
Conflicts:
	guides/source/4_0_release_notes.md
2015-03-26 16:22:41 +00:00
yui-knk
c79b9c8601 [ci skip] Fix an object of reference 2015-03-24 09:01:15 +09:00
yui-knk
c4a3a6da09 [ci skip] Change to a singular form (the comment model) 2015-03-24 08:48:11 +09:00
Dimiter Petrov
a3e4c15048 Change commands in the Getting Started guide to use scripts in bin/
[ci skip]
2015-03-18 21:14:18 +01:00
Joshua Peek
9655cb1ce7 Update sprockets links to point to rails org 2015-03-13 10:55:50 -03:00
Yu Haidong
b7aa845c01 Modify guides for a better sounding sentence 2015-03-02 22:30:59 +08:00
Yu Haidong
ffda39f364 Improve guides 2015-02-27 11:26:10 +08:00
Rafael Mendonça França
5f5f3a8216 Add link to the show action in the getting started
[ci skip]

Closes #16538
2015-02-06 20:47:39 -02:00
Xavier Noria
cd7cc5254b Remove documentation tasks
This patch removes the tasks doc:app, doc:rails, and doc:guides.

In our experience applications do not generate APIs using doc:app.
Methods may be certainly documented for maintainers, annotated
with YARD tags, etc. but that is intended to be read with the
source code, not in a separate website. Then, teams also have
typically selected topics written down in Markdown files, or in
a GitHub wiki... that kind of thing.

If a team absolutely needs to generate application documentation
for internal purposes, they can still easily write their own task.

Regarding doc:rails and doc:guides, we live in 2015. We are used
to go to online docs all the time. If you really want access to the
API offline RubyGems generates it for every Rails component unless
you tell it not to, and you can checkout the Rails source code to
read the guides as Markdown, or download them for a Kindle reader.

All in all, maintaining this code does not seem to be worthwhile
anymore.

As a consequence of this, guides (+3 MB uncompressed) won't be
distributed with the rails gem anymore. Of course, guides and API
are going to be still part of releases, since documentation is
maintained alongside code and tests.

Also, time permitting, this will allow us to experiment with novel
ways to generate documentation in the Rails docs server, since
right now we were constrained by being able to generate them in
the user's environment.
2015-02-06 21:04:54 +01:00
Yves Senn
9373ca2808 remove trailing whitespace. [ci skip] 2015-01-25 12:16:32 +01:00
Bryan Bibat
eed34e2251 Add tip for running binstubs on Windows [ci skip]
The default command prompt under Windows doesn't run binstubs correctly
while PowerShell needs to find the location of the Ruby interpreter for
it to work properly. Passing the binstubs manually to the interpreter
solves this problem.
2015-01-25 14:18:07 +08:00
Yves Senn
b7dc096c99 Merge pull request #18493 from twoller/master
Consistent anchor text in nav links, new image [ci skip]
2015-01-17 14:06:33 +01:00
Toby Woller
3447e76536 Use consistent anchor text throughout the guide.
Change all of anchor text in the nav links to `Back` and `Edit`
Use `Edit | Back` on pages that use both links to conform to what
scaffolding generates.

Use consistent anchor text throughout the guide.

Change all of anchor text in the nav links to `Back` and `Edit`
Use `Edit | Back` on pages that use both links to conform to what
scaffolding generates.
2015-01-15 12:24:11 -08:00
Andrey Nering
bf5f038491 Adding tip about jQuery UJS [ci skip]
Reference #18533
2015-01-15 16:22:52 -02: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
Robin Dupret
1fd44213aa Remove the tmp/sessions folder and its clear task
Commit 1aea470 introduced this directory but this was at a time when the
default way to store sessions was on the file system under the tmp
directory.

Let's remove references to it from the documentation as well.

[Robin Dupret & yui-knk]
2015-01-03 19:42:07 +01:00
Zachary Scott
de1c1a6f7b Revert part of 996e646bd8cff3bcf2b13863439f48d3e744cdae [ci skip] 2015-01-02 12:19:52 -08:00