Commit Graph

3872 Commits

Author SHA1 Message Date
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
Rafael Mendonça França
e165f7fa60 Update the maintenance policy for the next release. 2016-01-04 17:23:34 -02:00
Prathamesh Sonpatki
fd04a0cb09 Remove duplicate entry for ActiveRecord::Relation#cache_key from Rails 5 release notes [ci skip] 2016-01-02 22:35:23 +05:30
Sean Collins
0d3254e3e6 Fix typo: test -> text 2015-12-30 17:15:07 -07:00
Kasper Timm Hansen
e129c0698c [ci skip] Update rails/all.rb reference.
It didn't mention Action Cable's engine.
2015-12-30 22:30:29 +01:00
Yves Senn
6c85aeaa7b Merge pull request #22844 from prathamesh-sonpatki/issue_22836
Fix documentation for configuring default_charset [ci skip]
2015-12-30 08:50:33 +01:00
Prathamesh Sonpatki
8fa337305f Fix documentation for configuring default_charset [ci skip]
- Fixes #22836.
2015-12-30 11:35:47 +05:30
Akshay Vishnoi
2d1688584f [ci skip] Put all removals in its section 2015-12-30 11:02:32 +05:30
Yves Senn
0d2675f84f Merge pull request #22053 from Empact/first-loaded
Fix #first(limit) to take advantage of #loaded? records if available
2015-12-28 09:34:35 +01:00
Eileen M. Uchitelle
85048e90ab Merge pull request #22759 from akshay-vishnoi/human-size-helper
Add support for Petabyte and Exabyte in number to human size
2015-12-27 09:56:43 -05:00
yuuji.yaginuma
b8bbdc54e2 fix link to pr [ci skip] 2015-12-27 20:58:36 +09:00
Tim Rogers
9e0fa4cddd Improve RDoc documentation of ActionDispatch::SSL 2015-12-24 14:11:51 +00:00
Tim Rogers
8678740e33 Improve documentation of config.force_ssl in guides 2015-12-24 12:24:48 +00:00
Dave Powers
34f5704b85 Improve readability of CacheHelper section
[ci skip]
2015-12-23 16:42:54 -05:00
Ryuta Kamizono
ec174408e4 release notes, use past tense. [ci skip] 2015-12-24 04:51:53 +09:00
Yves Senn
f33b12254e release notes, Rails 5 won't support the protected_attribtues gem.
[ci skip]
2015-12-23 17:08:25 +01:00
Yves Senn
e426258aa2 release notes, extracted notable changes from Active Record CHANGELOG.
[ci skip]
2015-12-23 12:06:38 +01:00