Commit Graph

1276 Commits

Author SHA1 Message Date
Trevor Turk
43ab0158fb Document introduction of the ActionController::UnknownFormat exception 2013-02-28 14:02:56 -06:00
Carlos Antonio da Silva
a87687e5fd Merge pull request #9359 from justinwb/master
Removed template_root as a configuration option
2013-02-27 04:31:06 -08:00
Carlos Antonio da Silva
00f8002906 Merge pull request #9446 from bemurphy/enhance_root_route_guide
Add routing guide doc on root with namespaces. [ci skip]
2013-02-26 09:49:50 -08:00
Brendon Murphy
a025cd743c Add routing guide doc on root with namespaces.
I read #9419 and realized I didn't know you could have namespaced
roots, checked around, and a few friends didn't either.  Figured
this makes it guide worthy.
2013-02-26 09:43:32 -08:00
Vijay Dev
7184e3e02e Merge branch 'master' of github.com:lifo/docrails 2013-02-26 21:53:38 +05:30
Jeff Dickey
212153ca47 small typo
small typo fix
2013-02-25 17:57:42 -08:00
Yves Senn
277784459f update 4.0 release notes to reflect the removal of auto explain. 2013-02-25 09:51:20 +01:00
Yves Senn
74bc0d0fd4 update the example for after_commit in the guides.
This is a follow up to #9356.
2013-02-24 20:43:09 +01:00
Xavier Noria
d65376fce4 Merge pull request #9400 from senny/remove_auto_explain_threshold_in_seconds
remove config.auto_explain_threshold_in_seconds
2013-02-24 11:16:35 -08:00
Yves Senn
d3688e02ca remove AR auto-explain (config.auto_explain_threshold_in_seconds)
We discussed that the auto explain feature is rarely used.
This PR removes only the automatic explain. You can still display
the explain output for any given relation using `ActiveRecord::Relation#explain`.

