Joshua Peek
8aeed003f5
prototype and scripty helpers require json
2008-11-24 12:17:07 -06:00
Joshua Peek
426a86ab1e
prefer autoloaded html scanner
2008-11-24 10:20:41 -06:00
Joshua Peek
f0f07c6427
prefer autoloading Mime::Type
2008-11-24 10:05:15 -06:00
Jeremy Kemper
2dd0ec48a5
Autoload HTML::Document and sanitizers
2008-11-23 19:12:00 -08:00
Joshua Peek
31ce92f7b5
Use autoload instead of explicit requires for ActionController
2008-11-23 16:35:47 -06:00
Joshua Peek
d75a234501
simplify console with helpers
2008-11-23 15:15:20 -06:00
Yaroslav Markin
d36158794b
Add i18n for number_to_human_size() helper storage units. Translation key is number.human.storage_units.
...
[#1448 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-11-23 13:11:59 -08:00
Joshua Peek
bc4d05b244
A back support for legacy TemplateHandler#render API
2008-11-23 13:57:01 -06:00
Joshua Peek
2c01f2b4e9
use autoload instead of explicit requires for ActionView
2008-11-23 13:42:07 -06:00
David Heinemeier Hansson
f42c77f927
Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
2008-11-22 18:06:08 +01:00
Aaron Batalion
e54c33bfc8
need to make sure the asset type is cached with it in Cache.. name is sufficient, not self
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-11-19 15:56:38 -08:00
Aaron Batalion
d7f4921a9a
Fixed asset host to not cache objects [ #1419 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-19 17:29:09 -06:00
David Heinemeier Hansson
130fe74d17
Changed the default of ActionView#render to assume partials instead of files when not given an options hash [DHH]
2008-11-19 14:00:16 +01:00
Luke Melia
60d6f25517
Fix rendering html partial via inline render when with :js format [ #1399 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-18 15:19:16 -06:00
Hongli Lai (Phusion)
337c361e26
Register 'checked' as an HTML boolean attribute.
...
This way, 'tag :foo, :type => "checkbox", :checked => false' would output
the expected
<input type="checkbox" />
instead of the old
<input type="checkbox" checked="false" />
The latter would result in a checkbox that's initially checked.
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-11-18 11:50:31 -08:00
Michael Koziarski
19e9a1f47d
Remove duplicate distribution of prototype and scriptaculous.
...
This was previously needed by define_javascript_functions which has been removed for a while.
2008-11-18 20:11:55 +01:00
Michael Koziarski
b579184819
Remove mention of long-dead define_javascript_functions
2008-11-18 20:11:55 +01:00
Thomas Fuchs
252ca3e3e7
Update Prototype to 1.6.0.3 and update script.aculo.us to 1.8.2
2008-11-18 19:24:22 +01:00
Sven Fuchs
12118963ac
use :en as a default locale (in favor of :en-US)
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-18 14:23:53 +01:00
Luke Melia
75fb8dfb99
Prevent assert_template failures when a render :inline is called before rendering a file-based template [ #1383 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-11-17 22:09:22 -06:00
David Heinemeier Hansson
4b33fae1f5
Fixed RedCloth and BlueCloth shouldn't preload. Instead just assume that they're available if you want to use textilize and markdown and let autoload require them [DHH]
2008-11-17 18:31:36 +01:00
Jeremy Kemper
eeea1a26ec
Merge branch 'master' into testing
2008-11-15 12:21:04 -08:00
Mislav Marohnić
4f984c9d0e
auto_link helper: add intelligent ending closing bracket handling. add new tests and reorder new ones for readability
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1353 state:committed]
2008-11-15 18:30:17 +01:00
Mislav Marohnić
c6c5cd5541
refactor autolink helper. change tests to expect HTML-escaped URLs
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
2008-11-15 18:30:01 +01:00
Hongli Lai (Phusion)
4e9abdd7f1
Tag helper should output an attribute with the value 'false' instead of omitting the attribute, if the associated option is false but not nil.
2008-11-13 21:55:58 +01:00
Jeremy Kemper
07fe3370f8
Check whether last arg is a Hash instead of duck-typing against []
2008-11-07 21:20:26 -05:00
Jeremy Kemper
0994d11f26
Merge branch 'master' into testing
2008-11-07 19:55:29 -05:00
Jeremy Kemper
c77e6ace66
Check whether last arg is a Hash instead of duck-typing against []
2008-11-07 17:46:03 -05:00
Jeremy Kemper
c82e8e1f48
Move controller assertions from base TestCase to AC:: and AV::TestCase
2008-11-07 15:42:34 -05:00
Rich Manalang
d3ec1d3c22
auto_link view helper was failing on URLs with colons after a query param
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1341 state:committed]
2008-11-07 19:33:18 +00:00
Vladimir Dobriakov
5fad229e43
Fixed that FormTagHelper generates illegal html if name contains e.g. square brackets [ #1238 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-04 18:24:52 +01:00
Bernardo de Pádua
b2cd318c2e
Fix regression bug that made date_select and datetime_select raise a Null Pointer Exception when a nil date/datetime was passed and only month and year were displayed [ #1289 state:committed]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-11-04 18:15:54 +01:00
Pratik Naik
b047929c14
Merge with docrails
2008-11-02 04:02:40 +05:30
Joshua Peek
ec38c84ce1
Dup local assigns for partial collections so nil values doesn't get overwritten [ #1250 state:resolved]
2008-10-30 15:07:47 -05:00
Ryan Bates
4ad5aa9a39
Ensure @content_for_* is checked before yielding to block in render :layout [ #8994 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-10-28 17:31:33 -05:00
David Heinemeier Hansson
1df157cd38
Merge branch 'master' of git@github.com:rails/rails
2008-10-28 17:10:52 +01:00
Joshua Peek
ac50ee0edf
Track rendered templates in stack so the current template can always be accessed. Added ActionView::Base#template to access the template object.
2008-10-28 11:06:08 -05:00
David Heinemeier Hansson
3e54a9a689
A little less hokus pokus
2008-10-28 16:51:08 +01:00
Erik Andrejko
ef9b6b5cba
modified current_page? to ignore extra parameters unless specified in options
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#805 state:committed]
2008-10-26 19:14:45 +01:00
David Heinemeier Hansson
2c7abe1b56
Fixed bug with asset timestamping when using relative_url_root (Joe Goldwasser) [ #1265 status:committed]
2008-10-26 16:50:18 +01:00
Pratik Naik
a03e2b356c
Merge with docrails. Also add a rake task to generate guides in your rails application :
...
rake doc:guides
The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse.
2008-10-21 18:33:40 +01:00
Pratik Naik
a5cdb7a813
Remove stuff that was deprecated in 2-1-stable
2008-10-21 11:34:56 +01:00
David Heinemeier Hansson
1abdc8752d
Added inline builder yield to atom_feed_helper tags where appropriate (Sam Ruby) [ #8994 status:committed]
2008-10-13 19:52:37 +02:00
Matthew M. Boedicker
42cbd710bb
Add support for xml processing instructions in atom_feed_helper [ #926 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-13 18:46:32 +02:00
Andrew Kaspick
dce6ade4cd
Ensure select_tag#name attribute uses [] when :multiple is true. [ #1146 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-07 15:17:22 +01:00
Tarmo Tänav
51b986619d
Implement submit_to_remote as a wrapper around a more generic button_to_remote
...
Removed the "return false" from submit_to_remote onclick end as
button input elements have no default behavior to cancel.
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-07 00:12:20 +01:00
madlep
8e50f0f96e
Fix image_tag behavior on windows. [ #1085 state:resolved]
...
Signed-off-by: Pratik Naik <pratiknaik@gmail.com >
2008-10-06 23:43:41 +01:00
Pratik Naik
a2932784bb
Merge docrails
2008-10-05 22:16:26 +01:00
Pratik Naik
4f53db0096
Move controller ivar copying to a separate method
2008-10-05 14:01:00 +01:00
Andrew Kaspick
8c105ee0c8
Add options to field_set_tag
...
Signed-off-by: Michael Koziarski <michael@koziarski.com >
[#1116 state:committed]
2008-09-29 17:47:29 +02:00