Commit Graph

8894 Commits

Author SHA1 Message Date
Aditya Sanghi
67ede88055 another attempt at the language 2012-04-18 02:24:44 +05:30
Aditya Sanghi
6f80ea2aec review changes for #5875 2012-04-18 01:03:59 +05:30
Vijay Dev
5b336ff443 Merge branch 'master' of github.com:lifo/docrails 2012-04-18 00:10:06 +05:30
Aditya Sanghi
0232543e0d stamp out ruby-debug19 with extreme prejudice :) 2012-04-17 15:31:05 +05:30
Don Petersen
256e317c39 Fix typo where a table name in a join was singular. 2012-04-16 16:22:40 -07:00
luke
749ced1767 Fixed a typo in migrations 2012-04-15 20:54:04 +02:00
Joshua Wood
ca0af8221a Automatically create indexes for references/belongs_to statements in migrations. 2012-04-14 14:18:42 -07:00
Bertrand Chardon
418fb91269 SQL query formatting
Reformatted two SQL queries in Section 6) and 7) to avoid horizontal
scrolling where possible.
2012-04-13 12:08:03 -07:00
Vijay Dev
8248f4202d Merge branch 'master' of github.com:lifo/docrails 2012-04-12 21:44:11 +05:30
Alfonso Cora
05ac3921f8 Fixed markup in security guide 2012-04-12 12:20:12 -03:00
Tim Harvey
63bd01d82f Grammar fix in 3.2 Release Notes guide
Could also be worded 'as an option', but plural made more sense given 
the mention of ':handlers and :formats'.
2012-04-11 17:10:21 -03:00
Vijay Dev
4fb6527e2c Revert "add instructions for adding additional manifests"
This reverts commit f28f1d70b3f3dd9f694067f7cab2e717e302ee2b.

Reason: This is already covered in this guide elsewhere.
2012-04-11 22:39:36 +05:30
Xavier Noria
68a9788cdb rewords the section about default_url_options in the Action Controller Overview guide 2012-04-09 18:26:23 +02:00
Patrick Sharp
f28f1d70b3 add instructions for adding additional manifests 2012-04-09 08:54:02 -05:00
Rafael Mendonça França
c9945b3f0a Document that default_url_options must return a hash with symbolized
keys
2012-04-09 00:01:27 -03:00
Rafael Mendonça França
9efe01ef0d default_url_options does not receive one argument anymore 2012-04-08 23:44:00 -03:00
Jeremy Kemper
0032da1b3e Merge pull request #5748 from ai/no_type_in_html5
Remove unnecessary in HTML 5 type attribute with default value
2012-04-08 06:56:44 -07:00
Ryan Bigg
ef493c9259 Don't use arel_table in published_and_commented example in querying guide 2012-04-07 11:29:18 -05:00
Vijay Dev
5916403991 Revert "Where migration can get wrong help added"
This reverts commit b11113f924d2eb2acbe836954d17a02163f45275.
2012-04-07 16:47:32 +05:30
Vijay Dev
e0672a8e3b copy editing [ci skip] 2012-04-07 16:47:28 +05:30
Anil Wadghule
871cc8c429 Fix 'Everyday Git' link 2012-04-06 14:50:45 +05:30
xyctka@gmail.com
5890ced113 Better class name 2012-04-06 10:04:26 +01:00
xyctka@gmail.com
74fa0d3db0 Update Custom Exception Handler section of Internationalization guide
The previous example with just_raise_that_exception method
stopped working because MissingTranslation is not an instance of
Exception class any more, but has a +to_exception+ method.

Also the cleaner way is to re-raise only the desired exception, passing
 everything else to the default ExceptionHandler.

 Additionally this re-raising conflicts with Pluralization backend thus
 we have to add a check that certain missing translation keys should
 be ignored allowing the backend to fall back to the default
 pluralization rule.
2012-04-06 10:01:34 +01:00
Sandip Ransing
b11113f924 Where migration can get wrong help added 2012-04-06 01:11:42 +05:30
Sandip Ransing
e59b669792 Improvement to migration guide 2012-04-06 00:44:56 +05:30
Vijay Dev
163258ba2a Merge branch 'master' of github.com:lifo/docrails 2012-04-05 22:30:30 +05:30
Vijay Dev
16512704fc lets not show too much output and shadow the intention [ci skip] 2012-04-05 22:28:47 +05:30
Vijay Dev
c94e45088a fix boolean value in guide [ci skip] 2012-04-05 22:14:26 +05:30
Andrey A.I. Sitnik
f3fb416b89 Remove unnecessary in HTML 5 type attribute with default value 2012-04-05 15:32:37 +04:00
Cheah Chu Yeow
d70e1a9d2b Fix slightly awkward English in Action Caching section of Caching With Rails guide.
In particular, removed "pages that require to restrict access somehow" and shortened "Action Caching works like Page Caching except for the fact that the incoming web request does go from the webserver to the Rails stack and Action Pack so that before filters can be run on it before the cache is served".
2012-04-05 17:30:15 +08:00
Martin Eisenhardt
1f4f4d4ccb Optimistic locking: lock_version needed type information. 2012-04-05 11:13:09 +03:00
Sandip Ransing
c91d07f57c Small improvements added to getting started 2012-04-05 02:41:21 +05:30
Santiago Pastorino
a9398a7da4 Merge pull request #5716 from jurriaan/tr-gsub-cleanup
Updated/changed unneeded tr/gsubs
2012-04-04 10:43:24 -07:00
Ethan Mick
316cb1f7ed Updated migrations.textile to change :integer on line 807 to :boolean, as it was earlier in the example. :flag is a boolean, not an integer. (defaults to false) 2012-04-04 11:07:33 -04:00
Hendy Tanata
bbe31cc523 Improve config.assets.initialize_on_precompile guide. 2012-04-04 22:33:09 +08:00
Hrvoje Šimić
f7a1c64ac3 removed deprecated methods and middlewares 2012-04-04 12:09:10 +02:00
Vijay Dev
02b9c22df8 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/engines.textile
2012-04-04 12:42:22 +05:30
Vijay Dev
f89f74896b Revert "rails 4 will support ruby version 1.9.4 or higher"
This reverts commit 0a35acb8b89603a3135852742f206af82ed61b57.