As a side-effect this should also fix the connection problem during
asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie`
forced a connection.
2013-02-24 20:01:04 +01:00
Rafael Mendonça França
a06b1d0cf4 Mention the extraction of Active Resource in the upgrading guide
[ci skip]
2013-02-24 15:07:47 -03:00
Rafael Mendonça França
d1c5f879b0 Mention the removal of attr_accessible and attr_protected in the upgrading guide
Point to the Protected Attributes gem to those who want a smoothly
upgrade path before to change to use Strong Parameters.

[ci skip]
2013-02-24 15:04:57 -03:00
Qihuan Piao
5d631475a1 Update guide doc to use migration shortcuts 2013-02-25 00:38:46 +09:00
Qihuan Piao
a1dd468b1c Wrap around_action word with <code> tag 2013-02-25 00:29:03 +09:00
Gagan Awhad
f7a0a95de2 Added documentation for beginning_of_minute and end_of_minute to Active Support Core Extensions guide 2013-02-22 10:10:42 -06:00
bobbus
7ded3b8c4b Link is not relevant anymore
Cannot find the screencast on the internet, guess it was removed
2013-02-22 00:24:35 +01:00
Justin Bingham
063ba216c0 Removed template_root as a configuration option
Removed template root from actionmailer configuration options as it seems to have been pulled out completely in favor of explicit definition via template_path / template_name.
2013-02-21 10:40:34 -05:00
Marc Schütz
743d15bba1 Add more documentation for create_join_table.
Explain that it doesn't create indices by default and
that it also has a block form.
2013-02-20 22:18:06 +01:00
Prem Sichanugrist
c9909db9f2 Remove XML Parser from ActionDispatch
If you want an ability to parse XML parameters, please install
`actionpack-xml_parser` gem.
2013-02-20 08:46:44 -05:00
Arne Brasseur
ac0285ecb8 Update the "upgrading" guide for people coming from 3.0 and 3.1. The latest versions for 3.1 and 3.2 are now 3.2.12 and 3.1.11 respectively. 2013-02-20 13:19:35 +01:00
robertomiranda
cb5ccf4160 Improve upgrading guide with ActionDispatch::BestStandardsSupport removal 2013-02-19 23:14:25 -05:00
Xavier Noria
26eb1e4e70 fixes a typo in the migrations guide 2013-02-19 18:11:10 +01:00
Brian Kim
f9f6fc7a91 Fix bug in code example from layouts and rendering guide
The code in 2.3.2 assumed that render has an alert option like
redirect_to to create a flash alert message, but it doesn't.
2013-02-18 14:27:25 -05:00
Brian Alexander
0dcecd2650 Document changes in #7968 2013-02-18 11:26:52 -07:00
Hanfei Shen
8743f800db Update guides/source/active_record_querying.md
Fix missing `ORDER BY id ASC` for Client.first(2);
Uppercase the little y in the SQL equivalent of the Client.last(2).
2013-02-19 00:41:09 +08:00
Akira Matsuda
57b0ae8011 Gist URLs are now namespaced
see: https://github.com/blog/1406-namespaced-gists
2013-02-18 23:59:48 +09:00
Noam Gagliardi
72118ba01d clarify singular and plural routes
Found the wording on line 158 somewhat confusing. Added short example to clarify.
2013-02-18 04:45:58 -05:00
Vijay Dev
0c145448c4 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/upgrading_ruby_on_rails.md
2013-02-15 22:06:17 +05:30
Vijay Dev
2008fe606b copy edits [ci skip] 2013-02-15 22:01:11 +05:30
Rafael Mendonça França
3a388da87d Revert "incorrect content of models/comment.rb after 'rails generate'"
This reverts commit 0f0803fda5df60319d8646bb4f3e71f2e596316a.

Reason: The content was correct since attr_accessible was removed from
rails master.
2013-02-13 18:00:20 -02:00
Kuba Brecka
0f0803fda5 incorrect content of models/comment.rb after 'rails generate' 2013-02-13 20:57:06 +01:00
Americo Savinon
6530d42dbb Detail Ruby 1.8 ships with TestUnit and Ruby 1.9 with MiniTest 2013-02-12 14:56:19 -05:00
Yves Senn
9e23399c30 fix the example code in the engines guide. closes #8583. 2013-02-11 15:22:11 +01:00
Yves Senn
fdf04fe7f6 remove trailing whitespace from engines guide 2013-02-11 15:22:11 +01:00
Luis Vasconcellos
20985257a1 fix a typo on the engine guide 2013-02-11 00:59:47 -02:00
Jeremy Kemper
a0380e808d Prefer Ruby 2.0; require 1.9.3+ 2013-02-09 17:41:07 -07:00
Ryunosuke SATO
24e08450ee Fix supported ruby version for Rails 4 2013-02-10 04:11:52 +09:00
Ryunosuke SATO
07f533a2da Fix CoffeeScript example
`a[data-color]` is not used in example html.
2013-02-10 03:53:27 +09:00
Henrik Nyh
045f0195e0 Validations guide: validates_with init clarification.
As discussed with @josevalim on Ruby Rogues Parley.
2013-02-09 15:47:22 +01:00
Yves Senn
69f28a7d8d ruby constant syntax is not supported as routing :controller option.
The current implementation only works correctly if you supply the `:controller`
with directory notation (eg. `:controller => 'admin/posts'`).

The ruby constant notation (eg. `:controller => 'Admin::Posts`) leads to unexpected problems with `url_for`.

This patch prints a warning for every non supported `:controller` option. I also added documentation how
to work with namespaced controllers. The warning links to that documentation in the rails guide.
2013-02-06 20:56:09 +01:00
Ryunosuke SATO
7290fb2eaa Fix file name in document [ci skip]
This file was renamed in c8a25386d.
2013-02-05 09:53:28 +09:00
robertomiranda
ebcb53c1cf Update upgrading guide with ActionDispatch::BestStandardsSupport removal 2013-02-04 18:02:52 -05:00
Rafael Mendonça França
d3524852e2 Merge pull request #9151 from gogogarrett/patch-1
Fix link to point to new RefineryCMS repo
2013-02-02 05:01:22 -08:00
Xavier Noria
08b60fc2e5 Merge remote-tracking branch 'docrails/master' 2013-02-02 10:33:19 +01:00
Xavier Noria
6a86873552 Revert "Detail middleware initialization points in the initialization guide [ci skip]"
I feel this is too detailed for the guide. Most of that is not public interface,
and if tomorrow something is added or removed in those chains we do not want
to come here to maintain it. Also, linking to a gist is not a good idea in a guide.

