Commit Graph

3905 Commits

Author SHA1 Message Date
yuuji.yaginuma
33681d0001 update supported version of PostgreSQL in docs [ci skip]
Follow up to  #23434
2016-02-03 22:24:29 +09:00
Zachary Smith
789fabf01f Fix typo. 2016-02-02 13:45:12 -07:00
Ryan Nielson
ac1427d6ca Change command_task.rb to commands_task.rb in docs
The initialization documentation references `rails/commands/command_task.rb`. This appears to be a typo as the file is actually `rails/commands/commands_task.rb`.
2016-02-02 09:20:10 -04:00
Kasper Timm Hansen
baae952588 Merge pull request #23225 from vipulnsward/20420-rake-routes-options
Add options for rake routes task
2016-02-01 22:09:22 +01:00
Vipul A M
f3e6e80e13 Merge pull request #23406 from hackerkid/master
.git added to https repo urls
2016-02-02 00:38:34 +05:30
Vishnu Ks
b818fd3b45 .git added to https repo urls 2016-02-02 00:33:46 +05:30
Rafael França
04dea729e3 Merge pull request #23151 from maclover7/fix-23148
Add documentation for #17573
2016-02-01 17:03:17 -02:00
Vipul A M
8a436fdd98 Add options for rake routes task
Add two options: `-c` and `-g`.
`-g` option returns the urls name, verb and path fields that match the pattern.
`-c` option returns the urls for specific controller.

Fixes #18902, and Fixes #20420

[Anton Davydov & Vipul A M]
2016-02-02 00:27:30 +05:30
Vishnu Ks
25cf3f0d7c git protocol replaced with https 2016-02-02 00:12:44 +05:30
Jon Moss
b3427c662e Add documentation for #17573
Fixes some parts of #23148.

[ci skip]
2016-02-01 13:28:30 -05:00
Rafael França
8b2c618cef Merge pull request #23375 from prathamesh-sonpatki/fix-19835
Fix documentation related to `config.assets.cache_store` [ci skip]
2016-02-01 11:00:56 -02:00
Prathamesh Sonpatki
437fa98e63 Fix documentation related to config.assets.cache_store [ci skip]
- sprockets-rails no longer supports customizing cache store after
  rails/sprockets-rails@ecaeb27 using `config.assets.cache_store`.
- Instead we need to configure it using block syntax.
- Fixes #19835.
2016-02-01 15:16:37 +05:30
Rafael Mendonça França
c2079f86f8 Revert "Merge pull request #23366 from maclover7/add-configuation-ar-docs"
This reverts commit 96355e87cba247246234386b0af9273cc5d59db9, reversing
changes made to a00c36feea6c0271b5ad48a949ef294514fdef52.

See https://github.com/rails/rails/pull/23366#issuecomment-177714429
2016-02-01 00:23:43 -02:00
Vipul A M
acddd032d0 Merge pull request #22857 from bdewater/interlock-doc
Update middleware docs regarding ActionDispatch::LoadInterlock [ci skip]
2016-02-01 01:56:43 +05:30
Bart de Water
6cdc36a026 Update middleware docs regarding ActionDispatch::LoadInterlock [ci skip] 2016-01-31 21:18:37 +01:00
Ryuta Kamizono
7d67c318f6 Remove odd ` [ci skip] 2016-01-31 16:43:52 +09:00
Jon Moss
3ded07e7c8 Add configuration section to "Active Record Basics" guide
This is to fill in some missing information as apart of #22931.

It's on purpose that the sample `Message` model inherits from
`ActiveRecord::Base` -- Active Record is not meant to be coupled to
Rails, and we can't guarantee that users outside of the Rails world will
have an `ApplicationRecord` class that inherits from
`ActiveRecord::Base`.

[ci skip]
2016-01-30 19:46:00 -05:00
Jon Moss
d2bd7bba8e Small cleanup to Testing Guide
- inbuilt --> built-in
- Remove random spaces from code examples

[ci skip]
2016-01-30 15:10:25 -05:00
Vipul A M
153438f749 Merge pull request #23358 from vipulnsward/testing-guide-pass-3
Pass 3 over testing guide
2016-01-31 01:30:09 +05:30
Vipul A M
c01948cc57 Pass 3 over testing guide
- Various grammar fixes
- Added assertions for update controller action tests
- Added user helper tests
- Fix typos

[ci skip]
2016-01-31 01:28:50 +05:30
Prayag Verma
4663cab624 typo fix [ci skip]
Spelling mistake - direcotry > directory
2016-01-31 00:59:14 +05:30
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
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
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
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
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