Commit Graph

4102 Commits

Author SHA1 Message Date
Francis Go
a48f97e0e6 Getting Started Guide: Update Ruby version to 2.3.0p0 2016-01-29 14:18:11 +11:00
Jon Moss
3745d5430b Docs review of api_app.md
Pass through correcting api_app.md. The list of included modules and
middleware was tested through a sample API app, and was listed in the
same order an end user would see in their terminal.

[ci skip]
2016-01-28 18:46:02 -05:00
Rafael Mendonça França
ee9d479941 Remove Rack::Lock from the API guides
It is not always there anymore

[ci skip]
2016-01-28 17:23:27 -05:00
Rafael Mendonça França
904e662ff2 Middleware have no plural
[ci skip]
2016-01-28 17:23:11 -05:00
Rafael Mendonça França
e9dff8e7b1 Mark API guide as work in progress
The documentation team didn't reviewed it yet so it can't be published.
2016-01-28 17:16:29 -05:00
Piotr Jakubowski
52a82f15f6 Put "Using Rails for API-only Applications" in table of contents
When I was looking for more info regarding this the only way I ended up
on that page was by googling something along the lines of "rails new
api" (as I wanted to find out what are the proper parameters when
generating api app). I think it's beneficial to have that page in table
of contents.
2016-01-28 21:39:53 +01:00
David Heinemeier Hansson
f3c1897d30 Merge pull request #23237 from gsamokovarov/new-welcome-page
Introduce new welcome page for new projects
2016-01-28 14:33:23 +01:00
Collin Graves
69d657db6f English explanation to multi-level nested join
Added an "Or, in English..." explanation to the "Joining Nested Associations (Multiple Level)" example.
2016-01-27 21:54:34 -06:00
Djoume Salvetti
f7d825d778 Fix typos in asset_pipeline.md 2016-01-27 10:55:49 -05:00
Aditya Kapoor
b24b20c80e remove duplication section [ci skip] 2016-01-27 16:39:22 +05:30
Genadi Samokovarov
38492590cf Introduce new welcome page for new projects
As requested by David in 23233.
2016-01-26 00:27:49 +02:00
Jon Moss
ceea3811e2 Merge pull request #23208 from vipulnsward/testing-pass-2
Pass 2 over testing guide
2016-01-25 08:23:38 -05:00
Yves Senn
07a2f4ef1c Merge pull request #23210 from sachin21/change_permission
Change permission to readonly [ci skip]
2016-01-25 08:49:02 +01:00
Fernando Seror
1307c8d0ea Update the exception of format constraint in routes
Per https://github.com/rails/rails/issues/20264
[ci skip]
2016-01-23 19:15:46 -06:00
Vipul A M
6026b37ffc Pass 2 over testing guide
- Grammar fixes
- Wordsmitting
- Fixed wrong statement about association usage in fixtures
- Changed association name from 'one' to 'first' instead
- More consistent usage of we/our
- Mentions assert_select is below, not already covered in Integration test.

[ci skip]
2016-01-23 21:24:32 +05:30
Satoshi Ohmori
109b30ff8b Change permission to readonly
changed from 755 to 644.
I executed `chmod -x guides/assets/javascripts/responsive-tables.js`.
[ci skip]
2016-01-23 21:48:15 +09:00
Vijay Dev
f3cf476f8c Merge branch 'master' of github.com:rails/docrails 2016-01-22 20:14:43 +00:00
Gaurav Sharma
ca339cc8fd Rails 5.0+ rake commands implemented in Rails Framework itself. We prefer to use bin/rails instead of rake [ci skip] 2016-01-22 22:20:03 +05:30
Jon Moss
84461db61e Merge pull request #23177 from vipulnsward/testing-pass-1
First pass over parts of Testing guide
2016-01-22 10:46:29 -05:00
Vipul A M
86a3a54915 First pass over parts of Testing guide
- Grammar improvements
- Consistent usage of you or we in sentences
- Tests can have zero or more assertions. Its not mandatory to have one.
- Example for assert_send

[ci skip]
2016-01-22 12:36:13 +05:30
Shakib Hossain
6b42667607 [ci skip] fix #23157 2016-01-22 02:25:55 +06:00
Alexander
7c643d9fcf insert newlines into code samples
[ci skip]
2016-01-20 17:06:02 -08:00
Rafael França
71491c631f Merge pull request #23125 from Gaurav2728/update_puma_as_webserver
[ci skip] update guide for Puma web server instead of Webrick
2016-01-19 14:23:56 -05: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
Vipul A M
d0c62d9d1e - Changed from bin/rake to bin/rails at more application places.
- Only ones left are from the upgrading guide, and command line guide explicit section about rake