We could have a more broad description of what goes in what order, the most key and
public things.

This reverts commit 862a05edf3af128f25a87999936262b733ed781e.
2013-02-02 10:27:52 +01:00
Garrett Heinlen
10c262c75d Fix link to point to new RefineryCMS repo 2013-02-01 20:06:12 -06:00
robertomiranda
a83183c721 Remove BestStandardsSupport references 2013-02-01 16:37:35 -05:00
Nicholas Schultz-Møller
26db079f94 Fix formatting: ruby->erb. [ci skip] 2013-01-31 15:11:18 +01:00
manishval
f409e0519f Typo in code 2013-01-29 14:58:52 -04:00
Xavier Noria
30034dfbc4 Merge pull request #8830 from antoinelyset/master
Improve String#squish whitespaces matching
2013-01-28 13:24:56 -08:00
Manish Valechha
879c18df83 Fix typo in rails plugins guide 2013-01-27 00:26:43 -04:00
Michael de Silva
862a05edf3 Detail middleware initialization points in the initialization guide [ci skip] 2013-01-27 06:12:33 +05:30
Xavier Noria
0b5d3f3273 Merge remote-tracking branch 'docrails/master'
Conflicts:
	actionpack/lib/action_view/helpers/form_options_helper.rb
	guides/code/getting_started/app/controllers/comments_controller.rb