Reason: Let's cross the bridge when we reach there.
2012-04-04 12:19:29 +05:30
Sandip Ransing
ecb4a649c2 typo mistake fixed
correction to server stop statement added
2012-04-04 02:38:37 +05:30
Sandip Ransing
0a35acb8b8 rails 4 will support ruby version 1.9.4 or higher 2012-04-04 02:14:07 +05:30
Fernando Briano
428149c8f3 Fixed small typo 2012-04-03 15:42:18 -03:00
Mikhail Dieterle
1827bc9524 also <text> replaced by <plain> 2012-04-04 00:46:43 +08:00
Mikhail Dieterle
d586b07f9e Changed engines guide not to use a css tag. <plain> will do just fine.
bb23d6fb00
2012-04-03 22:34:46 +08:00
Jurriaan Pruis
2d8396fc9f Updated/changed useless tr/gsubs 2012-04-03 15:16:09 +02:00
Hrvoje Šimić
7b1abe84ae Merge branch 'master' of github.com:lifo/docrails 2012-04-02 20:31:54 +02:00
Hrvoje Šimić
4b1ed1d29f update purpose of middleware 2012-04-02 20:31:38 +02:00
Vijay Dev
0b67751d62 fix formatting in engines guide; also removed a couple of non-existent images [ci skip] 2012-04-02 23:41:22 +05:30
Vijay Dev
bb23d6fb00 Revert "parse <css> block as code (used in engines guide) "
This reverts commit c46374a9d949004761d71570a4d703838c694e74.

Reason: Changed engines guide not to use a css tag. <plain> will do
just fine.
2012-04-02 23:34:47 +05:30
Mikhail Dieterle
e94437e3c6 wrong link to getting started guide 2012-04-03 01:11:44 +08:00
Hrvoje Šimić
b95aa05314 update to current rack middleware stack 2012-04-02 18:31:20 +02:00
Mikhail Dieterle
c46374a9d9 parse <css> block as code (used in engines guide) 2012-04-02 22:16:48 +08:00
Vijay Dev
cf182988f5 Merge branch 'master' of github.com:lifo/docrails 2012-04-01 19:53:29 +05:30
Vijay Dev
a5a9fc9afb copy editing [ci skip] 2012-04-01 19:49:36 +05:30
Erich Menge
6e814ce62f :success includes the whole 200 range, not just 200.
# File lib/rack/response.rb, line 114
114:       def successful?;    @status >= 200 && @status < 300;       end
2012-04-01 08:39:57 -05:00
Rafaël Blais Masson
bf8c3eb55a Reorder bits in the Layouts and Rendering guide 2012-03-31 10:31:43 -04:00
Jon Leighton
b69298e01d fix typo. thanks @nertzy 2012-03-30 13:58:51 +01:00
Jon Leighton
84338aab90 Update guides to reflect 0a12a5f8169685915cbb7bf4d0a7bb482f7f2fd2 2012-03-30 13:15:47 +01:00
Jon Leighton
96b819210e remove irrelevant references to ARel 2012-03-30 13:07:00 +01:00
Jon Leighton
13b3c77e39 Add Relation#find_by and Relation#find_by! 2012-03-30 12:52:29 +01:00
Levi McCallum
03c051eb54 Introduce minor spelling corrections and fix broken markup tag. 2012-03-29 16:32:22 -10:00
Rafaël Blais Masson
fe1e039a69 Make body background white for Lion scrollbar to be dark 2012-03-29 08:15:17 -04:00
Grant Hutchins
18d275ada1 Make controller namespace partial prefix optional
config.action_view.prefix_partial_path_with_controller_namespace

