Commit Graph

745 Commits

Author SHA1 Message Date
Steve Klabnik
4d61d1f8f5 Fix default cache store documentation.
It's actually the FileStore.

Fixes #8130.
2012-11-09 14:52:56 +01:00
Cesar Carruitero
3738ef292a correct double quotes for interpolation in routing guide [ci_skip] 2012-11-08 17:16:57 -05:00
Malcolm Locke
6eb4271d91 Action mailer can take an array for template_dir 2012-11-09 10:21:03 +13:00
Cesar Carruitero
c04abbaa63 fix bugs in rails_on_rack [ci-skip] 2012-11-08 16:04:39 -05:00
Gaurish Sharma
e3e4fa1f65 make syntax of select.map(&:field) same as pluck
The shortcut ampersand syntax of `select.map(&:field)` is same thing as `.plunk(:field)`. document that
2012-11-08 19:14:35 +05:30
Cesar Carruitero
01c7a1e702 update syntax in routing guide [ci-skip] 2012-11-08 00:36:50 -05:00
Carlos Antonio da Silva
9ef88380af Revert "fix white spaces"
This reverts commit 223ed2b4832d63853b61ccb8e9ff82fcd835e61f.

Reverting since rake routes right align named route. See some discussion in
223ed2b483 (commitcomment-2104595)
2012-11-05 19:49:17 -02:00
Cesar Carruitero
223ed2b483 fix white spaces 2012-11-05 15:28:58 -05:00
comptrol
ebc18cf291 Fixed the wrong terminology usage in 2.2.2 2012-11-03 15:32:23 +02:00
Vijay Dev
3b0bb08699 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	actionpack/lib/action_controller/metal/mime_responds.rb
	activerecord/lib/active_record/attribute_methods.rb
	guides/source/working_with_javascript_in_rails.md
2012-11-03 01:56:16 +05:30
Vijay Dev
ee917493e4 copy edits [ci skip] 2012-11-03 01:41:44 +05:30
Juanjo Bazán
0d7dcdcbf4 3.1 and up, in configuring guide. 2012-10-29 11:27:35 +01:00
Daniele Sluijters
851f8c1023 atomicc.rb: Don't assume we may chown/chmod a file.
Previously this code just assumed it is capable of changing the file
ownership, both user and group. This will fail in a lot of scenario's
unless:
* The process is run as a superuser (root);
* The owning user and group are already set to the user and group we're
  trying to chown to;
* The user chown'ing only changes the group to another group it is a
  member of.
If either of those conditions are not met the filesystem will simply
deny the operation throwing an error.

It is also not always possible to do a chmod, there might be a SELinux
policy or another limitation preventing the user to change the file
mode. To this end the chmod call has also been added to the rescue
block.