2013-01-26 17:41:56 +01:00
Xavier Noria
4313461587 generic pass before merging docrails 2013-01-26 17:36:38 +01:00
José Valim
474e7dd82a Merge pull request #9084 from senny/document_am_delivieries_reset
document the behavior of `ActionMailer::Base.delivieries` in tests
2013-01-26 08:14:26 -08:00
Yves Senn
18dceeb425 document the behavior of ActionMailer::Base.delivieries in tests
thanks @danielpuglisi
2013-01-26 17:05:58 +01:00
Andrew Wilcox
4e5a4cf4b2 Remove mass-assignment line from guide summary 2013-01-25 23:45:55 -05:00
Juanjo Bazán
550299a671 fix Active Record/Action Pack Changelog links 2013-01-25 22:53:49 +01:00
Weston Platter
97b249112d [engines guide] reformatted some stuff 2013-01-24 02:42:40 -06:00
Weston Platter
9133aadfe2 [engines guide] reworded a run on 2013-01-24 02:42:21 -06:00
Vipul A M
d35b76283b Add new DB rake tasks to the contributing section. 2013-01-23 20:45:31 +05:30
Brian Littmann
bceeeaa4bd Typo, grammar, and comma love. 2013-01-22 15:59:49 -06:00
Antoine Lyset
b5245da94a Improve String#squish whitespaces matching 2013-01-22 22:46:11 +01:00
Brian Littmann
634a2aafbe Typo fix in guides/source/engines.md 2013-01-22 15:17:16 -06:00
Guillermo Iguaran
e35d0a6112 Merge pull request #9031 from virusman/doc-no-asset-concat
Remove old asset tags API from docs
2013-01-22 12:36:48 -08:00
virusman
921305b0c8 Remove old asset tags API from docs, reflecting changes from #7900 2013-01-23 00:24:01 +04:00
Carlos Antonio da Silva
2bca2f6418 Revert "updating i18n guide with locale config location."
This reverts commit 46902908910c041e268429d674bbe084399cc664.
2013-01-22 09:28:07 -02:00
Steve Klabnik
51b9def5bf fixing link to validations guide in getting started guide 2013-01-22 00:09:00 -05:00
Steve Klabnik
aadd16f913 Getting Started Guide: strong_parameters
Stuff didn't work because of strong_parameters. Now the right calls are
in place.
2013-01-22 00:08:31 -05:00
Xavier Noria
f667f0f7ee copy-edits 7e6e4f2 [ci skip]
Capitalization in the title of the section, enumerates the environments
in the usual order, adds a paragraph, and tries to use less "you"s.
2013-01-21 21:14:50 +01:00
Yves Senn
7e6e4f2547 document how to create custom rails environments 2013-01-21 20:38:04 +01:00
Cyril Jouve
03a391482a consistently inherit from ApplicationController in guides exemples 2013-01-20 03:38:45 +01:00
Lucas Caton
2b7a621e6a Replacing plugin to gem 2013-01-19 15:49:28 -02:00
Thomas Drake-Brockman
46752092ef Replaced documentation for config.action_controller.raise_on_unpermitted_parameters with documentation for config.action_controller.action_on_unpermitted_params. 2013-01-20 00:23:55 +08:00
Akira Matsuda
cb60a83377 "Asynchronous Mailers" will not be available in 4.0 2013-01-18 22:18:33 +09:00
Akira Matsuda
9da9763e0a s/it's/its/
[ci skip]
2013-01-18 17:17:59 +09:00
Akira Matsuda
8b0e52556e script => bin 2013-01-18 17:12:47 +09:00
Erik Johnson
3fa73324c5 for recommended Apache configuration of asset pipeline, use <Location> instead of <LocationMatch>,
to avoid unnecessary reg ex parsing and code
<http://httpd.apache.org/docs/2.2/mod/core.html#location
(recommended by @jja). - @erikj
2013-01-17 14:25:18 -07:00
Yves Senn
29a69cde0c spelling correction for AM interceptors 2013-01-17 14:25:56 +01:00
Jonathan Garvin
f58e268e38 clarify awkward sentence re: email testing 2013-01-16 19:19:31 -07:00
Carlos Antonio da Silva
f5aa4d9a1b Merge pull request #8964 from mattdbridges/specify-log-to-clear
Clear specific logs when using `rake log:clear`
2013-01-16 15:52:55 -08:00
Matt Bridges
08ac4b9672 clear specific logs when using rake log:clear 2013-01-16 17:12:32 -06:00
Yves Senn
a7772405dc document Intercepters in ActionMailer guide 2013-01-16 20:51:04 +01:00
Nicholas Schultz-Møller
728f9c2eed Fix formatting error introduced in cc585c8. 2013-01-16 11:44:55 +01:00
Xavier Noria
3daa8e51cc removes spurious file pushed in cc585c8 2013-01-15 21:01:30 +01:00
davetoxa
cc585c8b01 revert to 814c9875ec4cf01e1348d1ab1c9d12eee5a9adac 2013-01-16 01:26:47 +06:00
davetoxa
4dcc9dddde Revert "Improves documentation about Fragment Caching. [ci skip]"
This reverts commit 814c9875ec4cf01e1348d1ab1c9d12eee5a9adac.
2013-01-16 01:12:37 +06:00
Anton Cherepanov
31143a4ad3 Update guides/source/active_record_validations.md
Duplicated `update`
2013-01-15 22:54:21 +06:00
Nicholas Schultz-Møller
814c9875ec Improves documentation about Fragment Caching. [ci skip]
Adds documentation for:
- Aggregate cache keys,
- using an ActiveRecord model as cache key and
- Russian Doll Caching.
2013-01-15 14:44:08 +01:00
Steve Klabnik
4e7c8f8bb8 Remove WIP from Working With JavaScript Guide.
Now that we've fixed the fibs example, this is good to go.
2013-01-13 13:34:36 -05:00
Jude Arasu
c22989d326 Fix simple expression 2013-01-13 09:07:39 +05:30
Zachary Porter
d2d07b3ade Fix typo in guides/source/engines.md 2013-01-11 15:26:05 -05:00
Zachary Porter
0a89d4db1e Fix typo in guides/source/engines.md 2013-01-11 14:07:14 -05:00
Zachary Porter
2222ebb2b0 Update engine application layout file path 2013-01-11 13:53:25 -05:00
Benoit Caccinolo
5ff752de1b Update guides/source/active_record_basics.md 2013-01-11 11:38:52 +01:00
Guillermo Iguaran
34126fa6e3 Merge pull request #8869 from goshakkk/guides-asset-pipeline-tilt
Add asset pipeline guides section on implementing & registering own engines
2013-01-10 11:38:16 -08:00
Yves Senn
d262fab3a1 mention performance test extraction in 4.0 guide 2013-01-10 17:53:41 +01:00
Yves Senn
5ca7ddcb49 remove the rails guide on performance testing 2013-01-10 17:09:07 +01:00
Yves Senn
ce8e3d3072 remove performance tests from the default stack 2013-01-10 17:09:06 +01:00
Gosha Arinich
38efe878c9 add asset pipeline guides section on implementing & registering own engines 2013-01-10 14:09:47 +03:00
Gosha Arinich
00f68c52c5 update assets guide code styling
* 1.9 hash syntax
* proper formatting around one line blocks
* do-end for multiline blocks
2013-01-10 12:59:56 +03:00
Matt Bridges
7342f14c94 adding small mention one single line blocks in contributing to rails
[ci skip]
2013-01-09 10:09:06 -06:00
Diogo Mafra
1d1722b6c4 Correcting the command 'rake rails:update:bin' in the release notes.[ci skip] 2013-01-08 22:56:43 -02:00
Juanjo Bazán
5fb84c6828 remove 'update' duplications 2013-01-08 23:49:29 +01:00
Vijay Dev
f049016cd3 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/getting_started.md
2013-01-09 01:04:15 +05:30
Guillermo Iguaran
fa3f51f734 Merge pull request #8802 from claudiob/patch-1
Update guides/source/getting_started.md [ci skip]
2013-01-07 17:08:37 -08:00
Xavier Noria
553b6958dc doc/README_FOR_APP is no longer generated 2013-01-08 00:50:56 +01:00
Claudio B.
2651810c69 Update guides/source/getting_started.md
Reflect change in 009873a that renamed the script/ folder to bin/
2013-01-07 13:07:23 -08:00
Gosha Arinich
1907409596 more woring improvements to the engines guide
* "also in ... is ..." -> "in .. there is ..."
* use "as well" instead of "also" in the end of the sentence
* "has the ability" -> "can"
2013-01-07 12:27:19 +03:00
Gosha Arinich
a8d4e2788b improve wording of the engines guide
* "very minor" -> "subtle"
* reword successive sentences so that they don't begin with the same
  word ("this")
