Commit Graph

78 Commits

Author SHA1 Message Date
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