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
Arthur Nogueira Neves
312485f3e8
Merge pull request #22283 from the-undefined/routes-error-singular-resource
...
[ci skip] add `controller:` argument to routing.md
2015-11-28 12:47:17 -05:00
the-undefined
3fccecb87b
[ci skip] add controller:
argument to routing.md
...
Passing a `Symbol` to the `to:` argument for a `get` route requires a `controller` argument to also be defined.
The documentation is missing the `controller:` argument, which leaving out raises a routing exception:
```ruby
get 'profile', to: :show
```
```
$ rake routes
ArgumentError: Missing :controller key on routes definition, please check your routes.
```
Adding the `controller:` argument maps the route correctly:
```ruby
get 'profile', to: :show, controller: 'users'
```
```
$ rake routes
profile GET /profile(.:format) users#show
```
2015-11-13 14:32:23 +00:00
yui-knk
666e2cc654
[ci skip] Replace "destroy method" with
destroy action
...
Sure this is `destroy` method of PhotosController, but in this chapter
these methods which mapped by the router are called "action".
For example:
```ruby
get '/patients/:id', to: 'patients#show'
```
is described to dispatch "controller's `show` action".
2015-10-20 20:24:07 +09:00
tanmay3011
148d1217a1
[ci skip] Change 'an URL' to 'a URL' as URL doesn't have a vowel sound
2015-10-06 23:34:05 +05:30
Thiago Augusto
89c53ece47
Update routing.md
2015-09-22 10:17:43 -03:00
Robin Dupret
f51d142881
Tiny documentation fixes [ci skip]
2015-08-11 15:35:35 +02:00
Claudio B.
644c4efdc9
Merge pull request #21177 from brooksreese/single_crud_operation
...
[ci skip] Note that each action maps to a specific CRUD operation
2015-08-09 11:12:03 -07:00
Brooks Reese
0082ffeff1
[ci skip] Note that each action maps to a specific CRUD operation
2015-08-09 11:16:20 -05:00
yui-knk
235155302e
[ci skip] Add an explanation for status
option
2015-08-08 12:27:55 +09:00
Andrew White
aa79574d09
Add note to routing guide about overriding defaults [ci skip]
...
Fixes #21085 .
2015-08-03 11:50:12 +01:00
yui-knk
2ea95a522a
[ci skip]
...
Add descriptions about `ActiveRecord::Base#to_param` to
* `ActionDispatch::Routing::Base#match`
* Overriding Named Route Parameters (guide)
When passes `:param` to route definision, always `to_param` method of
related model is overridden to constructe an URL by passing these
model instance to named_helper.
2015-08-01 23:08:53 +09:00
Robin Dupret
27eccc27cb
A few documentation tweaks [ci skip]
...
[Robin Dupret & Shunsuke Aida]
2015-06-07 14:53:24 +02:00
Zachary Scott
c5ee5cf582
s/snipped/snippet for @senny :trollface:
2015-05-06 22:31:22 -07:00
Ankit Gupta
81a87308bb
Adding a note, snipped for brevity
...
sudden ending of form looks incomplete and catches [ci skip]
2015-05-05 18:58:56 -04:00
Jonan Scheffler
21a2d9a987
Update routing.md
...
This adds instructions for routing to rack applications with mount instead of match.
I just spent an unreasonable amount of time staring at this, hopefully the next person will save some time. It's possible that the docs should simply advise people to use mount and leave out the match method but I don't know enough about the differences in the two approaches to assert that definitively.
2015-04-01 00:37:23 -03: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
7560c3c8ca
[ci skip] Change to code element
2015-03-11 22:57:10 +09:00
yui-knk
5df7866ba0
Add backquote to :as option.
2015-03-11 13:55:40 +09:00
Kevin Jayanthan
c7172f5040
Fixing incorrect class name used in an example.
...
On "Controller Namespaces and Routing" section of the "Rails Routing from the Outside In" , the examples are using "AritclesController" as an example of a controller, to show different organizers. But on the line 232, it incorrectly uses "PostsController" instead of "AritclesController".
2015-03-02 14:56:31 +05:30
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
Xavier Noria
7702974281
warn about reading guides in GitHub
...
References #18148 .
2014-12-23 23:32:50 +01:00
Yves Senn
b8fbcc0787
Merge pull request #16799 from rramsden/fix-typo
...
[ci skip] Fix typo in rails guide for routing
2014-09-04 10:27:49 +02:00
Richard Ramsden
633f72cf0c
[ci skip] Fix typo in rails guide for routing
2014-09-04 14:45:08 +09:00
Zachary Scott
a240ad0c89
💅 from #16329 [ci skip]
2014-07-29 10:28:56 -07:00
Deepender Singla
3d42330048
Get request should not write to database note added. [skip ci]
2014-07-29 22:48:50 +05:30
yuuji.yaginuma
7464d00dd7
[ci skip] Fix code in Routing Guide
2014-07-21 11:27:20 +09:00
Zachary Scott
d5601041fe
Add @senny's changed from #14741 , including code font for resources
...
options, and wrapped to 80 chars. [ci skip]
2014-05-29 00:20:40 -07:00
Zachary Scott
ec7fee4982
Merge branch 'master' of github.com:zackperdue/rails into zackperdue-master
2014-05-29 00:18:52 -07:00
John Kelly Ferguson
d02c810e29
Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]
2014-05-21 23:01:45 -04:00
Josef Šimánek
981dda53db
Use generated binstubs in guides examples.
...
[ci skip]
2014-05-20 13:29:18 +02:00
Juanito Fatas
a0015772b3
[ci skip] Minor improvements on routing.md.
2014-05-09 03:03:50 +08:00
Zack Perdue
cf786378e6
Added documentation for the :param option for resourceful routing
2014-04-14 02:33:24 -04:00
Marcel Morgan
2ddbe87e7a
Update documentation to use Rails.application instead
...
References to ``AppName::Application` removed in favour of ``Rails.application``
as generated with a new rails 4.1 app.
[ci skip]
2014-04-13 05:52:04 -05:00
Jano Suchal
aca64fed43
Be explicit about allowed constraint values, fixes #14702
2014-04-11 15:19:37 +02:00
Gareth du Plooy
90d887d567
Fixes docs typo in nested resource path helpers [skip ci]
2014-02-26 18:45:38 -06:00
Angelo capilleri
3a0cc5c059
add patch in HTTP Verb Constraints [ci skip]
2014-02-11 16:30:47 +01:00
Andrew White
3a48b83e5e
Allow an absolute controller path inside a module scope
...
Fixes #12777
2014-01-05 19:58:04 +00:00
Steven Nunez
ff47b0518b
Update explanation to match example
2013-12-30 09:51:19 -05:00
Ben Lewis
5019a046c6
Fixed typos in shallow routes and routing concerns
...
Grammatical tense correction: "There exists two" => "There exist two".
Plurality correction: "can be reused inside others resources" => "can be reused inside other resources".
2013-11-18 21:10:21 -07:00
Juanito Fatas
5059769a35
[ci skip] Make all tables have Controller#Action, change a tense in sentence.
2013-10-31 18:45:09 +08:00
Paul Nikitochkin
2c8bc2cdcd
Use Ruby on Rails Coding Conventions for code examples in the guides
...
* Indent after private/protected
* Ruby >= 1.9 syntax for hashes
* Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks.
[ci skip]
2013-09-06 21:42:29 +03:00
Vijay Dev
317aaa0588
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
guides/source/layout.html.erb
2013-06-26 22:57:34 +05:30
Andrew White
e1e7888fbc
Clarify what arguments are passed to redirect blocks - fixes #11056
2013-06-25 07:01:01 +01:00
Anton Cherepanov
059f9f0394
Added markdown tag for highlight
2013-06-24 16:28:26 +02:00
Cody Robbins
d1c0d9b155
Added a warning about #1769 to the routing guide.
2013-06-07 18:32:50 -04:00
RSL
48ac592bd9
Revert "change additional 'RESTful' routes to 'resourceful' routes as the additional actions may potentially get you farther away from RESTfulness"
...
This reverts commit 382419d28fe8c43b88e39b83ac175973a36feca8.
2013-05-30 12:43:40 -04:00
RSL
382419d28f
change additional 'RESTful' routes to 'resourceful' routes as the additional actions may potentially get you farther away from RESTfulness
2013-05-30 12:17:40 -04:00
Sunny Ripert
606c09b8db
Consistent use of one space only after punctuation
2013-05-28 14:38:02 +02:00
Prathamesh Sonpatki
60a961f3b6
ruby -> Ruby
2013-05-12 09:47:41 +05:30