* "also" is not used in the end of the sentence, use "as well" instead
* "the reason is because" -> "the reason is that"
2013-01-07 12:14:02 +03:00
Gosha Arinich
0acf92184d prefer american spelling of 'behavior' 2013-01-07 11:47:27 +03:00
Jeremy Kemper
009873aec8 Introduce ./bin for your app's executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: 'bundle binstubs unicorn' and 'git add bin/unicorn' 2013-01-06 21:41:36 -07:00
Akira Matsuda
c8e632bd9f Namespace HashWithIndifferentAccess 2013-01-07 07:37:23 +09:00
Gosha Arinich
7a439d23de delegate to :class rather than 'self.class' 2013-01-06 12:43:30 +03:00
Tim Raymond
09626e2eba The plural of apparatus is apparatuses 2013-01-05 18:56:27 -05:00
Gosha Arinich
732d3507da prefer do-end for multiline block 2013-01-06 02:01:22 +03:00
Lucas Mazza
d0676ad9cb Update some code examples on the "Working with JavaScript in Rails" guide. 2013-01-05 18:20:41 -02:00
Gosha Arinich
11f74f08b8 wrap terminal prompt marks in a pre tag 2013-01-05 21:21:20 +03:00
Yves Senn
947e1d5e85 deprecate assert_blank and assert_present.
They don't add any benefits over `assert object.blank?`
and `assert object.present?`
2013-01-05 18:04:52 +01:00
Gosha Arinich
25852593df proper article in the getting started guide 2013-01-05 20:04:40 +03:00
Rafael Mendonça França
a135f3797d Rename raise_on_unexpected_params to raise_on_unpermitted_parameters on the guides 2013-01-05 07:59:26 -02:00
Rafael Mendonça França
cd1757ebec Fix typo 2013-01-05 06:23:34 -02:00
Akira Matsuda
85c13b7d3d beginrescueend has ended 2013-01-05 14:41:32 +09:00
Thomas Drake-Brockman
bd104bf5ca Document new configuration option action_controller.raise_on_unexpected_params. 2013-01-05 10:45:10 +08:00
Ryunosuke SATO
3dc1a36b70 ERB::Util::h is no longer generated in scaffold 2013-01-05 00:23:40 +09:00
Akira Matsuda
c91a7db4cf undecorated_table_name was moved and refactored 2013-01-04 17:21:46 +09:00
Akira Matsuda
257348405a Ruby 1.8 support had gone
instance_variable_names remains for internal use, but it's not that useful for the users anymore
2013-01-04 14:54:58 +09:00
Akira Matsuda
ffaad630e2 get rid of outdated "server with Different Backends" section
* I don't think people are running Rails under mongrel today
* it's better not to sudo gem install
* basically all we need to do is just bundle the server. No need to give its name as a parameter
* I could write ^^^, but I realized that it's not really about "command line"
2013-01-04 14:40:21 +09:00
Akira Matsuda
40c3d80296 update the example of generated postgresql config 2013-01-04 14:24:46 +09:00
Matthew Stopa
dc14b893e5 Readd deleted section of caching rails guide 2013-01-03 18:21:20 -07:00
Akira Matsuda
a802fa3588 A Relation is not a collection of records. So let's not use the term "record" 2013-01-04 09:26:32 +09:00
Akira Matsuda
02e422b64f we don't have public/index.html anymore 2013-01-04 06:23:16 +09:00
Akira Matsuda
2161434d16 update the scaffold generator outputs 2013-01-04 06:23:16 +09:00
Akira Matsuda
8572f32d58 .all does not return an Array 2013-01-04 06:23:16 +09:00
Guillermo Iguaran
cb2bd4aa61 Merge pull request #8705 from amparo-luna/change_update_attributes_to_update
Rename update_attributes method to update
2013-01-03 09:09:59 -08:00
Amparo Luna + Guillermo Iguaran
03ac174f2d Change guides to use update instead of update_attributes 2013-01-03 12:04:25 -05:00
Akira Matsuda
eed9f2539e let's get started with PATCH method rather than PUT 2013-01-03 20:45:45 +09:00
Matthew Stopa
4b5e424441 Remove action/page caching from Rails guides 2013-01-02 22:43:58 -07:00
Andre Arko
75dcdbc84e Restore original remote_ip algorithm.
Proxy servers add X-Forwarded-For headers, resulting in a list of IPs. We
remove trusted IP values, and then take the last given value, assuming that
it is the most likely to be the correct, unfaked value. See [1] for a very
thorough discussion of why that is the best option we have at the moment.

