miloops
|
570f5aad66
|
Allow date helpers to ignore date hidden field tags. [#503 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-07-04 01:06:22 +01:00 |
|
Pratik Naik
|
029a745584
|
Ensure FormBuilder date helpers respects html_options. [#506 state:resolved] [Pascal Ehlert]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
2008-06-29 00:36:31 +01: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
|
0bdb7d353b
|
Work with @output_buffer instead of _erbout
|
2008-06-02 21:32:50 -07:00 |
|
gbuesing
|
e30a263bf1
|
InstanceTag#default_time_from_options overflows to DateTime
|
2008-05-18 10:59:24 -05:00 |
|
gbuesing
|
bfbf03ecee
|
ActionView::InstanceTag#default_time_from_options with hash args uses Time.current as default; respects hash settings when time falls in system local spring DST gap
|
2008-05-08 23:40:25 -05:00 |
|
gbuesing
|
66728087d0
|
Adding Date.current, which returns Time.zone.today if config.time_zone is set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default
|
2008-05-08 22:48:47 -05:00 |
|
gbuesing
|
f757f58388
|
select_datetime and select_time default to Time.zone.now when config.time_zone is set
|
2008-04-21 00:40:04 -05:00 |
|
gbuesing
|
c2c779044f
|
datetime_select defaults to Time.zone.now when config.time_zone is set
|
2008-04-21 00:08:45 -05:00 |
|
Joshua Peek
|
17d4164a16
|
Introduce ActionView::TestCase for testing view helpers.
|
2008-04-19 13:08:24 -05:00 |
|
Michael Koziarski
|
4673c47d7b
|
Allow html_options to be passed to all the date helpers. Closes #6000 [h-lame, Jakob S]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-03-02 04:40:54 +00:00 |
|
Michael Koziarski
|
cd937e6ad7
|
Make date_helper use tag and content_tag. Move to assert_dom_equal instead of assert_equal to avoid being dependent on hash ordering. Closes #11131 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-20 04:23:18 +00:00 |
|
Geoff Buesing
|
3025ff28cc
|
Tests for distance_of_time_in_words with TimeWithZone instances. Closes #10914 [ernesto.jimenez]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8883 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-02-16 21:16:03 +00:00 |
|
Jeremy Kemper
|
9d755f1983
|
require abstract_unit directly since test is in load path
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8564 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-05 13:32:06 +00:00 |
|
Jeremy Kemper
|
001fe6a435
|
Fix failing date helper test. Closes #10664 [Wesley Moxam]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8526 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2008-01-02 18:09:52 +00:00 |
|
Rick Olson
|
d7aa32d5d0
|
Update tests for ActiveSupport's JSON escaping change. [rick]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8034 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-10-26 05:32:30 +00:00 |
|
Jeremy Kemper
|
71b77a3d6a
|
Improve helper test coverage. Closes #7215, #7233, #7234, #7235, #7236, #7237, #7238.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7011 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-06-13 01:20:55 +00:00 |
|
David Heinemeier Hansson
|
0cf79f07b0
|
Fixed that DateHelper#date_select should set the day to the 1st when its a hidden option and the month is visible (or invalid dates can be produced) [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6911 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-05-31 16:38:36 +00:00 |
|
Jeremy Kemper
|
9cc32a9ec8
|
Give time_ago_in_words test some DST slop.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-03-11 12:29:20 +00:00 |
|
Jeremy Kemper
|
d6d94c7377
|
date_select and datetime_select take a :default option. Closes #7052.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6080 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 16:44:44 +00:00 |
|
Jeremy Kemper
|
0eacdcf9a3
|
Use a consistent load path to avoid double requires. Fix some scattered Ruby warnings.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-28 07:16:55 +00:00 |
|
Rick Olson
|
4733182e56
|
Fix #distance_of_time_in_words to report accurately against the Duration class. #7114 [eventualbuddha]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5973 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-17 06:28:57 +00:00 |
|
Jeremy Kemper
|
a0b1ac2ef8
|
Fix date helper test when run on 31st day of the month! Closes #6907. [mutru]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5826 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2007-01-01 01:36:18 +00:00 |
|
Jeremy Kemper
|
7f32a85464
|
Fix date helper :include_blank regression. Closes #3811. [mhw]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5759 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-20 18:39:41 +00:00 |
|
Jeremy Kemper
|
07423bed4b
|
Bob's raining patches: fixes date_helper bugs and usability issues. References #3811.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-12-06 19:15:24 +00:00 |
|
David Heinemeier Hansson
|
17f7eaa141
|
Improved resolution of DateHelper#distance_of_time_in_words for better precision (closes #5994) [Bob Silva]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-09-04 17:00:37 +00:00 |
|
David Heinemeier Hansson
|
8eaf479156
|
Added months and years to the resolution of DateHelper#distance_of_time_in_words, such that "60 days ago" becomes "2 months ago" (closes #5611) [pjhyett@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4674 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-08-05 21:34:18 +00:00 |
|
Michael Koziarski
|
543f789240
|
Fix failing test due to hard coded year
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3408 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2006-01-13 07:08:55 +00:00 |
|
Marcel Molina
|
139e2c4aad
|
Change form_for and fields_for method signatures to take object name and object as separate arguments rather than as a Hash.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-12-02 00:37:33 +00:00 |
|
David Heinemeier Hansson
|
947cec29d5
|
Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-11-13 11:13:11 +00:00 |
|
David Heinemeier Hansson
|
8d9ee72a78
|
Fixed more Windows tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2659 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-10-16 22:08:11 +00:00 |
|
David Heinemeier Hansson
|
b62243a5cc
|
Added :disabled option to all data selects that'll make the elements inaccessible for change #2167, #253 [eigentone]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-09-11 05:58:00 +00:00 |
|
Jamis Buck
|
82f44f3144
|
Added :use_short_month option to select_month helper to show month names as abbreviations
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2033 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-08-22 14:47:16 +00:00 |
|
David Heinemeier Hansson
|
c6ab8f5706
|
Added :field_name option to DateHelper#select_(year|month|day) to deviate from the year/month/day defaults #1266 [Marcel Molina]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1613 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-07-02 18:38:22 +00:00 |
|
Jeremy Kemper
|
959707bfb6
|
r1335@iwill: jeremy | 2005-06-17 11:41:50 -0700
Ticket 1458 - distance_of_time_in_words
r1336@iwill: jeremy | 2005-06-17 11:44:50 -0700
Update changelog
r1337@iwill: jeremy | 2005-06-17 11:45:44 -0700
Applied patch.
r1361@iwill: jeremy | 2005-06-17 11:48:02 -0700
Merge changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1449 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-17 13:42:23 +00:00 |
|
Jamis Buck
|
ed7bfc9662
|
Allow distance_of_time_in_words to work with any value that responds to #to_time (like dates) #969
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1420 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-06-14 15:19:03 +00:00 |
|
David Heinemeier Hansson
|
202d5c0751
|
Added support for descending year values in DateHelper#select_year, like select_year(Date.today, :start_year => 2005, :end_year => 1900), which would count down from 2005 to 1900 instead of the other way #1274 [nwoods@mail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1320 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-05-19 17:40:02 +00:00 |
|
David Heinemeier Hansson
|
8e8bf37aa9
|
Fixed DateHelper to return values on the option tags such that they'll work properly in IE with form_remote_tag #1024 [rscottmace@gmail.com]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1184 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-17 09:44:28 +00:00 |
|
David Heinemeier Hansson
|
c29db9f210
|
Added minute_step as an option to select_minute (and the helpers that use it) to jump in larger increments than just 1 minute. At 15, it would return 0, 15, 30, 45 options #1085 [ordwaye@evergreen.edu]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1154 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-13 05:15:41 +00:00 |
|
David Heinemeier Hansson
|
7d09b8d723
|
Fixed include_blank for select_hour/minute/second #527 [edward@debian.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1055 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-04-02 07:54:01 +00:00 |
|
David Heinemeier Hansson
|
520dae295b
|
Added include_seconds option as the third parameter to distance_of_time_in_words which will render "less than a minute" in higher resolution ("less than 10 seconds" etc) #944 [thomas@fesch.at]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1010 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-03-26 22:00:23 +00:00 |
|
David Heinemeier Hansson
|
ce58e5cd06
|
Added DateHelper#select_time and DateHelper#select_second #373 [Scott Baron]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-02 15:32:01 +00:00 |
|
David Heinemeier Hansson
|
3b05d412de
|
Fixed some test cases
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2005-01-01 16:41:14 +00:00 |
|
David Heinemeier Hansson
|
db6179d12f
|
Fixed DateHelper#date_select so that you can pass include_blank as an option even if you don't use start_year and end_year #59 [what-a-day]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-15 12:47:50 +00:00 |
|
David Heinemeier Hansson
|
0990c1309d
|
Fixed all helpers so that they use XHTML compliant double quotes for values instead of single quotes [htonl/bitsweat]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-12-12 11:31:54 +00:00 |
|
David Heinemeier Hansson
|
db045dbbf6
|
Initial
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
|
2004-11-24 01:04:44 +00:00 |
|