Joshua Peek
f2d8d13c64
Performance: Cache modules that extend the view context for JavaScriptGenerator
2008-08-25 21:50:26 -05:00
Joshua Peek
ba0d621695
Include all helpers into ActionView::Helper
2008-08-25 21:50:26 -05:00
Jeremy Kemper
2efdeb7a95
Ruby 1.9 compat: set source encoding
2008-08-23 16:06:54 -07:00
Jeremy Kemper
9dac5547ad
Merge branch 'master' into i18n
2008-08-22 13:01:53 -07:00
Jeremy Kemper
a6e05b18d6
Merge commit 'sven/i18n' into i18n
2008-08-22 12:44:14 -07:00
Ryan Bates
9a5ffaa01e
Ensure :partial => @collection and :collection => @collection behaves same. [ #884 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-22 18:15:53 +01:00
Jeremy Kemper
e6a66cbd05
update rack tests for default response content_type and charset
2008-08-21 18:16:16 -07:00
Jeremy Kemper
f8f077945f
Move default content type and charset from Base to Response. Handle charset = nil.
2008-08-21 18:11:09 -07:00
Tarmo Tänav
98fb161dbb
Allow polymorphic_url helper to take url options. [ #880 state:resolved]
...
All *_polymorphic_url, *_polymorphic_path helpers can now accept
an options hash which will be passed on to the named route
making it possible to generate polymorphic routes with additional
url parameters.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 20:26:00 +01:00
Sven Fuchs
aad429a46e
Merge branch 'master' into i18n
2008-08-21 19:04:39 +02:00
Darragh Curran
7e4ea5f4a2
Allow overriding id for feed and entry with atom_feed_builder. [ #485 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-08-21 13:37:26 +01:00
Joshua Peek
47cd8b81cc
Switched integration test runner to use Rack processor instead of CGI
2008-08-20 13:37:18 -05:00
Joshua Peek
a74dbe6c52
Improve test coverage for integration tests cookie header
2008-08-20 13:22:36 -05:00
Joshua Peek
6f530de944
Test coverage for integration testing with parameters
2008-08-19 20:15:51 -05:00
Ryan Bates
a8ece12fe2
Return nil instead of a space when passing an empty collection or nil to 'render :partial' [ #791 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-19 19:09:04 -05:00
Joshua Peek
71c4ff07ab
Delegate xhr helper method to integration session
2008-08-19 18:53:46 -05:00
Ryan Bates
38c7d73e73
pass yielded arguments to block for ActionView::Base#render with :layout [ #847 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-17 19:29:24 -05:00
Joshua Peek
dbb0abfb7e
More integration test coverage
2008-08-17 19:18:18 -05:00
Joshua Peek
b8e930aa01
Merge RackProcess#normalize_headers logic into AbstractResponse#prepare!
2008-08-17 19:09:38 -05:00
Joshua Peek
894f9ccc53
Use RackRequest as a mock instead of StubCGI into RequestTest
2008-08-17 19:04:01 -05:00
Iain Hecker
ffeab4e0c1
Cleaned up ActiveRecord i18n scoping
2008-08-14 10:48:33 +02:00
Joshua Peek
3b9324e62f
Fix rendering partials at the top level [ #795 state:resolved]
2008-08-13 19:15:35 -05:00
Jeremy Kemper
1b127fcdea
Set asset-cached file ctime and mtime to the max mtime of the combined files. Allows for consistent ETag generation without having a shared filesystem.
2008-08-12 20:18:03 -07:00
Jeremy Kemper
45b79d933c
Merge branch 'conditional-get'
2008-08-12 17:03:17 -07:00
Sven Fuchs
bdf783b5a8
update i18n usage for pluralization hashes (api change)
2008-08-10 21:29:02 +02:00
Cameron Yule
2faf35cea9
Added tests for partial collection counters [ #766 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-09 10:48:56 -05:00
miloops
ea0d036e31
mail_to should use decodeURIcomponent instead of unescape to be utf friendly.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-08-08 15:31:02 +02:00
Jeremy Kemper
ba2d61dd81
Update tests for request memoization
2008-08-08 02:31:12 -07:00
Jeremy Kemper
b7529ed1cc
Simplifying usage of ETags and Last-Modified and conditional GET requests
2008-08-07 23:43:12 -07:00
Clemens Kofler
105093f907
Refactor DateHelper to use DateTimeSelector presenter pattern
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-07 13:13:47 -05:00
Joshua Peek
b2504f8ba0
Tidy up ActionMailer rendering logic to take advantage of view path cache instead of using file system lookups
2008-08-06 20:11:21 -05:00
Clemens Kofler
dc66469e64
Fixed i18n bulk translate issues in NumberHelper
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-08-04 22:26:14 -05:00
Tarmo Tänav
656f0e7c6c
Fix file permissions
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-31 16:36:23 -05:00
miloops
f3da46effa
In javascript helpers option[:type] = :synchronous should work as described in docs.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-07-31 21:28:12 +02:00
miloops
eaab895f83
Prototype helpers should generate Element.insert instead of Insertion.new, which has been deprecated in Prototype 1.6.
2008-07-30 01:42:32 -07:00
Clemens Kofler
fea7771d22
Updated NumberHelper: Full i18n support (except number_to_phone), consolidated API (almost all methods now support :precision, :delimiter and :separator). Added deprecation notices for old API. Added tests for new options [ #716 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-29 21:47:02 -05:00
Jan De Poorter
7aaf1689dd
Fix that label_tag doesn't take a symbol for a name. [ #719 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-07-29 12:39:21 +01:00
Joshua Peek
a5db148825
Prepare Route#generate and Route#recognize early. Also refactor segments a bit to try to make immutable.
2008-07-28 13:41:42 -05:00
Joshua Peek
e0513e33c4
Routing whitespace cleanup
2008-07-28 13:38:20 -05:00
Clemens Kofler
10d9fe4bf3
Refactored TextHelper#truncate, highlight, excerpt, word_wrap and auto_link to accept options hash [ #705 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-27 16:49:19 -05:00
Clemens Kofler
f7abf0c9db
error_message_on takes an options hash instead of ordered parameters [ #704 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-27 16:34:20 -05:00
Joshua Peek
a87462afcb
AbstractRequest.relative_url_root is no longer automatically configured by a HTTP header. It can now be set in your configuration environment with config.action_controller.relative_url_root
2008-07-24 13:41:51 -05:00
Joshua Peek
55adaa2efc
Fixed bc5896e, and added test case for the caching bug it originally introduced.
2008-07-23 13:47:30 -05:00
Joshua Peek
2681685450
Extract ActiveSupport::TypedArray class to ensure an array is all of the same type [ #673 state:resolved]
2008-07-22 11:12:16 -05:00
Joshua Peek
bc5896e708
Memoize ActionView::Base pick_template and find_partial_path for rendering duration
2008-07-22 10:27:32 -05:00
Clemens Kofler
0f43de644e
Refactored NumberHelper API to accept arguments as an options hash [ #666 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-21 13:05:27 -05:00
Clemens Kofler
ff9f6fcc75
Refactor DateHelper and improve test coverage [ #665 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-21 12:57:15 -05:00
Kevin Glowacz
1b4b1aa725
Fixed index and auto index for nested fields_for [ #327 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-19 15:10:12 -05:00
Clemens Kofler
c98692abcf
Removed handling of string parameter in link_to to have all URL generation done by url_for
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-19 13:06:43 -05:00
Tom Ward
d39485078e
Raise ArgumentError if an invalid method is specified as part of a route's conditions. Also raise an error if HEAD is specified as the method, as rails routes all HEAD requests through the equivalent GET, though doesn't return the response body [ #182 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-18 20:19:03 -05:00