Eugene Pimenov
bdfa733d04
Ensure auto_link doesnt linkify URLs in the middle of a tag [ #1523 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-03-10 16:52:21 +00:00
rpheath
1ab2ff58ed
Fixed number_to_phone to work with 7 digit numbers [ #2176 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-03-09 12:53:44 +00:00
Jeremy Kemper
1c36172c13
Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.
...
[#1617 state:resolved]
2009-03-08 13:11:58 -07:00
Yury Kotlyarov
9b8cde41bc
Remove duplicate test [ #2136 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-03-08 15:50:38 +00:00
Joshua Peek
ea8488caef
Fixed simplified render with nested models [ #2042 state:resolved]
2009-03-07 14:05:18 -06:00
Lawrence Pit
77f7d98e38
submit_tag with confirmation and disable_with [ #660 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-03-07 13:29:35 -06:00
Dan Barry
45494580d9
Ensure Active Record error related view helpers escape the message [ #1280 state:resolved] [Inge Jørgensen, Dan Barry]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-03-07 18:55:19 +00:00
Mike Gunderloy
dcd9c7f58e
Fix spelling in test name.
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-02-28 15:35:03 +00:00
Eloy Duran
3d1d422b8b
Pass a custom form builder on to nested fields_for calls. [ #2023 status:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-02-27 13:56:27 +01:00
thedarkone
85df4841dd
Template without a known template handler should only be reachable through its exact path. [ #2027 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-24 10:41:45 -06:00
Joshua Peek
f8ea9f85d4
Fix templates reloading in development when using custom view path [ #2012 state:resolved]
2009-02-19 20:55:56 -06:00
Tekin Suleyman
1525f3816e
Enhanced form option helpers to add support for disabled option tags and use of anonymous functions for specifying selected and disabled values from collections.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-02-14 14:51:35 +13:00
Tekin Suleyman
d206b80a36
DRY up form option helper tests
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2009-02-14 14:51:35 +13:00
Sam Oliver
f04346d8b9
Stops date select helpers from defaulting the selected date to today if :prompt option has been used
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#561 state:resolved]
2009-02-13 22:04:27 +13:00
Lance Ivy
5dbc9d40a4
Changed API of NestedAttributes to take an array, or hash with index keys, of hashes that have the id on the inside of the attributes hash and updated the FormBuilder to produce such hashes. Also fixed NestedAttributes with composite ids.
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com >
[#1892 state:committed]
2009-02-13 21:47:56 +13:00
thedarkone
3942cb406e
Port fast reloadable templates from rails-dev-boost.
2009-02-12 13:04:12 -06:00
Joshua Peek
f400209084
Move checkbox hidden field before the actual checkbox so the actual value doesn't get clobbered [ #1863 state:resolved]
2009-02-10 13:10:46 -06:00
Andrew White
199e750d46
Fix some edge cases when the same template is called with different local assigns
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-10 12:09:49 -06:00
David Heinemeier Hansson
7527cdf79c
Added partial scoping to TranslationHelper#translate, so if you call translate('.foo') from the people/index.html.erb template, you'll actually be calling I18n.translate(people.index.foo) [DHH]
2009-02-10 12:57:12 +01:00
Andrew White
893e9eb995
Improve view rendering performance in development mode and reinstate template recompiling in production [ #1909 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-09 14:20:30 -06:00
José Valim
50f51ff950
Render implicit html template when xhr request now supports localization [ #1886 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-07 11:37:02 -06:00
José Valim
24f2e676f7
Added support to dashed locales in templates localization [ #1888 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2009-02-06 23:23:50 -06:00
Eugene Pimenov
b1c1e3deb7
Ruby 1.9 compat: change encoding of action_view/renderable to utf-8, so erb templates can use utf-8 properly
...
[#1881 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-02-06 11:03:41 -08:00
Pascal Ehlert
d15d53cf81
Allowing an object to be passed explicitly to a fields_for with nested_attributes on one-to-one associations
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1849 state:committed]
2009-02-06 13:26:58 +13:00
David Heinemeier Hansson
6db78e8c02
Added tests from Andrew Whites fix [ #1385 state:committed]
2009-02-05 20:37:57 +01:00
chris finne
b80fa817d4
Fix a syntax error in current_page?() that was prevent matches against URL's with multiple query parameters [ #1868 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2009-02-05 20:31:04 +01:00
Jeremy Kemper
278186534c
Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.
2009-02-03 18:40:22 -08:00
Eloy Duran
ec8f045844
Add support for nested object forms to ActiveRecord and the helpers in ActionPack
...
Signed-Off-By: Michael Koziarski <michael@koziarski.com >
[#1202 state:committed]
2009-02-01 14:44:30 +13:00
Jeremy Kemper
bc94061156
Fix unsorted array comparison
2009-01-31 10:56:16 -08:00
Jon Crawford
8761663a68
Added grouped_options_for_select helper method for wrapping option tags in optgroups. [ #977 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-29 18:00:18 +00:00
Dan Weinand
91eeb0ff11
Using the highlight helper on text with html shouldn't highlight text inside html attributes. [ #1302 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:53:59 +00:00
Daniel Rodríguez Troitiño
9a8e2a059c
Ensure selected option is not ignored for collection_select. [ #1037 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2009-01-28 19:35:18 +00:00
Yaroslav Markin
17db28f1ca
Improve i18n support for number_to_human_size helper:
...
* now using pluralization properly
* storage unit translations moved to number.human.storage_units.units
* introduced number.human.storage_units.format for languages that do not follow "{{number}} {{unit}}" format (Japanese)
NOTE: I18n table changed, you will need to update your translations.
[#1634 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2009-01-27 09:22:00 -08:00
Joshua Peek
a98cd7ca9b
Add localized templates
...
# Default locale
app/views/messages/index.html.erb
# I18n.locale is set to :da (Danish)
app/views/messages/index.da.html.erb
2009-01-25 22:51:21 -06:00
Josh
7260852187
Fix date_select within fields_for with an index [ #1666 state:resolved] [Josh, Frederick Cheung]
...
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com >
2009-01-16 17:23:43 +00:00
Joshua Peek
104898fcb7
Revert to the good old days when AssetTag didn't cause anyone problems
2009-01-02 13:40:23 -06:00
David Heinemeier Hansson
a1fb57aa69
Added :silence option to BenchmarkHelper#benchmark and turned log_level into a hash parameter and deprecated the old use [DHH]
2009-01-01 18:53:16 +01:00
David Heinemeier Hansson
f1e20ce9a7
Merge branch 'master' of git@github.com:rails/rails
2009-01-01 18:13:14 +01:00
David Heinemeier Hansson
49a055dff6
Fixed the AssetTagHelper cache to use the computed asset host as part of the cache key instead of just assuming the its a string [ #1299 state:committed]
2009-01-01 18:12:49 +01:00
Joshua Peek
558ab327b7
Clean up view path cruft and split path implementations into Template::Path and Template::EagerPath
2008-12-29 19:27:19 -06:00
Sam Oliver
70456aed31
Use I18n for date/time select helpers prompt text [ #561 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-12-22 15:13:39 +00:00
Sam Oliver
389534c38c
Added prompt options to date helpers [ #561 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-12-21 23:24:05 +00:00
Pratik Naik
462c75b60c
Fix duplicate test name [ #1058 state:resolved] [Dave Rothlisberger, Pratik Naik]
2008-12-20 18:08:54 +00:00
Joshua Peek
148aff2097
Set template_format to html inside rjs templates so renders within it default to html.
2008-12-04 17:20:51 -06:00
Andrew Kaspick
bda55f82c6
allow options to be passed to email address auto generation
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1418 state:committed]
2008-12-01 19:27:03 +01:00
Joshua Peek
9fccf72725
fixed template recompile issue with previous commit and add some better tests so we can make sure it doesn't happen again
2008-11-28 14:31:54 -06:00
Joshua Peek
9fc23745f1
Reinstate "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading."
2008-11-28 11:18:28 -06:00
David Heinemeier Hansson
5fa0457542
Revert "Super lazy load view paths in development mode (no indexing or caching at all). Switch layout finders to use view path api to take advantage of cache." as it killed dev mode reloading.
...
This reverts commit 4d910b0333 .
2008-11-27 21:04:24 +01:00
David Heinemeier Hansson
6fa9957e0e
Merge branch 'master' of git@github.com:rails/rails
2008-11-27 18:59:33 +01:00
David Heinemeier Hansson
229f959d15
Added the option to declare an asset_host as an object that responds to call (see http://github.com/dhh/asset-hosting-with-minimum-ssl for an example) [DHH]
2008-11-27 17:51:33 +01:00