[1]: http://blog.gingerlime.com/2012/rails-ip-spoofing-vulnerabilities-and-protection/

Fixes #7979
2013-01-02 15:26:27 -08:00
Franck Verrot
25c12de4ff Link to the right fork of country_select. 2013-01-02 16:12:19 +01:00
Akira Matsuda
6c7699f601 PUT => PATCH or PUT 2013-01-02 06:41:51 +09:00
Akira Matsuda
2565c81862 find_or_create_by is deprecated in AR 4 2013-01-02 05:12:16 +09:00
Akira Matsuda
44717a9d54 find_last_by is deprecated in AR 4 2013-01-02 04:47:29 +09:00
Akira Matsuda
ad8275396a find_all_by is deprecated in AR 4 2013-01-02 04:42:34 +09:00
Guillermo Iguaran
5f638161f7 Add entry in Releases Notes about changes in exceptions page 2013-01-01 14:14:58 -05:00
Mikhail Dieterle
f23f8d1cbd a bit of inline code tags 2013-01-01 22:06:28 +03:00
Akira Matsuda
ffbcb09a4e no more supporting 1.8 2013-01-02 03:59:56 +09:00
Akira Matsuda
6f3fbc6969 correct raw GitHub URLs 2013-01-02 03:59:56 +09:00
Akira Matsuda
c22fbeafc1 "SSL everywhere" for GitHub URLs
see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
2013-01-02 03:59:56 +09:00
Vijay Dev
ed28e6c9f2 update rake tasks output [ci skip] 2013-01-01 23:43:00 +05:30
Mikhail Dieterle
7f5a1d3359 New hash syntax works only with symbol keys 2013-01-01 21:05:08 +03:00
Mikhail Dieterle
1371b24cce fix wrong hash syntax 2013-01-01 20:40:59 +03:00
Vijay Dev
684511825d small fix in js guide [ci skip] 2013-01-01 22:45:55 +05:30
Vijay Dev
dfc930b2b1 Merge branch 'master' of github.com:lifo/docrails 2013-01-01 20:29:43 +05:30
Vijay Dev
df5c4d65de Merge pull request #123 from m-o/master
Fixed typo one line in layouts and rendering: stylesheet_link_tag for file in subdirectory.
2013-01-01 05:05:14 -08:00
Ruafozy
f3dc158a01 Improve English
* Fix one error
* Improve wording
* Improve punctuation
2013-01-01 10:22:18 +00:00
Rafael Mendonça França
cf4afc4d11 Add note on the contributing guide to not use the refute methods 2012-12-31 13:58:52 -03:00
Jonathan Baudanza
3511e3f449 Update guides/source/rails_on_rack.md
Rack::Lock actually sets rack.multithread to `false`, not `true`.