This allows you to choose to render @post using
/posts/_post.erb instead of /admin/posts/_post.erb
inside Admin::PostsController.
2012-03-28 20:21:46 -04:00
Henrik N
4a26b22b46 Routing guide: document lambda constraints and request argument. 2012-03-28 21:07:12 +02:00
Piotr Sarnacki
128cfbdf4d config.action_view.embed_authenticity_token_in_remote_forms is true by default
Changed default value for `config.action_view.embed_authenticity_token_in_remote_forms`
to `false`. This change breaks remote forms that need to work also without javascript,
so if you need such behavior, you can either set it to `true` or explicitly pass
`:authenticity_token => true` in form options
2012-03-28 18:03:16 +02:00
Piotr Sarnacki
805b15ff35 Added config.action_view.embed_authenticity_token_in_remote_forms
There is a regression introduced in 16ee611fa, which breaks
remote forms that should also work without javascript. This commit
introduces config option that allows to configure this behavior
defaulting to the old behavior (ie. include authenticity token
in remote forms by default)

Conflicts:

	actionpack/CHANGELOG.md
2012-03-28 18:03:15 +02:00
Anuj Dutta
47320e90a0 Improved the comment for config.assets.manifest in the asset_pipeline guides. 2012-03-28 06:12:54 +00:00
Anuj Dutta
e7980006d8 Changed the config.assets.manifest path in the comments to nil. 2012-03-28 05:38:11 +00:00
Vijay Dev
b42fbd3ecb Merge branch 'master' of github.com:lifo/docrails 2012-03-27 21:26:37 +05:30
Vijay Dev
ae040ed6d8 minor edits in testing guide [ci skip] 2012-03-27 21:24:21 +05:30
Vijay Dev
286259f2aa Revert "[ci skip] updated bin/rails code in Rails Initialization Process guide"
This reverts commit 7feec40b89ada892ca6f107ada27ceedde505d83.

Reason: The guide had the contents of railties/bin/rails and I don't see
any reason to change it.
2012-03-27 21:08:08 +05:30
Dimitri De Frenne
ddab3df8d1 Made it a bit more clear where to run rails/server 2012-03-26 11:28:55 +02:00
Dimitri De Frenne
492e91cc34 Fixed typo in path 2012-03-26 11:28:12 +02:00
Xavier Noria
7cc797f177 restores example depicting the use of true or false in regular font
There was an example here that mentioned reload_plugins?
but it was deleted. This commit puts another example back.
2012-03-25 20:26:35 +02:00
schneems
2314490547 document -e argument for rails console
this adds documentation for -e flag which sets the environment of the rails console like the `rails server` command.
2012-03-24 17:24:22 -05:00
Panayotis Matsinopoulos
c12b886955 Testing layout gotcha when view renders partial 2012-03-24 23:33:41 +02:00
Panayotis Matsinopoulos
5b35664481 Small layout correction 2012-03-24 23:16:55 +02:00
Panayotis Matsinopoulos
214b0ddee7 Testing Template and Layout Example 2012-03-24 23:12:39 +02:00
Senthil A
7feec40b89 [ci skip] updated bin/rails code in Rails Initialization Process guide 2012-03-24 06:06:56 -07:00
Vijay Dev
014498e1d7 Merge branch 'master' of github.com:lifo/docrails
Conflicts:
	guides/source/ruby_on_rails_guides_guidelines.textile
2012-03-24 17:15:10 +05:30
Vijay Dev
2fab826db0 spacing fix in guide [ci skip] 2012-03-24 14:23:06 +05:30
Fabián Rodríguez
b99d95d838 [getting started][ci skip] fix link to the code 2012-03-23 18:15:02 -03:00
Mikhail Dieterle
44ef59f40b :foreign_key option should be on has_many side of association 2012-03-23 18:30:16 +08:00
adman65
d3223b5b65 Update config.assets.initialize_on_precompile warning to include engine side affects 2012-03-22 12:10:52 +01:00
adman65
5fdcda8b22 [engines] [ci-skip] Add example of precompiling engine assets 2012-03-22 12:05:28 +01:00
kucaahbe
152798f6a6 improvements in "caching_with_rails" guide 2012-03-22 11:39:46 +02:00
Mark D. Blackwell
4a1a018d62 [ci skip] Make guides more readable & consistent 2012-03-20 13:01:01 -04:00
Vijay Dev
ae88ec4dda guides location has changed [ci skip] 2012-03-20 20:30:36 +05:30
Vijay Dev
9c748f3961 Merge branch 'master' of github.com:lifo/docrails 2012-03-19 18:28:10 +05:30
Ryan Bigg
ef0821bef6 [getting started] Explain what the create action is accomplishing after params are output
[ci skip]
2012-03-17 20:41:32 -06:00
Ryan Bigg
b30cc24c40 [getting started] [ci skip] Explain in better terms what we are doing with render and params[:post] inspection upon first use 2012-03-17 20:41:06 -06:00
Ryan Bigg
62d3693288 [getting started] [ci skip] Just want to get post params 2012-03-17 20:40:29 -06:00
Ryan Bigg
edad287e84 [getting started] Add images 2012-03-17 20:40:05 -06:00
Rafael Mendonça França
da5a47e7b9 Update the guides and CHANGELOG 2012-03-17 13:44:56 -03:00
Xavier Noria
6d87cd028b moves the guides up to the root directory 2012-03-17 08:32:49 -07:00