Commit Graph

1600 Commits

Author SHA1 Message Date
Prem Sichanugrist
a9f3c9da01 Using Object#in? and Object#either? in various places
There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
2011-04-11 03:17:09 +08:00
Xavier Noria
3e24e9ebc2 Merge branch 'master' of git://github.com/lifo/docrails 2011-04-03 22:22:03 +02:00
orta
4c323bc25a added .'s to headings in the initialization textile page 2011-04-03 15:19:32 +02:00
Akira Matsuda
9bf5cddd28 s/ERb/ERB/g (part II) 2011-04-03 16:59:37 +09:00
burningTyger
63e4e218c5 fix typo 2011-04-01 00:12:58 +02:00
Josiah Ivey
f44d85a030 Grammar tweaks to the guides guidelines 2011-03-31 00:16:45 -05:00
Andrew White
a9dafbb28d Delegate first!, last!, any? and many? to scoped 2011-03-29 17:21:21 +01:00
Prem Sichanugrist
51551a0a5b Update the wildcard route to be non-greedy by default, therefore be able to match the (.:format) segment [#6605 state:resolved]
After some discussion with Andrew White, it seems like this is a better approach for handling a wildcard route. However, user can still bring back the old behavior by supplying `:format => false` to the route.

Signed-off-by: Andrew White <andyw@pixeltrix.co.uk>
2011-03-29 10:12:17 +01:00
mhutchin
ff09d4bd5b Minor rephrasing to improve grammar and readability. 2011-03-29 01:50:00 -07:00
mhutchin
9fdfe2ec1e Fixed typo and improved readability. 2011-03-29 00:39:33 -07:00
Sebastian Martinez
54af8dfbfc Fix Basic Authentication examples 2011-03-28 22:49:43 -03:00
Sebastian Martinez
70779a08a0 Updated Basic Authentication guides to reflect new Base.http_basic_authenticate_with method 2011-03-28 22:46:13 -03:00
mhutchin
62dd3458e3 Minor typo correction. 2011-03-27 23:50:51 -07:00
Xavier Noria
eea6a65488 Merge branch 'master' of git://github.com/lifo/docrails 2011-03-27 23:50:39 +02:00
Xavier Noria
6194c6d13b AR validations and callbacks guide: put update_attribute back 2011-03-27 23:49:11 +02:00
Prem Sichanugrist
884e39f69e Fix documentation typo 2011-03-28 04:58:48 +08:00
Prem Sichanugrist
7cbdfa8303 Add controller-specific force_ssl method to force web browser to use HTTPS protocol
This would become useful for site which sometime transferring sensitive information such as account information on particular controller or action.

This featured was requested by DHH.
2011-03-28 04:58:47 +08:00
Prem Sichanugrist
2c0c4d754e Add config.force_ssl configuration which will load Rack::SSL middleware if set to true
This will allow user to be able to force all requests to be under HTTPS protocol.

This commit was a request from DHH. Special thanks to Josh Peek as well for making `Rack::SSL`.
2011-03-27 13:27:23 -07:00
mhutchin
738e906a02 A little minor rephrasing for improved readability. 2011-03-27 02:34:02 -07:00
mhutchin
35129f5b99 Minor typo fix. 2011-03-27 01:40:49 -07:00
Sebastian Martinez
7c6807296b Updated guides for new #update_column. 2011-03-26 12:13:39 -03:00
Sebastian Martinez
6ee5d9244c impact recent updates to #first! and #last! methods 2011-03-25 20:07:13 -03:00
Sebastian Martinez
a0946692c1 Update AR querying guide with #first! and #last! new methods 2011-03-25 19:34:45 -03:00
Dr Nic Williams
ee8ca49414 Update 'Getting Started on Windows' tip to go to one-click Rails Installer 2011-03-22 15:13:55 -07:00
Ryan Bigg
137ff0402a Caching guide: Capitalize 'Note' so that it's rendered as a proper note 2011-03-23 08:33:06 +11:00
Ryan Bigg
5a44951186 Querying guide: mention that performing a where on an relation that contains an includes statement will generate a LEFT OUTER JOIN rather than an INNER JOIN or another query 2011-03-22 12:16:15 +11:00
Ryan Bigg
c24e5548fd Querying guide: mention that performing a where on an relation that contains an includes statement will generate a LEFT OUTER JOIN rather than an INNER JOIN or another query 2011-03-22 12:16:13 +11:00
Nicolas Cavigneaux
3edba71895 Add link to mailing-list 2011-03-16 13:04:39 +01:00
Xavier Noria
21b12d89a6 Merge branch 'master' of git://github.com/lifo/docrails 2011-03-14 22:09:52 +01:00
Xavier Noria
a0826cceea be be -> be 2011-03-14 22:06:27 +01:00
Xavier Noria
de5e41f855 move the tips about :allow_(nil|blank) near their explanations, also no need to say these are options for all validators if they are not 2011-03-14 22:03:23 +01:00
Lars Smit
c540b35441 Removed double texts 2011-03-13 09:07:23 +01:00
Mike Gehard
ee7c48678f Minor formatting changes and remove a comment 2011-03-10 10:08:30 -05:00
Vijay Dev
439ccdc3cf update plugin urls to reflect official maintainers 2011-03-10 19:58:55 +05:30
David Aaron Fendley
6fba542f44 Added note re: functional tests and HTTP methods. 2011-03-09 18:06:50 -06:00
Xavier Noria
32b5c4b77a copy-edits 532b770 2011-03-09 18:43:55 +01:00
Andrei Kulakov
532b77077f Use Rubys own Float#round method in versions 1.9 and above 2011-03-10 01:30:51 +08:00
Jeff Kreeftmeijer
e05e997907 Add a note to discourage users from using presence validators with allow_(nil|blank) 2011-03-09 10:58:18 +01:00
Xavier Noria
f41dd99be7 revises links to the API websites of individual components (no longer maintained), and rewrites the section about after and around filters in the controller guide 2011-03-09 07:43:18 +01:00
Akira Matsuda
071ddb8281 more "SSL everywhere" for GitHub URLs
see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
2011-03-07 06:18:32 +09:00
Akira Matsuda
22faa2c86d wrong SQL statement 2011-03-06 03:29:23 +09:00
Xavier Noria
9092052cb0 merges rails 2011-03-05 12:06:43 +01:00
Xavier Noria
f6a5449d43 copy-edits 819762c
* simplifies some sentences
* use a more neutral language with less you/yours
2011-03-05 11:57:32 +01:00
tashian
e95b965926 Properly escaped a + in the dynamic segments TIP 2011-03-05 11:56:33 +01:00
Dalibor Nasevic
3673a6981e Removed link to un-existing Issues page on Github 2011-03-05 11:56:33 +01:00
Lars Smit
9b01284c3e Added some new advice on applying patches 2011-03-05 11:56:32 +01:00
Rodrigo Navarro
3f97f056f9 Pointing out that dynamic_form plugin must be installed to be able to use error_messages and error_messages_for view helpers. 2011-03-05 11:56:32 +01:00
Ben Orenstein
eef713dd66 Clean up wording. 2011-03-05 11:56:31 +01:00
Vijay Dev
e15973ce7c use resources in place of map.resources 2011-03-05 11:56:31 +01:00
Ben Orenstein
8f526b30f4 Warn people that these methods are deprecated. 2011-03-05 11:56:31 +01:00