Akira Matsuda
cb9fa52832
auto_link: avoid recognizing full width chars as a part of URI scheme
...
fixes regression by 133ada6ab0
[#5503 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-01 14:04:42 -02:00
Akira Matsuda
5dd803e9b1
Accept String value for render_partial :as option
...
[#6222 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-01 13:01:54 -02:00
John Firebaugh
57bc25c5f8
Use run_callbacks; the generated _run_<name>_callbacks method is not a public interface.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-01-31 19:45:53 -02:00
Jonathan Dance + Gabriel Horner
d1ef543794
explain different ways to use match()
2011-01-29 17:29:06 -05:00
Jonathan Dance + Gabriel Horner
fab16fded9
organize and expand on options for routing methods
2011-01-29 17:29:06 -05:00
misfo
ef48408a7b
corrected the location of status code symbols
2011-01-29 16:03:40 -06:00
Jonathan Dance + Gabriel Horner
38d728fb94
add cross-references and documentation for scope
2011-01-28 19:25:12 -05:00
Jonathan Dance + Gabriel Horner
49744bdaee
fix cross-references in HttpHelper methods
2011-01-28 19:25:12 -05:00
Matt Jankowski
cc9301f459
clarify what the "they" that are is and what the "are" in question is
2011-01-27 12:25:22 -05:00
Neeraj Singh
806e6f80dc
render_to_string must ensure that response_body
...
is nil
[ #5875 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:14:03 +01:00
Neeraj Singh
c1145d9281
If I want to set respond_body to nil then it
...
should be nil and not [nil]. If anything other
than nil then wrap it in array
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:13:56 +01:00
Doug Fales
7927fc2ff7
A patch so that http status codes are still included in logs even during an exception [ #6333 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-25 20:12:22 +01:00
Aaron Patterson
3d6e223b84
use spec compliant YAML
2011-01-21 15:43:34 -08:00
brainopia
8491f16e12
Add tld_length option when using domain :all in cookies
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-21 13:13:51 +01:00
brainopia
91a4193ee0
Support list of possible domains for cookies
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2011-01-21 13:13:43 +01:00
José Valim
262b2ea8cd
Solve SystemStackError when changing locale inside ActionMailer [ #5329 state:resolved]
2011-01-19 23:42:10 +01:00
Aaron Patterson
36d6678690
removing usesless variable assignments
2011-01-18 15:52:56 -08:00
Aaron Patterson
54de7048a5
Merge branch 'template_error' into merge
...
* template_error:
Ensure original exception message is present in both Template::Error#message and Template::Error#inspect.
ActiveSupport::Deprecation.silence no longer needed.
2011-01-18 10:52:37 -08:00
Christos Trochalakis
7dab186fde
Issue one Cache#read command instead of two in the case of a fragment cache hit
2011-01-18 09:52:11 -08:00
Aaron Patterson
6a8f7f0e04
minitest added @__io__, so we should ignore it too
2011-01-17 14:53:44 -08:00
Aaron Patterson
1333020448
fixing space errors
2011-01-17 14:45:24 -08:00
Aaron Patterson
990e6a1b3a
fixing wrong test
2011-01-17 14:43:29 -08:00
Aaron Patterson
9702159373
removing more unused variables
2011-01-17 14:33:34 -08:00
Santiago Pastorino
1de47a0d56
button_tag should escape it content
2011-01-12 22:05:52 -02:00
Aaron Patterson
16ae08fff0
use raise to create exceptions and to set the backtrace
2011-01-12 11:15:11 -08:00
Aaron Patterson
1d9c555297
reraising should be in the rescue block
2011-01-12 11:15:10 -08:00
Santiago Pastorino
daada51d10
Reuse the view_context from the controller, this make the test environment more similar to the code applications uses
2011-01-12 16:47:56 -02:00
Santiago Pastorino
6062d434f1
Allow view in AV::TestCase to access it's controller helpers methods
2011-01-12 12:14:00 -02:00
Santiago Pastorino
a61e3acef2
html_safe.to_str makes no sense
2011-01-11 18:57:35 -02:00
Krekoten' Marjan
366e7854ac
Refactor to handle the X-Cascade without having to raise an exception
2011-01-09 16:08:54 -08:00
Jakub Kuźma
5106ce88e4
authenticity_token option for form_tag [ #2988 state:resolved]
2011-01-09 15:55:26 -08:00
John Allison
5d1d9bfb05
Improve select helpers by allowing a selected value of false. This is useful when using a select helper with a boolean attribute, and the attribute is false. (e.g. f.select :allow_comments)
2011-01-09 15:45:55 -08:00
Rizwan Reza
18605adec3
HTML5 button_tag helper
...
This tag is similar in nature to submit_tag, but allows more control.
It also doesn't submit if submit type isn't used, allowing JavaScript to
control the flow where required.
For more information: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-button-element
2011-01-09 15:22:23 -08:00
Santiago Pastorino
14198d84a9
Remove InstanceTagMethods module and define the methods inside the InstanceTag class
2011-01-09 13:35:38 -02:00
Pratik Naik
a8a704b07c
Bump rack-test version
2011-01-04 19:30:52 +00:00
Santiago Pastorino
171172f324
render :template is faster than render :file
2011-01-01 13:44:34 -02:00
Santiago Pastorino
9bc879d42a
This is not needed anymore
2011-01-01 13:20:00 -02:00
Piotr Sarnacki
27ea0481bb
Recreate symlink in layouts for tests
2010-12-31 14:22:27 +01:00
Piotr Sarnacki
8e5d91062f
Don't be so picky on MissingTemplate error details, this fails randomly on 1.8.7 because of not ordered hash
2010-12-31 11:17:37 +01:00
Nick Sutterer
4c44f0468a
added tests for the MissingTemplate exception message.
2010-12-31 10:41:19 +01:00
Timothy N. Tsvetkov
e5b84fd723
ActionController::Base.helpers.sanitize ignores case in protocol
...
[#6044 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-12-30 22:43:43 -02:00
Nick Sutterer
db24701abe
process_action accepts multiple args, even with Callbacks.
2010-12-29 16:37:10 -08:00
Xavier Noria
69765aad8b
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-29 23:46:03 +01:00
Cheah Chu Yeow
6f58b9ad53
Fix typo in ActionPack changelog.
2010-12-29 19:36:00 +08:00
Cheah Chu Yeow
a21a3d1f44
Remove link to outdated Github tag comparison in ActionPack changelog.
2010-12-29 19:35:33 +08:00
José Valim
ecc83c1e6e
Clean up PathSet.
2010-12-27 10:15:54 +01:00
José Valim
6b099975fa
No need to symbolize these.
2010-12-27 09:30:36 +01:00
José Valim
51a7d9acdd
Final tidy up on templates inheritance.
2010-12-27 09:14:13 +01:00
wycats
e03e1fdbc8
Speed up template inheritance and remove template inheritance option
2010-12-26 23:56:09 -08:00
wycats
7c568fda6b
A bunch of cleanup on the inherited template patch
2010-12-26 23:44:51 -08:00
artemave
6c5a3bb312
all tests pass
2010-12-26 22:32:15 -08:00
artemave
ce21ea7832
#948 make template inheritance optional
2010-12-26 22:32:15 -08:00
artemave
ddd85ef9c6
#948 template_inheritance
2010-12-26 22:32:15 -08:00
Akira Matsuda
4e50c6c08a
.erb => .html.erb
2010-12-25 04:58:11 +09:00
Akira Matsuda
0a1f5f7511
for ... in => each ... do
2010-12-25 04:46:41 +09:00
Santiago Pastorino
2cbf948f25
Bump up rack-cache
2010-12-24 14:38:18 -02:00
Xavier Noria
8cdb758081
Merge branch 'master' of github.com:rails/rails
2010-12-24 01:55:35 +01:00
José Valim
d6efd3cfc2
Don't deprecate to_prepare.
2010-12-23 19:21:14 +01:00
José Valim
819b8cae40
Clean up callbacks should also be called on exceptions.
2010-12-23 19:17:02 +01:00
Rizwan Reza
9dfa06acb4
Edits to caching/fragments.
2010-12-23 16:29:40 +03:30
Rizwan Reza
0997d5a12d
More minor edits.
2010-12-23 16:13:36 +03:30
Rizwan Reza
5fb2f0c07f
Revised documentation for cache_helper.
2010-12-23 16:06:53 +03:30
Santiago Pastorino
5853583f9b
Allow registering javascript/stylesheet_expansions to existing symbols
2010-12-22 21:53:24 -02:00
Xavier Noria
8a3132b8a9
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-23 00:15:10 +01:00
Piotr Sarnacki
09195f10bd
Do not use the same hash instance for expansions [ #6114 state:resolved]
...
Using the same hash instance makes using the same expansions for
both javascripts and stylesheets.
2010-12-22 09:44:46 +01:00
John Firebaugh
0b0e6f13c0
Typo (request -> response)
2010-12-21 19:32:34 -08:00
John Firebaugh
d4afde9ab0
Expand ActionDispatch::Reloader docs
2010-12-21 19:26:33 -08:00
Xavier Noria
880f8419c4
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-20 20:13:34 +01:00
José Valim
0cbfd6c28d
Small changes on AD::Reloader.
2010-12-20 12:43:02 +01:00
John Firebaugh
435bccda93
Replace AD::Callbacks.to_prepare with AD::Reloader.to_prepare
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-12-20 12:43:02 +01:00
John Firebaugh
0f7c970e4f
Introduce ActionDispatch::Reloader
...
Based on the implementation on the 2-3-stable branch, patches by Hongli
Lai <hongli@phusion.nl>, and helpful suggestions from José Valim.
Hongli Lai's patches included locking around the request cycle; this is
now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/ ).
[#2873 ]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-12-20 12:43:02 +01:00
Santiago Pastorino
ab2bde45f8
Remove require AS::Concern from places where is already in
2010-12-19 19:15:26 -02:00
Vijay Dev
4038a6bc0f
minor fixesin READMEs
2010-12-20 01:07:33 +05:30
Santiago Pastorino
f249d07c44
Add missing require
2010-12-19 14:00:08 -02:00
Will
aebbbc78cc
Fix respond_with example code so it makes sense
2010-12-19 14:16:54 +11:00
Will
1a6c4c86ea
Correct deprecated AR usage in ActionController::MimeResponds documentation
2010-12-19 14:14:02 +11:00
Don Wilson
f71809f257
Fixed number_with_precision rounding error [ #6182 state:resolved]
2010-12-18 10:00:37 +01:00
Aaron Patterson
5008d33eee
dry up case / when statement
2010-12-17 11:31:15 -08:00
Piotr Sarnacki
07567aea5f
Revert "Fixed number_with_precision rounding error [ #6182 state:resolved]"
...
This reverts commit 006ec77e60163d57d655479602230672d98e0f10.
2010-12-17 16:11:47 +01:00
Don Wilson
006ec77e60
Fixed number_with_precision rounding error [ #6182 state:resolved]
2010-12-17 11:32:19 +01:00
Piotr Sarnacki
f176b2552e
Changelog and guide entries for config.action_view.cache_template_loading
2010-12-16 22:53:19 +01:00
Piotr Sarnacki
e89fff2f6b
Bring back config.action_view.cache_template_loading [ #5847 state:resolved]
2010-12-16 22:24:48 +01:00
Pavel Gorbokon
96bae30538
Replace rudimentary named_scope with scope. [ #6052 state:resolved]
...
* rename method names (actually in tests)
* rename instance variable @_named_scopes_cache to @_scopes_cache
* rename references in doc comments
* don't touch CHANGELOG :)
2010-12-15 14:02:30 -08:00
brainopia
ebc47465a5
Fix edge cases for domain :all option on cookie store
...
Dont set explicit domain for cookies if host is not a domain name
[#6002 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-12-16 01:49:30 +05:30
Piotr Sarnacki
a462a76bd3
Set proper engine's asset directories when assets are served from engine.
...
When using stylesheet_link_tag(:all) or javascript_include_tag(:all),
assets directories are searched for css or js files. When
config.serve_static_assets is set to true, those files can be
served directly from engine's directories. That's why assets paths
should be set individually for controllers inside engine
if we want to serve static assets with ActionDispatch::Static
2010-12-16 01:49:29 +05:30
Xavier Noria
3c9486f487
Merge branch 'master' of git://github.com/lifo/docrails
2010-12-15 20:18:36 +01:00
brainopia
439c23dce3
Fix edge cases for domain :all option on cookie store
...
Dont set explicit domain for cookies if host is not a domain name
[#6002 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-12-15 11:03:03 -02:00
Aditya Sanghi
6fc3750471
eternal confusion! fixed doco to inform correctly
2010-12-15 16:13:36 +05:30
Piotr Sarnacki
0e5ee9af48
Set proper engine's asset directories when assets are served from engine.
...
When using stylesheet_link_tag(:all) or javascript_include_tag(:all),
assets directories are searched for css or js files. When
config.serve_static_assets is set to true, those files can be
served directly from engine's directories. That's why assets paths
should be set individually for controllers inside engine
if we want to serve static assets with ActionDispatch::Static
2010-12-15 10:01:27 +01:00
Ben Mills
73dafba6ca
Added :placeholder option to ActionView::Helpers::FormTagHelper text_field_tag
2010-12-13 16:25:17 +10:00
Ryan Bigg
a81f68e879
Fix indentation on the namespace method's documentation
2010-12-13 13:03:41 +10:00
Ryan Bigg
a6bc1f9be4
Remove nodoc from FormBuilder because the methods inside are public API methods
2010-12-13 07:14:16 +10:00
Ryan Bigg
751733ab96
Provide an example for ActionDispatch::Routing::Mapper#scope
2010-12-11 17:27:14 +10:00
Xavier Noria
c6612d2bb3
Merge branch 'master' of git://github.com/lifo/docrails
...
Conflicts:
activerecord/lib/active_record/transactions.rb
2010-12-11 00:55:25 +01:00
Ryan Bigg
dbf955c03b
Action Controller Overview: Remove dead link to the API docs for filters
2010-12-10 15:55:46 +10:00
Ryan Bigg
f0d4b7f2a6
root method options are the same as the match method
2010-12-10 09:34:40 +10:00
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
Ryan Bigg
fe0e3880e8
root route should go at the *top* of the routes file, because it is the most popular route and should be matched first
2010-12-09 20:21:08 +10:00
Ryan Bigg
d2f98e5b55
indent code samples for mount doc
2010-12-09 20:03:14 +10:00
Ryan Bigg
a47f31c593
mapper.rb: add "options" to make the default-to-namespace-name line read better
2010-12-09 20:01:42 +10: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
Xavier Noria
0250c3eca4
copy-edits RDoc of 2fe43b6
2010-11-23 22:51:51 +01:00