Neeraj Singh
0027b65421
Ensure that while caching a page rails takes into
...
account the resolved mime type for the request
[#6110 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-09 16:14:57 +01:00
José Valim
d3f7e565d1
Ensure resolvers backward compatibility.
2010-12-09 14:06:44 +01:00
José Valim
8e6d27641c
Clean up asset_host and asset_path.
2010-12-09 13:40:45 +01:00
José Valim
cc70ac9508
Properly check the arity for template handlers.
2010-12-09 13:15:40 +01:00
José Valim
28cf77203b
Check if the routes object really responds to define_mount_prefix.
2010-12-09 13:15:25 +01:00
Xavier Noria
0aa78826e4
makes a pass to the action caching rdoc
2010-12-08 21:20:53 +01:00
Neeraj Singh
3ac844deec
Add to documentation that action caching does
...
handle HTTP_ACCEPT attribute properly and might
provide wrong result. Use params[:format] to
avoid this issue.
2010-12-06 16:38:47 -05:00
Xavier Noria
48386d245b
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-05 10:33:50 +01:00
Carlos Antonio da Silva
e1d0d5ae81
Fix mime type doc typos
2010-12-04 22:40:05 -02:00
Santiago Pastorino
b696dd70db
Allow back passing :rescue_format => nil and test added
2010-12-04 20:08:23 -02:00
Santiago Pastorino
be4551f63b
Use ||= here
2010-12-04 19:01:00 -02:00
Sven Fuchs
896e25e994
Make TranslationHelper#translate use the :rescue_format option in I18n 0.5.0
...
Don't catch exceptions here. Instead only declare that we want exceptions to be rescued as :html, but also let users configure reactions to exceptions in I18n.
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-04 18:00:52 +01:00
Sven Fuchs
7ffd5daa7f
bump i18n gem
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-04 18:00:31 +01:00
José Valim
226ea0e9e8
Wrap everything in class << self.
2010-12-03 13:27:43 +01:00
José Valim
78afe68afb
Merge remote branch 'joshk/redirect_routing'
...
Conflicts:
actionpack/CHANGELOG
actionpack/lib/action_controller/metal/mime_responds.rb
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-12-03 12:27:50 +01:00
José Valim
ba63c0a9b5
Deprecate handler_class_for_extension as template handlers can be any Ruby object, not necessarily a class.
2010-12-01 11:22:48 +01:00
Aaron Patterson
831a2342c6
just use alias
2010-11-30 20:04:31 -08:00
Josh Kalderimis
1e26bda095
Added documentation explaining the new additional supported syntaxes for the routing redirect method, a small changelog note, and two extra tests for path interpolation when using the hash option syntax.
2010-11-30 17:55:33 +01:00
Josh Kalderimis
0bda6f1ec6
The redirect routing method now allows for a hash of options which only changes the relevant parts of the url, or an object which responds to call can be supplied so common redirect rules can be easily reused. This commit includes a change where url generation from parts has been moved to AD::Http::URL as a class method.
2010-11-30 16:36:01 +01:00
Neeraj Singh
3c7a33c051
Rewording existing comment
2010-11-30 10:00:47 -05:00
Neeraj Singh
aa9a3227a0
Rewording existing comment
2010-11-29 21:38:59 -05:00
José Valim
31906eecdf
Fix tests on 1.9.2.
2010-11-28 12:48:50 +01:00
José Valim
a4c360e8c7
trailing star mimes should respect the order in which mime types are defined.
2010-11-28 11:54:00 +01:00
Neeraj Singh
9bd291407c
make it clear that recompilation happens only in
...
development mode
2010-11-27 22:16:51 -05:00
Akira Matsuda
1662aa1a15
Added a space before "do" keyword
2010-11-28 09:42:19 +09:00
José Valim
927c582acf
Update CHANGELOG.
2010-11-27 08:12:49 -08:00
Xavier Noria
fd83f9d515
Merge branch 'master' of git://github.com/lifo/docrails
2010-11-27 07:43:59 +01:00
Ryan Bigg
167964149e
Add explicit statement that verify_authenticity_token can be turned off for actions.
2010-11-27 07:57:10 +11:00
Aditya Sanghi
5b9f6a74db
Resolving LH #5986 , cookies doc updates
2010-11-26 16:41:33 +05:30
Santiago Pastorino
74049b57fb
implicit self here
2010-11-25 21:31:14 -02:00
Josh Kalderimis
a98d9d65ae
move the setting up of the mime collector into the collector on init
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com >
2010-11-25 21:24:45 -02:00
Josh Kalderimis
2c08ee97c7
move the setting up of the mime collector into the collector on init
2010-11-26 00:21:51 +01:00
José Valim
731ca00b48
Dynamically generaeted helpers on collection should not clobber resources url helper [ #6028 state:resolved]
2010-11-25 11:50:29 +01:00
José Valim
90b0f61491
#:nodoc: internal methods.
2010-11-25 11:50:28 +01:00
raggi
cb1570936d
Rakefiles are executables, and rake loads rake, not rakefile code
2010-11-25 06:49:55 +08:00
Neeraj Singh
fa2a5ae033
If a user wants json output then try best to render json output. In such cases prefer kind_of(String) over respond_to?(to_str)
...
[#5841 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-24 22:08:36 +01:00
Neeraj Singh
18adbe9347
process text/* if it appears in the middle of
...
HTTP_ACCEPT parameter
2010-11-25 04:38:51 +08:00
Neeraj Singh
5c9abb6cca
processing image/* is an odditity because there is
...
a test case which expects image/* to not to be
expanded. So I am leaving image/* as it is and
process only text/* and application/*
2010-11-25 04:38:50 +08:00
Neeraj Singh
b52a6ba169
clean up test by using unregister method
2010-11-25 04:38:50 +08:00
Neeraj Singh
e870883625
unregister method implementation and test
2010-11-25 04:38:47 +08:00
Neeraj Singh
c6030e8562
Remove the not needed setup and teardown
2010-11-25 04:38:45 +08:00
José Valim
8624065bff
Allow template handlers to store temp data.
2010-11-24 12:38:52 +01:00
Josh Kalderimis
e39138478b
port_string bought back to life as it is part of the public api
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2010-11-24 10:34:18 +01:00
Neeraj Singh
8882e65ac8
No need to return anything
2010-11-24 08:00:40 +08:00
Ryan Bigg
e4a9af186a
Add mention of nested resource to resources documentation
2010-11-24 09:31:29 +11:00
Ryan Bigg
fd47a4bf43
Document the :path option for resources :posts
2010-11-24 09:28:21 +11:00
Ryan Bigg
01af50d8b6
Add :module option documentation for the resources method
2010-11-24 09:27:12 +11:00
Ryan Bigg
2974f57aae
Remove non-sensical first couple of lines for scope method documentation
2010-11-24 09:25:01 +11:00
Ryan Bigg
04af510b56
Paths in ActionDispatch::Scoping documentation should be for /admin/posts, not /admin/photos
2010-11-24 09:21:25 +11:00
Ryan Bigg
769575300a
Fix formatting issue with rake routes output for the namespace method
2010-11-24 09:19:27 +11:00