Presumably because once inside the mutex, the app can function as if it were single threaded.
2012-12-30 20:21:20 -08:00
Joey Schoblaska
46af32aa50 fixed inconsistent require 'test_helper' in testing guide 2012-12-30 16:47:19 -06:00
Marek Ovečka
06c7ecb4ef Update guides/source/layouts_and_rendering.md
Removed first slash. The subdirectory will nto be found with slash befor it.
2012-12-30 15:07:36 +01:00
Vijay Dev
2e92a23bdf Merge pull request #8647 from nishantmodak/patch-2
Update documentation for yml usage
2012-12-29 13:15:32 -08:00
Nishant Modak
9a497582e6 Update documentation for yml usage
Update documentation for yml usage against https://github.com/rails/rails/issues/8612
2012-12-30 02:33:57 +05:30
Nishant Modak
95343f64c1 Update documentation for yml usage 2012-12-30 02:00:32 +05:30
Sammy Larbi
0dad3ed4c6 Document JoinTable migration generator 2012-12-29 11:11:45 -06:00
Sammy Larbi
0b79a93daf Fix up/down column change example code formatting 2012-12-29 10:50:05 -06:00
Vijay Dev
427544ed45 Merge branch 'master' of github.com:lifo/docrails 2012-12-29 00:19:51 +05:30
Vijay Dev
8dd2c71d26 Revert "reminder to run bundle after setting up rails-dev-box"
This reverts commit 41381c19d1f3920ee9540aff0d35209cb43fb057.

Reason: This doesn't quite fit the flow where it's added. Let's add this
someplace else if it's explicitly required.

[ci skip]
2012-12-29 00:07:02 +05:30
Fabrizio Regini
e63b752f63 Fixed couple of typos 2012-12-27 18:11:21 +01:00
Colin Kelley
52691c369c removed TIP: :allow_nil/:allow_blank is ignored by the presence validator
These tips were documenting an inconsistency issue https://github.com/rails/rails/issues/8621. That issue is resolved by https://github.com/rails/rails/issues/8622.
2012-12-26 17:02:54 -08:00
Steve Klabnik
d9ce4fa7ac Note about migration timestamps.
We should mention that the ordering matters with regards
to timestamps, and not imply that it's just for uniqueness
purposes.

