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
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
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
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
Tom Ward
c3d1fda555
Set the response content type to that of found template if not explicitly set elsewhere [ #444 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-07-18 20:14:12 -05:00
Joshua Peek
d2ccb852d4
Removed lagacy TemplateHandler#render API. Left in a legacy TemplateHandler and Compilable stub so plugins will not have to change anything.
2008-07-18 16:00:20 -05:00
Jeremy Kemper
57a2780f14
etag! and last_modified! conditional GET helpers
2008-07-17 23:18:10 -07:00
Jeremy Kemper
1e0f94a77c
Introduce simple internationalization support
2008-07-17 14:56:12 -07:00
Jeremy Kemper
8f9702db5c
Merge branch 'master' of git@github.com:rails/rails
2008-07-17 14:43:08 -07:00
Joshua Peek
7359597004
Wrap AssetTagHelper's computed public path cache in a threadsafe store
2008-07-17 16:03:48 -05:00
Jeremy Kemper
636e6b7138
Merge branch 'master' into i18n-merge
...
Conflicts:
actionpack/lib/action_view/helpers/form_options_helper.rb
activerecord/lib/active_record/validations.rb
2008-07-17 11:52:56 -07:00
Pratik Naik
99930d499e
Fix symbol cookie test
2008-07-17 18:19:09 +01:00
Ripta Pasay
f7fdbae770
Use fully-qualified controller name when logging. [ #600 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-07-17 01:33:44 +01:00
Sven Fuchs
842917dea0
moving country helpers from form_options_helper to form_country_helper again
2008-07-16 11:30:57 -07:00
Sven Fuchs
428b77debd
fixing another timezone dependent test
2008-07-16 11:07:08 -07:00