rohit
7508c0e9d3
Change sanitize to escape in test names of text_helper_test [ #4844 state:resolved]
2010-06-12 15:34:05 +02:00
Jeremy Kemper
acad3ba848
Ruby 1.9.1 compat: constant lookup
2010-06-11 11:00:56 -07:00
Santiago Pastorino
b4976ce91b
text_helper now escape the unsafe input instead of sanitizing
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-11 16:34:53 +02:00
Rizwan Reza
51ad68367a
Added tests for cookies with domain option.
2010-06-11 16:34:53 +02:00
Rizwan Reza
132730d5db
Moved test/controller/cookie_test.rb to test/dispatch/cookies_test.rb
2010-06-11 16:34:53 +02:00
Rizwan Reza
edbb78d6cc
The previous commit didn't work with complex domains, which is now fixed.
2010-06-11 16:34:52 +02:00
Rizwan Reza
44830ead1c
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]
...
This reverts commit 330a89072a493aafef1e07c3558964477f85adf0.
2010-06-11 16:34:52 +02:00
José Valim
330a89072a
Revert "Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]"
...
It does not work for domains like co.uk and com.br.
This reverts commit c4d6245e875bbb276c122a5a401422d341dac4df.
2010-06-10 20:08:01 +02:00
Alan Harper
566967eaf3
Missing method error doesn't specify which controller it is missing from [ #4436 state:resolved]
...
The error page shown when the method you are requesting on a controller
doesn't specify which controller the method is missing from
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-10 20:04:37 +02:00
José Valim
51590ad175
Remove punctuate_body! No code in lib was using it and it had no documentation.
2010-06-10 19:49:10 +02:00
Guillermo Álvarez
c4d6245e87
Add support for multi-subdomain session by setting cookie host in session cookie so you can share session between www.example.com, example.com and user.example.com. [ #4818 state:resolved]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
2010-06-10 12:05:12 -04:00
Santiago Pastorino
0919c0dbca
Removed textilize, textilize_without_paragraph and markdown helpers
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-09 10:06:14 +02:00
Neeraj Singh
f48aa14bf4
Better test for ticket [ #3914 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-09 09:51:05 +02:00
José Valim
5c9f27abaa
Add more cases to previous commit [ #4394 state:resolved]
2010-06-08 23:26:51 +02:00
Jan De Poorter
4560385fa4
Make sure namespaces are nested within resources
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 23:21:53 +02:00
Neeraj Singh
db23a95a61
cache_sweeper yields blank output
...
[#3914 state:open]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 23:20:04 +02:00
David Heinemeier Hansson
03be27092b
Revert "Add shallow routes to the new router" for now. Needs more work.
...
This reverts commit 67a60ee314f53abcde78f8ecd2a1f7c9ef8264e1.
2010-06-08 16:20:46 -04:00
David Chelimsky
bdcf70cca8
Memoize the object returned by _view in ActionView::TestCase::Behavior
...
[#4799 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 21:25:31 +02:00
David Heinemeier Hansson
585f8f27b1
Fixed double output from cache in no caching mode
2010-06-08 14:47:02 -04:00
Prem Sichanugrist
c6ad64394b
Make sure that rails recognized the full notation of IPv6 loopback address, and recognize 127.0.0.0/8 in IPv4
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 19:45:40 +02:00
Andrew White
a7edddf605
Fix resources ignoring scope options
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 19:33:27 +02:00
rohit
47bf19c848
Made markdown honor :safe option and handle safe input. Also added tests for markdown.
...
[#4794 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 17:00:11 +02:00
Andrew White
4740fbac85
Add support for actions on a new resource to the new routing DSL [ #4328 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 09:11:39 +02:00
rohit
67f411c57b
Fixed textilize_without_paragraph and added tests for it. [ #4792 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-08 09:11:34 +02:00
Mikel Lindsaar
e404490f9b
Merge branch 'master' of git://github.com/rails/rails
2010-06-08 00:10:11 -04:00
Mikel Lindsaar
21cc1ed437
Updating image_tag to support cid:content_id "URLs"
2010-06-07 21:53:31 -04:00
Diego Carrion
67a60ee314
Add shallow routes to the new router [ Closes #3765 ]
2010-06-07 18:09:20 -05:00
José Valim
981f81275b
Fix case when rendering a partial inside RJS with inherited layout [ #4786 state:resolved]
2010-06-07 22:22:54 +02:00
Santiago Pastorino
ab764ecbfe
Makes text_helper methods sanitize the input if the input is not safe or :safe => true option is not provided
2010-06-07 15:31:21 -04:00
Santiago Pastorino
399b493cb4
content_tag_string shouldn't escape_html if escape param is false
2010-06-07 15:31:11 -04:00
José Valim
1a8f784a23
member on resource should not expect an ID.
2010-06-07 11:20:54 +02:00
José Valim
5273bd97e6
Make AP test suite green once again and speed up performance in layouts lookup for some cases.
2010-06-07 10:13:41 +02:00
Rizwan Reza
ac9f8e1b7b
Router accepts member routes on resource. [ #4624 state:resolved]
2010-06-06 21:27:52 -04:00
José Valim
9a93844aba
Add :only and :except to controllers MiddlewareStack. This allows
...
you to do the following:
class PostsController < ApplicationController
use AutheMiddleware, :except => [:index, :show]
end
2010-05-30 15:53:14 +02:00
wycats
0078df6b54
Update template to allow handlers to more cleanly handle encodings (ht: nex3)
2010-05-30 11:37:35 +02:00
José Valim
19d8c8cbe4
Remove the laziness from the middleware stack.
2010-05-29 22:29:46 +02:00
wycats
d7f6f2b596
Now that we always return a proxy from mb_chars, even in 1.9, all Strings coming back from AS are UTF-8.
2010-05-29 21:20:52 +02:00
Santiago Pastorino
e5a56eb297
fix translation test in actionpack [ #4701 state:commited]
...
Signed-off-by: wycats <wycats@gmail.com>
2010-05-29 21:12:28 +02:00
Michael Koziarski
668f7dd5d0
Merge commit 'mislav/auto_link'
2010-05-29 14:05:56 +12:00
David Chelimsky
e02db06ece
In AV::TC, move protect_against_forgery? from the test_case to the
...
_helper module included in the view.
- ensures that protect_against_forgery? is present when a helper
included in a partial that is rendered by the template under test
calls it (which happens in FormTagHelper#extra_tags_for_form, for
example).
[#4700 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-26 15:59:03 +02:00
David Chelimsky
9ae7e93920
reorganize tests for AV::TC
...
- decouple tests from the test case class by moving them outside
- split out more TestCase subs as cleaner way of avoiding bleed of
class level concepts
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-26 15:58:53 +02:00
David Chelimsky
163152bfd0
Support configuration of controller.controller_path on instances of
...
ActionView::TestCase::TestController without stubs. Just say:
@controller.controller_path = "path/i/need/for/this/test"
[#4697 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-26 08:49:57 +02:00
Jeremy Kemper
f53a6d8149
i18n: t() handles single keys returning an Array, also
2010-05-24 20:30:21 -07:00
Jeremy Kemper
d8d38bedfd
HTML safety: fix textarea with nil content
2010-05-24 20:18:25 -07:00
Santiago Pastorino
b5f9c8822d
translate method doesn't support arrays anymore and is optimized to be used with strings or symbols
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-24 23:42:20 +02:00
Santiago Pastorino
2b8eb5404e
Revert "translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe"
...
This reverts commit 05c95b5c5815c0b3ae55fda7a897922b7f3ec2c7.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-24 23:41:55 +02:00
David Chelimsky
8e583b69e8
Move AV::TC to AV::TC::Behavior [ #4678 state:resolved]
...
- enables alternative testing frameworks to include AV::TC::Behavior
instead of subclassing AV::TC
- also added tests and code for:
- test view delegates :notice to request.flash
- useful since generators generate views that use notice
- test case doesn't try to include modules that are actually
classes
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-24 22:58:46 +02:00
Santiago Pastorino
05c95b5c58
translation method for arrays on TranslationHelper module returns an array where values for keys of the form (.|_)html keys are html_safe
...
[#4675 ]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-05-24 20:12:43 +02:00
José Valim
59d1c418be
Fix a bug where responders were not working properly on method override.
2010-05-24 13:12:40 +02:00
Mislav Marohnić
8f0b2138ee
avoid auto_linking already linked emails; more robust detection of linked URLs
...
References #1523 [#1862 state:resolved] [#3591 state:resolved]
Add test that shows how link text can contain HTML if needed:
the trick is using block form in combination with `raw`.
Let link text be automatically HTML-escaped
[#2017 state:resolved]
2010-05-24 11:25:24 +02:00