I've also added a little comment above the chmod command that doing a
chmod on a file which has an ACL set will cause the ACL to be
recalculated / modified.
2012-10-29 10:04:59 +01:00
Carlos Antonio da Silva
94aadf7680 Add syntax highlight to code blocks in javascript guide [ci skip] 2012-10-28 12:26:07 -02:00
Carlos Antonio da Silva
f47026e7f9 Add backticks around link_to example in javascript guide [ci skip] 2012-10-28 12:15:35 -02:00
Michael Bashkirov
3b76725e0b fix typo in button_to helper example 2012-10-28 16:26:02 +04:00
John Gallagher
c570ba70fe Changed comment section to be more explicit. I had an issue with rolling back a migration and couldn't understand why 'rake db:reset' didn't work. 2012-10-27 21:54:44 +01:00
Rafael Mendonça França
e3dad960e8 Add the Working with JavaScript Guides in the guides home as WIP 2012-10-27 13:14:02 -02:00
Agis Anastasopoulos
cc81af2fe4 Use a better word 2012-10-26 23:18:34 +03:00
Carlos Antonio da Silva
d200cb905e Remove ActiveRecord::Model entry from 4.0 Release Notes [ci skip] 2012-10-26 13:37:04 -02:00
Jaime Iniesta
b1e5c1660b Fix a pair of typos on Active Record Querying guide 2012-10-26 14:56:37 +02:00
Francesco Rodriguez
65be1a0e7a encourage use of Ruby 1.9 syntax [ci skip] 2012-10-25 20:06:16 -05:00
Henrik N
cc5dfccdda AJAX -> Ajax in layouts_and_rendering guide.
Fixed in the JS guide in 8c38172ba59e16d8e523ac4f1c5ae29b6851d3ee
2012-10-25 13:46:11 +02:00
Xavier Noria
4fee5dfed2 Revert "Improve grammar a bit"
This reverts commit 507e522e26b4073455b2337bcf1670e52bba5429.
2012-10-24 22:52:59 +02:00
Xavier Noria
fe470411c6 Revert "Explain where the acronym AJAX stands for & replace "JavaScript writer" with "JavaScript developer""
This reverts commit 1332cf53af981d0a7a6f801edd9632eb5c118a3f.
2012-10-24 22:52:43 +02:00
Xavier Noria
c8dec40c5e Revert "Improve "request response" term typing & fix a minor typo"
This reverts commit a6d383c8b2afb253c009ad67d31aae3aa8dcc457.
2012-10-24 22:52:18 +02:00
Xavier Noria
7cbce85054 Revert "fix a typo"
This reverts commit 6d927fb4da7a0a17d62109b7ef8798a8e75082a7.
2012-10-24 22:51:58 +02:00
Xavier Noria
0f45570b96 Revert "Consistent headlines & ToC"
This reverts commit 506257a173bb5cbb083ccae8d1b4ed82a456006a.
2012-10-24 22:51:20 +02:00
Guillermo Iguaran
6250873d96 With the Asset Pipeline the :cache and :concat options aren't used anymore 2012-10-24 10:58:04 -05:00
Guillermo Iguaran
53568e05a3 Update Upgrading Guide with removal of :cache and :concat options 2012-10-24 10:51:11 -05:00
Guillermo Iguaran
276e7b0a1d Update upgrading notes: users should stop using :concat and :cache options in asset tags 2012-10-24 10:47:07 -05:00
Xavier Noria
9d66c40189 JS guide: applies guides casing guidelines for titles [ci skip] 2012-10-23 22:25:21 +02:00
Xavier Noria
8c38172ba5 JS guide: AJAX -> Ajax
We discussed this on Twitter, seems to be the best option.
2012-10-23 22:21:02 +02:00
Xavier Noria
69e9715f79 renames the JS guide file name to match the new title [ci skip] 2012-10-23 22:14:14 +02:00
Xavier Noria
c145f35dac adds Rails to the title of the JS guide [ci skip] 2012-10-23 22:14:04 +02:00
Francesco Rodriguez
2ef4d5ed5c fix output messages - docs [ci skip] 2012-10-22 14:27:55 -05:00
Lennart Fridén
67ec9b7c4e Fixes typo. 2012-10-21 17:36:02 +02:00
Robin Dupret
d279d3e165 Wrap a piece of code to a code block 2012-10-21 17:48:40 +03:00
Agis Anastasopoulos
2767f01be0 Fix a typo 2012-10-21 17:23:22 +03:00
Agis Anastasopoulos
00332733b2 Improve grammar 2012-10-21 17:21:50 +03:00
Agis Anastasopoulos
507e522e26 Improve grammar a bit 2012-10-21 17:19:06 +03:00
Agis Anastasopoulos
1332cf53af Explain where the acronym AJAX stands for & replace "JavaScript writer" with "JavaScript developer" 2012-10-21 17:15:44 +03:00
Agis Anastasopoulos
a6d383c8b2 Improve "request response" term typing & fix a minor typo 2012-10-21 17:12:05 +03:00
Agis Anastasopoulos
506257a173 Consistent headlines & ToC
I believe the topics and their headlines should be consistent for obvious reasons. Also
2012-10-21 17:10:11 +03:00
Agis Anastasopoulos
6d927fb4da fix a typo 2012-10-21 17:06:47 +03:00
Vijay Dev
676ee7887e fix a couple of typos in the js guide [ci skip] 2012-10-21 19:19:47 +05:30
Vijay Dev
f938019da2 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	activesupport/lib/active_support/core_ext/hash/slice.rb
	guides/source/active_support_core_extensions.md
2012-10-21 18:49:19 +05:30
Xavier Noria
cec66e589f Merge pull request #7493 from steveklabnik/ajax_guide
Re-writing the AJAX Guide
2012-10-21 02:32:53 -07:00
Jon Leighton
0096f53b25 nodoc the first_or_create methods and document alternatives 2012-10-19 15:56:18 +01:00
Jon Leighton
eb72e62c30 Add Relation#find_or_create_by and friends
This is similar to #first_or_create, but slightly different and a nicer
API. See the CHANGELOG/docs in the commit.

Fixes #7853
2012-10-19 13:18:47 +01:00