Commit Graph

257 Commits

Author SHA1 Message Date
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
Lucas Caton
93fb7c76b1 Updating guides for Rails 5.0 [ci skip] 2015-01-02 09:05:59 +10:00
Jennifer Wollesen
0591e852d2 Update Getting Started guide to reflect foreign key in migration [ci skip] 2014-12-30 22:41:54 -07:00
Zachary Scott
996e646bd8 The Guide to Testing Rails Applications is published! 🎉 🎉 [ci skip] 2014-12-30 11:13:20 -08:00
Robin Dupret
ef7e440c97 Fix a few typos [ci skip] 2014-12-24 19:56:00 +01:00
Xavier Noria
7702974281 warn about reading guides in GitHub
References #18148.
2014-12-23 23:32:50 +01:00
Andrey Nering
f57e1a2245 Add link for Domain-Specific Language [ci skip] 2014-12-19 21:16:58 -02:00
Zachary Scott
65faa8f0da Output extension is no longer generated [ci skip]
/cc @senny Is this change documented somewhere?
2014-12-18 16:54:48 -08:00
Zachary Scott
9dbe896840 Remove this tip, if the previous statement is true.. ie: The reader sees "Rails
4.2.0", then they should have no problems hacking with Rails. [ci skip]

If they do, then its a bug and it should be reported.
2014-12-15 19:07:32 -08:00
Zachary Scott
ce03e36f3e Merge pull request #17992 from andreynering/guides-intallation
Improving tips about installation in the guides [ci skip]
2014-12-15 19:06:47 -08:00
Zachary Scott
6b96a1eae1 Add null option to timestamps as migration generator does [ci skip] 2014-12-14 20:42:38 -05:00
Zachary Scott
7607687c91 Fix path typo to Article model in Getting Started [ci skip] 2014-12-14 20:40:13 -05:00
Zachary Scott
67fe22d8f9 Use generic timestamp for generated migration file. [ci skip] 2014-12-14 20:30:58 -05:00