Closes #8610.
2012-12-26 15:24:22 -05:00
Yves Senn
6c8a48e6c6 replace AS::BufferedLogger doc mentions with AS::Logger 2012-12-25 20:39:23 +01:00
Ace Suares
41381c19d1 reminder to run bundle after setting up rails-dev-box 2012-12-24 08:14:14 -04:00
Jeremy Kemper
f9da785d0b Move background jobs to the 'jobs' branch until fully baked. Not shipping with Rails 4.0. 2012-12-21 16:29:47 -08:00
Aaron Patterson
68e91da765 Merge pull request #8267 from marcandre/reversible_drop_table_etc
Reversible commands
2012-12-21 13:22:52 -08:00
Gary S. Weaver
e176580e07 Updated security guide to reference secret_key_base instead of secret_token, with a little information about the change from CookieStore to EncryptedCookieStore. 2012-12-21 15:46:44 -05:00
Gary S. Weaver
d2b158465e Updated security guide with information about secret_token.rb and to suggest securing sensitive files like database.yml and secret_token.rb 2012-12-21 14:59:09 -05:00
Marc-Andre Lafortune
a81845f268 Update Migration and 4.0 Release Guides, Changelogs [#8267] 2012-12-21 13:56:16 -05:00
Vijay Dev
e0176bf732 Merge branch 'master' of github.com:lifo/docrails 2012-12-21 23:14:08 +05:30
Vijay Dev
4a8bdabc8e copy edits in assets guide [ci skip] 2012-12-21 23:08:56 +05:30
Damian Galarza
86c5cea9f4 Explain controller specific assets more thoroughly
The current section on controller specific assets does not really explain how the default application.css and application.js files
generated by rails will work with controller specific assets and is a bit ambiguous. We should remind users that they will be included
into their application by default but that they have the option to include them only where needed if they want and how this works with
precompiling assets.

[ci_skip]
2012-12-17 17:01:56 -05:00
Steve Klabnik
8832313ebb Restored 'Working with Validation Errors'
Somehow this got lost in my PRs before. I'm going to re-check all the
guides to make sure this didn't happen again elsewhere.
2012-12-16 11:08:13 -05:00
Vijay Dev
351f071dab make an editing pass through the upgrading guide [ci skip] 2012-12-15 21:43:14 +05:30
Vijay Dev
5cc178a291 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	actionpack/lib/action_view/helpers/form_helper.rb
	railties/lib/rails/info_controller.rb
2012-12-15 21:20:28 +05:30
Vijay Dev
561e5ab82e copy editing [ci skip] 2012-12-15 21:15:05 +05:30
Jay Hayes
948c1e506c Elaborate using inverse_of with presence validation 2012-12-13 14:04:21 -06:00
Jay Hayes
d5badea28c Fix associations presence lost in steve's reformat
55a2820cc6
messes up
cfd324b4b6

Hopefully there is other stuff lost in translation...
2012-12-13 13:58:49 -06:00
Rafael Mendonça França
c5fb487965 Merge pull request #8432 from rmcastil/add_migration_example_to_each_association_type
Add migration examples to Association Basics

[ci skip]
2012-12-13 09:44:13 -08:00
Ryan Castillo
312234c578 Add migration example to Association Basics [ci skip] 2012-12-13 12:27:39 -05:00
Anuj Dutta
e927ba9953 Add a small note about the compressing the file, and how that helps the application. 2012-12-13 16:28:43 +00:00
Pablo Torres
dcf0b2dc5d General refreshment of the Active Record Basics guide 2012-12-12 21:55:38 -05:00
Pablo Torres
2cdf6bda4a Add #destroy! as a method that triggers callbacks 2012-12-12 12:01:37 -05:00
Pablo Torres
019b38999d Remove deprecated Time methods from the guides [ci skip]
Don't use:
* Time.time_with_datetime_fallback
* Time.utc_time
* Time.local_time
2012-12-11 22:17:28 -05:00
George Claghorn
6e98989c95 Update guides/source/routing.md
It's no longer necessary to delete public/index.html for the root route to take effect.
2012-12-11 04:29:19 -05:00
Santiago Pastorino
603e7f7ea5 Merge pull request #8468 from schneems/schneems/rack-index-page
Use Rails to Render Default Index Page
2012-12-10 19:49:10 -08:00
schneems
baea5d69be Use Rails to Render Default Index Page
This is an alternative implementation to #7771 thanks to the advice of @spastorino

Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion.

This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. 

In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated.

The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). 

cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik

ATP Railties and Actionpack.
2012-12-10 16:15:04 -08:00
Francesco Rodriguez
c04dc674cc remove attr_protected reference from AS Core Extensions guide [ci skip] 2012-12-10 19:08:09 -05:00
Francesco Rodriguez
1e83730067 remove Mass Assignment reference from Form Helpers guide [ci skip] 2012-12-10 19:07:25 -05:00
Francesco Rodriguez
46d63d5b20 remove Mass Assignment reference from Security Guide [ci skip] 2012-12-10 19:04:11 -05:00
Florent Guilleux
336bbb17e3 Document adding member route without the option 2012-12-10 18:47:21 -05:00
Rafael Mendonça França
9cce1ea2fd Allow users to choose the timestamp format in the cache key
This can be done using the class attribute cache_timestamp_format

Conflicts:
	railties/guides/source/configuring.textile
2012-12-10 17:48:26 -03:00