Yehuda Katz
f2f5cdc8bc
Rename ActiveRecordHelper to ActiveModelHelper
2009-07-20 01:30:49 +09:00
Yehuda Katz
b00cac4adc
Finish convert_to_object updates
2009-07-20 01:22:24 +09:00
Yehuda Katz
13e18dd940
Update some tests and add a to_model to form helpers
2009-07-20 00:58:59 +09:00
Yehuda Katz
5ffaaa71d1
Define ActiveModel API Compliance
...
- Define to_model on AR
- Define to_model on ActiveModel::APICompliant
- Update test fixtures to be API Compliant
- Start using to_model in AP
2009-07-20 00:27:04 +09:00
Yehuda Katz
b20d68446d
Move default_form_builder to ActionView so it'll work in environments not using ActionView::Base
2009-07-19 22:31:55 +09:00
Yehuda Katz
0f2914be40
Separate ActionView::Context so something else can easily be made into an AV context
2009-07-19 22:31:44 +09:00
Yehuda Katz
bb530923bc
Simplify required "ActionView compliant" API
2009-07-19 21:53:02 +09:00
Emilio Tagua
1e2d722960
Adds a audio_tag helper for the HTML5 audio tag. Fixed video_path docs. HTML attributes values should be true or false not attribute's name. [ #2864 state:resolved]
...
Signed-off-by: Yehuda Katz <wycats@yehuda-katzs-macbookpro41.local >
2009-07-07 15:56:27 -07:00
Jesús García Sáez
fc6077d76e
Allow symbols on routes declaration (:controller and :action values) [ #2828 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 12:18:48 -07:00
Jarl Friis
e61afed6f8
My suggestion to fix ticket 2401 [ #2401 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 11:55:24 -07:00
Yehuda Katz + Carl Lerche
cf5b2b250f
Fixes a number of tests that inexplicably didn't fail when we committed the original patch
2009-07-02 10:50:25 -07:00
Tieg Zaharia
51d7b3070c
Adds a video_tag helper for the HTML5 video tag (similar to how the image_tag works) (tests included); removes a duplicate test line for image_tag; adds boolean attributes for video tag to tag()'s boolean attributes
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-02 10:36:38 -07:00
Yehuda Katz + Carl Lerche
7583a24ee0
Move mocha down below initial T::U require and bump version to 0.9.7 [ #2858 state:resolved]
2009-07-01 11:53:17 -07:00
Yehuda Katz + Carl Lerche
0515256fd3
Accept Symbol for contoller name [ #2855 state:resolved]
...
Signed-off-by: Yehuda Katz + Carl Lerche <ykatz+clerche@engineyard.com >
2009-07-01 11:16:18 -07:00
Chris Mear
085db5e128
Make text_area_tag escape contents by default.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2015 state:committed]
2009-06-27 13:16:52 +12:00
Vicente Mundim
68b02cb00a
Make filter_parameters work correctly with array parameters.
2009-06-27 12:43:57 +12:00
Christos Zisopoulos
18a97a6601
Handle missing javascript/stylesheets assets by raising an exception
...
An exception will be raised if a local javascript/stylesheet file included
by the stylesheet_link_tag or javascript_include_tag can not be found.
When caching is enabled, we use atomic_write to ensure that the cache file
is not created with zero length.
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#2738 state:committed]
2009-06-26 16:47:15 +12:00
Joshua Peek
b598baf813
ignore absolute tmp directory
2009-06-25 14:52:58 -05:00
Joshua Peek
7837da41a3
send_data should set Content-Length as a string
2009-06-25 14:47:15 -05:00
Joshua Peek
7aa730440c
Remove deprecated implicit ivar assignment
2009-06-25 12:51:21 -05:00
Yehuda Katz + Carl Lerche
1b844e4bf4
Passes in 1.9
2009-06-23 14:45:27 -07:00
=?utf-8?q?Mislav=20Marohni=C4=87?=
21cd4c0e93
Fix polymorphic_path doesn't modify options hash [ #2099 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-06-21 17:53:07 +01:00
Darragh Curran
9cb8c812f2
Add content_for?(:name) helper to check if content_for(:name) is present [ #1311 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-06-21 17:07:22 +01:00
Jeremy Kemper
5267addd4f
Use errors[field] instead of errors.on(field)
2009-06-17 19:37:56 -07:00
Yehuda Katz + Carl Lerche
a9ad763c86
Drive the final stake through @content_for_*'s heart!
2009-06-17 18:08:45 -07:00
Yehuda Katz + Carl Lerche
65102c8f1a
Cleaning up more tests and code that needed to work in both old and new base
2009-06-17 16:51:51 -07:00
Yehuda Katz + Carl Lerche
8fdf3d7890
Remove some defined?(Http) checks
2009-06-17 16:14:05 -07:00
Yehuda Katz + Carl Lerche
d8f352e970
Rename ActionView::Template::Path ActionView::Resolver
2009-06-17 15:32:55 -07:00
Yehuda Katz + Carl Lerche
6927f1119b
Finish making pending tests pass
2009-06-17 12:54:19 -07:00
Yehuda Katz + Carl Lerche
487312515c
RJS doesn't render with an HTML layout by default
2009-06-17 12:54:19 -07:00
Yehuda Katz + Carl Lerche
4fad953f90
Fixing pending tests and fixed some formats / partial rendering semantics
2009-06-17 12:54:19 -07:00
Yehuda Katz + Carl Lerche
de388ba864
Fix pending test about content-type
2009-06-17 12:54:18 -07:00
Joshua Peek
1c4d28ba31
Move model naming into ActiveModel
2009-06-17 10:37:39 -05:00
Yehuda Katz + Carl Lerche
dd58f4021d
An exception is raised if a layout is missing only if the layout is missing for all mimes
2009-06-16 13:44:51 -07:00
Yehuda Katz + Carl Lerche
a6e803bee1
Remove exceptions from AbstractUnit so they work in real life
2009-06-16 11:20:28 -07:00
Yehuda Katz + Carl Lerche
1fbfa3e705
More _write_layout_method removal
2009-06-15 17:33:25 -07:00
Yehuda Katz + Carl Lerche
3c15cba175
Whoops, I guess we broke layouts ;)
2009-06-15 17:32:10 -07:00
Yehuda Katz + Carl Lerche
c7ba9aa195
Get the new base tests to pass
2009-06-15 15:56:18 -07:00
Yehuda Katz + Carl Lerche
0e558f0bbd
Get the AR integration tests to pass
2009-06-15 15:55:09 -07:00
Yehuda Katz + Carl Lerche
80d1e27788
Fix the fixture path
2009-06-15 11:50:11 -07:00
Yehuda Katz + Carl Lerche
a63caa4c0c
Get tests to run (with failures) without old base around
2009-06-15 11:44:45 -07:00
Yehuda Katz + Carl Lerche
5a8a550a45
Finish making things pass with updated internal content_type semantics
2009-06-15 11:21:08 -07:00
Joshua Peek
c50b03b754
Add :concat option to asset tag helpers to force concatenation.
...
This is useful for working around IE's stylesheet limit.
stylesheet_link_tag :all, :concat => true
2009-06-15 10:23:23 -05:00
Andrew Kaspick
59c83af18b
allow absolute paths for the asset caches
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-11 16:33:32 +12:00
Yehuda Katz + Carl Lerche
47ff57f6d1
Document and clean up HideActions and Http
2009-06-10 15:27:53 -07:00
Yehuda Katz + Carl Lerche
f35f47b8c0
Cleaning up and documenting AbstractController::Layouts
2009-06-09 16:47:40 -07:00
Yehuda Katz + Carl Lerche
acb2447785
Write documentation for AbstractController::Helpers
2009-06-09 16:47:39 -07:00
Stephen Anderson
a94e7d7897
Sanitized the id generated by text_area_tag helper method. text_area_tag('item[description]') should return: <textarea id="item_description" name="item[description]"></textarea> instead of: <textarea id="item[description]" name="item[description]"></textarea> The old id was causing HTML validation failures.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:36:45 +12:00
David Stevenson
a14df8c9b2
Made label target radio button tags with values. Radio button now respects inherited :index options when generating id.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 20:28:43 +12:00
nate
f68cc639f5
A test to show that http_authentication needs to fail authentication if the password procedure returns nil. Also includes a fix to validate_digest_response to fail validation if the password procedure returns nil.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-06-09 19:47:53 +12:00