Follow up of https://github.com/rails/rails/pull/23119
[ci skip]
2016-01-20 00:34:31 +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
Vipul A M
c96727135a - Remove dead links and take users to just the home page instead
- Add new logo for guides header
[ci skip]
2016-01-19 23:22:25 +05:30
Abdelkader Boudih
f8234313fe Merge pull request #23117 from vipulnsward/22297-ar-exception-raise
Mention that halting chain does not re-raise  `ActiveRecord::RecordIn…
2016-01-19 11:19:17 +00:00
Vipul A M
8b0b0b0675 Mention that halting chain does not re-raise ActiveRecord::RecordInvalid exception as well, similar to ActiveRecord::Rollback
Fixes #22297

[ci skip]
2016-01-19 15:21:53 +05:30
Vipul A M
0764e67863 Make text about render :html option clearer to state, text will get escaped if not marked as safe by using html_safe
Fixes #22648
[ci skip]
2016-01-19 15:15:25 +05:30
Prathamesh Sonpatki
43c750bacb Fix discrepancies in associations guide [ci skip]
- Followup of 71ff088a09
2016-01-19 12:02:23 +05:30
amitkumarsuroliya
b4803e6ea7 ApplicationRecord instead of ActiveRecord::Base in Association Guides [ci skip] 2016-01-19 11:09:52 +05:30
Kasper Timm Hansen
426b3127dd Merge pull request #23099 from vipulnsward/change_start_at_end_at
Changed options for find_each and variants to have options start/finish
2016-01-18 19:57:10 +01:00
amitkumarsuroliya
71ff088a09 Association Guide replaces Order as example with Author-Book Example [ci skip]
fixes #21500
2016-01-18 22:18:54 +05:30
Jon Moss
5f302eabae Merge pull request #22705 from RochesterinNYC/add-order-explanation-to-first-last-guides
Add clarification about `first` and `last` behavior when using `order` [ci skip]
2016-01-18 10:31:39 -05:00
Jon Moss
721e45c90c Merge pull request #22394 from j-dexx/update_association_basics_guide
Updated the guides for having a distinct has_many through at the data…
2016-01-18 09:33:03 -05:00
James Doyley
f72fe2d5a6 Updated the guides for having a distinct has_many through at the database level
The current example

    add_index :person_articles, :article, unique: true

Does not work, the `:article` column does not exist as it will be
a join table (based on the prior example) so should use :article_id

The documentation seems to suggest that it will allow an article to
be added only once to a person via the join table, what actually
occurs is that it only allows the article to be added to one person,
at which point it should be a `belongs_to` association.

Also changed the new example to use readings based on the prior example
2016-01-18 10:08:43 +00:00
Prathamesh Sonpatki
ad08072249 Explain how HStore columns can be queried [ci skip]
- Fixes #22876.
2016-01-18 14:39:50 +05:30
Vipul A M
da26934313 Changed options for find_each and variants to have options start/finish instead of start_at/end_at based on comments
at https://github.com/rails/rails/pull/12257#issuecomment-74688344
2016-01-18 12:40:30 +05:30
ankit1910
390067161e [ci skip] fix typo in docs 2016-01-14 20:50:48 +05:30
Mauro George
43800057fc Add a note on ActionController guide about 404
[ci skip]
2016-01-11 19:27:19 -02:00
Santiago Pastorino
527cd8dfcd Merge pull request #22983 from bronson/update-mysql-in-guides
remove mentions of legacy mysql adapter from guides
2016-01-10 13:10:18 -03:00
Jon Moss
4973704bf5 Merge pull request #21995 from tak1n/master
Add Example for using config_for
2016-01-10 10:46:17 -05:00
Scott Bronson
8c629bf463 remove legacy mysql from guides to match #22715 2016-01-09 09:10:49 -08:00
Pramod
68f46a815f rake log:clear task updated refs[#22544]
- Avoided truncating all files if no ENV['LOGS'] specified
- Updated task to accept LOGS=all for truncating all files from log/ i.e. log/*log
- If no LOGS specified will truncates standard environment log files i.e. 'development,test,production'
- CHANGELOG & guide update added
- bin/setup test cases fixed
2016-01-09 13:39:41 +05:30
Rafael França
ced9612b59 Merge pull request #22275 from mastahyeti/per-form-csrf
Per-form CSRF tokens
2016-01-06 02:55:10 -02:00
Claudio B
3d90a6348d Merge pull request #22922 from vhf/add_fpb_back
[ci skip] Update doc/resource link removed by #21211
2016-01-05 04:23:44 -08:00
Manu
f82ed2dab4 Add job suffix to sample's job file name 2016-01-05 11:28:55 +00:00
Victor Felder
2f7d6c57d5 [ci skip] Update doc/resource link removed by #21211 2016-01-05 09:11:41 +01:00
Ben Toews
3e98819e20 add option for per-form CSRF tokens 2016-01-04 12:26:38 -07:00