Sven Fuchs
77177441d1
including rcov shell scripts for reference
2008-06-23 14:49:47 +02:00
Sven Fuchs
ac66865ea3
update tests according to removal of self.locale from helpers
2008-06-23 14:49:02 +02:00
Sven Fuchs
2ee9f2a030
remove generic translate helpers
2008-06-23 14:34:01 +02:00
Sven Fuchs
3533dc6812
check self.locale instead of request.locale in helpers
2008-06-22 13:49:38 +02:00
Sven Fuchs
20d6630c1b
Replaced country_options_for_select with old,
...
untranslated version and moved country-related helpers to a new
FormCountryHelper helper module so that they can easily be moved to a plugin.
Updated tests accordingly.
2008-06-22 11:41:51 +02:00
Sven Fuchs
c1e2506494
Changed process of storing translations from the
...
client libraries to the backend: clients now can pass a block to
backend#populate which can contain code to load and register translations.
This makes sense for backends that persist their translations (e.g. to db)
so the repeated loading and passing of translations throughout the server
startup would be wasted resources.
2008-06-21 11:27:19 +02:00
Sven Fuchs
585c8c17c3
rename Backend::Simple#add_translations to set_translations
...
because it overwrites existing translations
2008-06-20 09:13:20 +02:00
Sven Fuchs
b09c6e7444
add a generic tranlate view helper
2008-06-19 19:08:14 +02:00
Sven Fuchs
45d41f0dad
integrating I18n into Rails
2008-06-19 16:25:27 +02:00
Joshua Peek
40557e17dd
Improved test coverage for integration test's api
2008-06-17 21:25:51 -05:00
Joshua Peek
bec4b69a3b
Replaced TemplateFinder abstraction with ViewLoadPaths
2008-06-17 21:21:07 -05:00
David Heinemeier Hansson
8190bce8bc
Added block-call style to link_to [Sam Stephenson/DHH]
2008-06-17 17:37:29 -05:00
Luke Redpath
7650ff892c
Fix url_for with no arguments when default_url_options is not explicitly defined. [ #339 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-17 20:53:41 +01:00
Amos King
1b4b8fbbd9
verify :redirect_to => :back should redirect to the referrer. [ #280 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-17 18:08:56 +01:00
David Heinemeier Hansson
6573f6a4bc
Revert "Lazy load cache and session stores"
...
This reverts commit 19895f087c .
2008-06-12 19:52:33 -05:00
Pratik Naik
65bc8f33de
Silence TimeZone warning
2008-06-11 17:11:34 +01:00
Jan De Poorter
ca9641f8a7
Fix FormOptionsHelper tests.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 13:17:40 +01:00
Jonathan del Strother
3e07f320c1
Improve ActionCaching's format-handling
...
Make ActionCaching more aware of different mimetype formats.
It will now use request.format to look up the cache type, in addition to the path extension.
When expiring caches, the request format no longer affects which cache is expired.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-11 13:15:01 +01:00
Pratik Naik
0ad0bdc01c
Delegate ActionView::Base#controller_name to controller
2008-06-10 23:55:04 +01:00
Pratik Naik
19895f087c
Lazy load cache and session stores
2008-06-10 10:29:25 +01:00
Joshua Peek
2336430471
Removed TemplateFinder.update_extension_cache_for since view path cache will be updated on boot.
2008-06-09 10:21:30 -05:00
Jeremy Kemper
057768cd2c
Process view paths passed to AV::Base#initialize instead of raising.
2008-06-08 21:21:54 -07:00
Jeremy Kemper
c88f2b5e23
with_output_buffer returns the temporary buffer instead of the result of the block
2008-06-08 20:35:30 -07:00
Jeremy Kemper
ff5f155f8d
Use output_buffer reader and writer methods exclusively instead of hitting the instance variable so others can override the methods.
2008-06-08 20:05:39 -07:00
Jeremy Kemper
b336ce9e06
Revert "Missed add: deprecated erb_variable test"
...
This reverts commit 56f5c5582c .
2008-06-08 13:04:00 -04:00
Jeremy Kemper
56f5c5582c
Missed add: deprecated erb_variable test
2008-06-08 01:32:57 -07:00
Joshua Peek
d5539958a8
Wrap CGIResponse, LegacyRouteSet, Route, RouteSet and RouteLoading tests inside mocha block.
2008-06-07 23:42:05 -05:00
Jeremy Kemper
fe9d2ad6e8
Remove some internal dead code that supported content_for
2008-06-06 18:01:14 -07:00
Jeremy Kemper
26ec1be24a
concat should ignore nil
2008-06-06 18:00:01 -07:00
Jeremy Kemper
e732a405ab
javascript_tag should only concat when block_given?
2008-06-06 17:59:41 -07:00
Jeremy Kemper
9c9da5d927
Merge branch 'master' into erbout
2008-06-05 17:34:14 -07:00
Pratik Naik
1dbfe9766e
Ensure render :file works inside templates
2008-06-05 23:33:10 +01:00
Frederick Cheung
2e0765a003
Make partial counter start from 0.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-05 22:11:40 +01:00
Jeremy Kemper
e7f1556d0e
Merge branch 'master' into erbout
2008-06-05 13:25:33 -07:00
Joshua Peek
c4d570c2eb
Use CGI::Cookie::parse for request cookies until we officially deprecated CGI.
2008-06-04 22:32:09 -05:00
Sean Huber
30a0ebb3eb
Add RJS#page.reload. [ #277 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-06-04 13:32:53 +01:00
Jeremy Kemper
53bcbfbdc1
Merge branch 'master' into erbout
2008-06-03 22:38:27 -07:00
David Heinemeier Hansson
885453537e
Merge branch 'master' of git@github.com:rails/rails
2008-06-03 18:12:56 -05:00
David Heinemeier Hansson
edfa195e2a
Fixed Request#remote_ip to only raise hell if the HTTP_CLIENT_IP and HTTP_X_FORWARDED_FOR doesnt match (not just if theyre both present) [Mark Imbriaco, Bradford Folkens]
2008-06-03 18:11:47 -05:00
Gabe da Silveira
025515b234
Fix assert_redirected_to for nested controllers and named routes
...
[#308 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-06-04 11:08:58 +12:00
josevalim
d54d90f2b5
Allow caches_action to accept a layout option [ #198 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-06-03 14:02:51 -05:00
Joshua Peek
c08547d226
Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ActiveSupport [ #238 state:resolved]
2008-06-03 13:32:53 -05:00
Jeremy Kemper
f55ad960d2
Stack @output_buffer for nested rendering
2008-06-03 01:10:00 -07:00
Jeremy Kemper
0bdb7d353b
Work with @output_buffer instead of _erbout
2008-06-02 21:32:50 -07:00
Joshua Peek
92050f6c6f
Ensure Rack processor reads CGI output_cookies for the session cookie.
2008-06-02 21:02:51 -05:00
Ezra Zygmuntowicz
06cb20708b
Added Rack processor
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-06-01 11:25:11 -07:00
Michael Koziarski
ef21e01333
Remove dead code, and the tests for it.
2008-05-31 16:59:03 -07:00
Jeremy Kemper
888a2927b6
Remove superfluous tests directive
2008-05-26 01:39:21 -07:00
Kevin Glowacz
1a73e98660
Fix auto_link helper for already linked urls. [ #72 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-22 21:10:40 +01:00
Adam
314e556e6f
Parentheses should be acceptable characters for auto_link_urls. [ #234 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-05-22 11:16:02 +01:00