Aaron Patterson
e9122112fa
Revert "Named Routes shouldn't override existing ones (currently route recognition goes with the earliest match, named routes use the latest match)"
...
This reverts commit 71d769e3b5 .
2012-01-03 13:56:12 -08:00
Santiago Pastorino
8c129f18d2
Pass extensions to javascript_path and stylesheet_path helpers. Closes #3417
2012-01-03 17:51:10 -02:00
José Valim
d38dac8ea9
Override respond_to? since we are also overriding method_missing.
2012-01-03 20:27:38 +01:00
Santiago Pastorino
0d7d3a6e77
Add font_path helper method
2012-01-03 17:05:43 -02:00
Sergey Nartimov
4f440a3833
fix base64 requires
2012-01-03 01:18:34 +03:00
Sergey Nartimov
5f09414f85
deprecate ActiveSupport::Base64
...
extend and define ::Base64 if needed
2012-01-03 00:57:03 +03:00
Alejandro Andrés
8be9d92c8b
Fixed documentation error in code examples from form_tag_helper.rb
2011-12-31 19:11:00 +05:30
Vijay Dev
63c6feefc9
revise some doc changes
2011-12-29 23:39:06 +05:30
Kevin Moore
2e533e3435
Documented about using :path option for resources
2011-12-29 23:39:06 +05:30
Alejandro Andrés
5f57d2ad90
Fixed formatting of code examples in form_tag_helper.rb
2011-12-29 23:39:06 +05:30
Piotr Sarnacki
d7cfb63636
Correctly display rack apps with dynamic constraints in RoutesInspector
...
If you used dynamic constraint like that:
scope :constraint => MyConstraint.new do
mount RackApp => "/foo"
end
routes were not displayed correctly when using `rake routes`.
This commit fixes it. If you want nice display of dynamic
constraints in `rake routes` output, please just override
to_s method in your constraint's class.
2011-12-26 11:54:27 +01:00
José Valim
c4ef3d34ee
Remove unecessary config_accessors.
2011-12-24 10:52:45 +01:00
José Valim
ba868929d3
Provide a class optin for page_cache_compression.
2011-12-24 10:52:45 +01:00
Andrey A.I. Sitnik
754823dd66
Gzip files on page caching
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-12-24 10:52:45 +01:00
Jeremy Kemper
684448b0c6
Remove broken #compute_source_path
2011-12-23 18:00:01 -07:00
Lucas Mazza
b5bb3f8558
raises an ArgumentError if no valid options are given to TemplateRenderer#determine_template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-12-21 21:17:17 +01:00
Brian Rose
a1b2dbd7d4
Check for response to #last instead of #first.
2011-12-20 13:38:16 -07:00
Brian Rose
bd89946dd3
Ensure option for select helper responds to #first before comparison.
2011-12-20 13:26:10 -07:00
José Valim
437f1e0af1
Merge pull request #4064 from nashby/date-helper-field-error-proc
...
fix adding field_with_errors to date selects, closes #3487
2011-12-20 09:43:58 -08:00
Vasiliy Ermolovich
92088131ac
fix adding field_with_errors to date selects, closes #3487
2011-12-20 20:25:56 +03:00
José Valim
f29b4a02fd
Add a test case for layout nil.
2011-12-20 14:56:18 +01:00
José Valim
2305a98f7a
Check if source is encoding aware.
2011-12-20 12:39:28 +01:00
José Valim
2e0050ce5c
Do not hard code encoding to UTF8
2011-12-20 11:56:38 +01:00
Xu Pan
1897be9b50
don't encode an UTF-8 encoded template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-12-20 11:56:33 +01:00
David Heinemeier Hansson
9d6e52b55e
Party like its R-C-UNO!
2011-12-19 18:34:57 -06:00
schneems
921dcc2570
add help text to routing error
...
When a newcomer hits the routing error page they
are often confused about how to trouble shoot the
next step. Adding a simple help text can gently
remind coders where to get more help.
2011-12-17 14:23:40 -06:00
Justin Campbell
4d5266e270
Allow symbols to be passed for extension aliases
2011-12-17 07:40:25 -05:00
Vijay Dev
5f6bcd74fd
Merge pull request #3780 from marcbowes/master
...
Fix favicon_link_tag help text
2011-12-16 11:13:39 -08:00
Vijay Dev
bd84b2bb5d
Merge branch 'master' of github.com:lifo/docrails
2011-12-16 23:34:00 +05:30
José Valim
654df86b7b
Show detailed exceptions no longer returns true if the request is local in production.
2011-12-16 10:45:59 +01:00
José Valim
192e55c38e
Do not raise an exception if an invalid route was generated automatically.
2011-12-16 10:45:59 +01:00
José Valim
5359262695
ShowExceptions should understand X-Cascade responses from exceptions app.
2011-12-16 10:45:59 +01:00
José Valim
7dd1c751f9
Improve the specs on exceptions app.
2011-12-16 10:45:59 +01:00
José Valim
deef8dd682
Extract the rendering of public exceptions pages into a Rack app.
2011-12-16 10:45:59 +01:00
José Valim
d142572567
Get rid of the close checks since we cannot reliably close the session anyway.
2011-12-16 10:45:59 +01:00
José Valim
26e7400cc5
Fix diagnostics page for routing errors.
2011-12-15 19:43:49 +01:00
Uģis Ozols
8d827325d0
Remove autoload for non-existent file.
2011-12-15 06:52:42 +02:00
Nick Howard
dcd59f2d9f
escape assigns[:person], assigns[person] etc in actioncontroller testcase
2011-12-14 15:38:15 -07:00
Sergey Nartimov
caa1c19787
fix separator insertion in date_select helper
2011-12-14 23:20:23 +03:00
José Valim
e3a4eb4b40
Close the response body on cascade pass, closes #3975 .
2011-12-14 17:03:35 +01:00
choonkeat
5f67cfeda1
Fix url_for options[:subdomain] to allow objects as values
...
* e.g. blog_url(subdomain: current_user) instead of blog_url(subdomain: current_user.to_param)
2011-12-14 22:43:42 +08:00
José Valim
f3531a8fc9
Clean up details keys before some tests to expire the cache.
2011-12-14 09:23:34 +01:00
Aaron Patterson
c7552d988e
dup the details hash if a key has already been set for this object
2011-12-13 15:26:29 -08:00
José Valim
5dc4868962
Merge pull request #3970 from lest/backtrace-when-silenced
...
log exception backtrace when all backtrace lines silenced
2011-12-13 11:43:13 -08:00
Sergey Nartimov
081431fdf1
log exception backtrace when all backtrace lines silenced
2011-12-13 22:32:39 +03:00
Aaron Patterson
ab802e72dc
locale and default_locale may be the same, so uniq the array
2011-12-13 11:28:30 -08:00
Aaron Patterson
9d87a67590
stop freezing the details hash
2011-12-13 11:25:03 -08:00
Aaron Patterson
8b85e4a4a1
stop freezing hash value
2011-12-13 11:13:14 -08:00
Aaron Patterson
810837dda8
use Array#join so that file encoding doesn't impact returned string.
...
Fixes #3957
2011-12-12 19:45:16 -08:00
Aaron Patterson
676092f761
logger adds a newline for us
2011-12-12 16:02:59 -08:00