Lucas Mazza
b5bb3f8558
raises an ArgumentError if no valid options are given to TemplateRenderer#determine_template
...
Signed-off-by: José Valim <jose.valim@gmail.com >
2011-12-21 21:17:17 +01:00
Brian Rose
bd89946dd3
Ensure option for select helper responds to #first before comparison.
2011-12-20 13:26:10 -07:00
Vasiliy Ermolovich
024d3b9fcc
add failing tests for issue #3487
2011-12-19 21:55:37 +03:00
Sergey Nartimov
caa1c19787
fix separator insertion in date_select helper
2011-12-14 23:20:23 +03:00
José Valim
f3531a8fc9
Clean up details keys before some tests to expire the cache.
2011-12-14 09:23:34 +01:00
Lennart Fridén
dc43e402a1
Added :use_two_digit_numbers option [Lennart Fridén & Kim Persson]
...
Added use_two_digit_numbers select_tag option for displaying months and days with leading zeros without affecting the values (useful for e.g. ISO-style dates, 2011-08-01).
Signed-off-by: José Valim <jose.valim@gmail.com >
Conflicts:
actionpack/CHANGELOG.md
2011-12-11 22:54:28 +01:00
Will Farrington
3f65e7f7be
Add button_tag support to ActionView::Helpers::FormBuilder.
...
This support is near-identical to the existing submit_tag support.
Example:
<%= form_for @post do |f| %>
<%= f.button %>
<% end %>
2011-12-11 08:56:26 -05:00
Aaron Patterson
c212a34e1d
only load converter if the encodings are different
2011-12-09 09:33:36 -08:00
Aaron Patterson
2c471b3ac8
load the encoding converter to work around [ruby-core:41556] when switching encodings
2011-12-08 15:14:07 -08:00
Adrian Pike
25007ad3fb
Let's do the same trick for asset_path that we do for [image,javascript,stylesheet]_path to avoid namespace conflicts on named routes.
...
Closes #3427
2011-12-05 17:17:39 -08:00
Vasiliy Ermolovich
e29773f885
form_for with +:as+ option uses "action_as" as css class and id
2011-12-04 22:12:24 +03:00
lest
e975fe710a
test helpers in erb using erb
2011-11-30 17:38:09 +03:00
Marc-Andre Lafortune
d3bc12b27f
Handle correctly optional parameters for callable asset_host.
2011-11-29 02:01:18 -05:00
Vasiliy Ermolovich
fb8b555c49
add namespace options to form_for
...
You can provide a namespace for your form to ensure uniqueness of id attributes on form elements.
The namespace attribute will be prefixed with underscore on the generate HTML id
2011-11-27 23:41:23 +03:00
lest
bc81ba2451
fix label with block in erb
2011-11-27 16:59:44 +03:00
José Valim
fd86a1b6b0
Rely on a public contract between railties instead of accessing railtie methods directly.
2011-11-23 19:06:45 +00:00
lest
aa491f6a9c
javascript_include_tag should add '.js' to sources that contain '.'
2011-11-22 16:39:07 +03:00
Yehuda Katz
bc04455f10
Merge pull request #3695 from tobiassvn/partial_path_error
...
Meaningful errors for unexpected partial arguments. Fixes #3573
2011-11-19 07:38:22 -08:00
Jon Leighton
603a679e87
Don't html-escape the :count option to translate if it's a Numeric. Fixes #3685 .
2011-11-19 13:28:07 +00:00
Tobias Svensson
771635e858
Meaningful errors for unexpected partial arguments. Fixes #3573
2011-11-19 13:05:57 +00:00
lest
e8d57f361a
_html translation should escape interpolated arguments
2011-11-17 23:07:39 +00:00
Alexander Uvarov
c2b6f63bbe
Fix impractical I18n lookup in nested fields_for
2011-11-17 12:37:00 +06:00
Alexey Vakhov
b5c3987294
Fix and simplify highlight regexp
2011-11-10 11:26:42 +04:00
Jon Leighton
7776055e2d
Revert "Skip test_default_external_works on the CI for Ruby 1.9.3."
...
This reverts commit 10773f94ea .
2011-11-06 10:39:59 +00:00
Jon Leighton
10773f94ea
Skip test_default_external_works on the CI for Ruby 1.9.3.
...
This test is affected by a bug in Ruby 1.9.3p0 and trunk:
http://redmine.ruby-lang.org/issues/5564
Given we cannot fix it for ourselves, it is better to skip for now so
that we will easily see if further failures are introduced.
Jon Leighton is monitoring the bug report and will revert this when a
suitable solution is found (either a new Ruby release or a generic
workaround).
If you are using 1.9.3 in your app and have templates that are not in
UTF-8, you should add a workaround early on in the boot process. For
example, if your templates are Shift_JIS encoded, then add the
following in an initializer:
Encoding::Converter.new('Shift_JIS', 'UTF-8')
2011-11-05 16:42:53 +00:00
Vijay Dev
cb06727b6c
add tests for the case where size is explicitly passed to number_field helper
2011-11-04 22:32:40 +05:30
Waseem Ahmad
56207a3f01
Remove 'size' attribute from number_field form helper fixes #3454
...
f.number_field generates <input type="number", size="30"../> which is
invalid HTML5. See: http://dev.w3.org/html5/spec/Overview.html#number-state
2011-11-04 15:03:02 +05:30
Jon Leighton
b5f908a7ad
Stub find_template so that when handle_render_error is called in ActionView::Template, we get to see the actual underlying error rather than a NoMethodError.
...
This shows an encoding bug on Ruby 1.9.3.
2011-11-03 19:08:09 +00:00
Santiago Pastorino
408bbfe6bd
Merge pull request #3435 from MDaubs/action_pack_deprecations
...
Fix deprecation warnings in action pack render tests
2011-10-26 00:36:36 -07:00
Aaron Patterson
450257c95b
properly handle lists of lists. Thanks @adrianpike for reporting!
2011-10-25 17:44:17 -07:00
Matthew Daubert
f7e56a3ab6
Fix deprecation warnings in action pack test suite due to passing template formats in the template name.
2011-10-25 15:11:45 -04:00
Arun Agrawal
244dcfea47
ActionPack test fix for RBX
2011-10-24 14:11:20 +05:30
Mac Martine
20728f551c
remove user-specified delimiter from start when no area code is present (in number_to_phone)
2011-10-12 17:06:44 -07:00
José Valim
501e5b0d7f
Merge pull request #3196 from avakhov/patch-am-av-tests-2
...
Improve tests method for ActionView::TestCase and ActionMailer::TestCase
2011-10-09 02:15:19 -07:00
Liborio Cannici
114218e4da
Fixes an issue when creating a date select with too many options.
...
Inspired by dlt 9e61563474
Closes #239 .
Conflicts:
actionpack/CHANGELOG
2011-10-08 18:02:15 -07:00
Aaron Patterson
7f64e47277
just check to see that the first item in the list is an array
2011-10-07 16:56:18 -07:00
Santiago Pastorino
fd8f0b2978
stylesheet_link_tag('/stylesheets/application') and similar helpers doesn't throw Sprockets::FileOutsidePaths exception anymore
2011-10-05 15:41:28 -02:00
José Valim
c495bfc127
Do not require railtie as it messes up Rails.application setup.
2011-10-05 15:31:38 +02:00
José Valim
87c57bb88f
Fix the lame config.action_controller.present? check scattered throughout assets_path.
...
Conflicts:
actionpack/test/template/sprockets_helper_test.rb
2011-10-05 02:35:43 +02:00
José Valim
5711a35ad8
Ensure default_asset_host_protocol is respected, closes #2980 .
2011-10-05 02:08:02 +02:00
Alexey Vakhov
8df7fe3f63
normalize arg for ActionView::TestCase tests method
2011-10-03 14:27:42 +04:00
Santiago Pastorino
64b0c8888b
javascript_path and stylesheet_path should honor the asset pipelining
2011-09-28 20:13:24 -03:00
Wen-Tien Chang
3058d13a06
Make button_to helper support "form" option which is the form attributes.
2011-09-29 01:40:15 +08:00
Christos Zisopoulos
b8ea31540a
Correctly override image_path in sprockets rails_helper
2011-09-26 18:45:49 +02:00
Santiago Pastorino
d6cff93152
Just assert_equal here
2011-09-26 12:20:52 -03:00
Santiago Pastorino
2c3a5075b6
Merge pull request #3135 from christos/respect_assets_digest_value
...
Give precedence to `config.digest = false` over the existence of manifest.yml asset digests
2011-09-26 08:16:02 -07:00
Santiago Pastorino
b855327443
image_tag should use /assets if asset pipelining is turned on. Closes #3126
2011-09-26 11:20:30 -03:00
Christos Zisopoulos
793e9da63d
Give precedence to config.digest = false over manifest.yml asset digests
2011-09-26 14:27:04 +02:00
José Valim
933ba0cf6e
Merge pull request #3124 from avakhov/patch-6-stylesheet-link
...
escape options for the stylesheet_link_tag method
2011-09-25 04:03:13 -07:00
Alexey Vakhov
5ffa69793f
escape options for the stylesheet_link_tag method
2011-09-25 09:40:49 +04:00