Jeremy Kemper
07fe3370f8
Check whether last arg is a Hash instead of duck-typing against []
2008-11-07 21:20:26 -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
Joshua Peek
28bf2fa038
Protect body ivar from being clobbered by the mailer template assigns
2008-09-28 12:31:45 -05:00
Michael Koziarski
638bd19c7f
Merge branch 'patches' into multibyte
2008-09-22 21:35:35 +02:00
Martin Rehfeld
10380a22a6
Fixed AssetTag cache with with relative_url_root [ #1022 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-09-22 13:23:23 -05:00
Joshua Peek
900fd6eca9
Refactor AssetTagHelper and fix remaining threadsafe issues.
2008-09-22 13:12:32 -05:00
Manfred Stienstra
b8eec5ac33
Remove special 1.9 version of excerpt helper.
2008-09-21 17:28:46 +02:00
Manfred Stienstra
7329990d86
Change all calls to String#chars to String#mb_chars. Remove a exception for Ruby <= 1.9.
2008-09-21 17:27:25 +02:00
Claudio Poli
5f83e1844c
Fixed missing template paths on exception [ #1082 state:resolved]
...
Signed-off-by: Joshua Peek <josh@joshpeek.com >
2008-09-20 22:57:45 -05:00
Michael Koziarski
2d27b82d4c
Remove the country_select helper.
...
We're in no position to mediate disputes on this matter, and the previous change to use ISO 3166 has offended just as many people as the ad-hoc list did.
If you want the old list back you can install the plugin:
ruby script/plugin install git://github.com/rails/country_select.git
2008-09-18 21:30:52 +02:00
Pratik Naik
a17027d13a
Merge docrails
2008-09-13 20:28:01 +01:00
Joshua Peek
70a4f6c2dd
Switched computed public paths cache over to a simple hash w/ mutex
2008-09-10 19:05:53 -05:00
Alastair Brunton
b141624abb
Added image_submit_tag confirm option [status:committed #784 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-10 00:13:35 -05:00
Jose Fernandez
184cf27b12
The FormTagHelper#submit_tag helper will now pass along the original value of the submit button to the params if the :disable_with option is used [status:committed #633 ]
...
Signed-off-by: David Heinemeier Hansson <david@loudthinking.com >
2008-09-10 00:02:23 -05:00
David Heinemeier Hansson
6233628ba0
Stopped logging template compiles as it only clogs up the log
2008-09-09 22:10:39 -05:00
Jeremy Kemper
dc0411fad7
Check for uninitialized instance variables
2008-09-08 19:57:32 -07:00
David Heinemeier Hansson
227ee2ecb4
Use a more sensible resolution on the new millisecond benchmarks
2008-09-05 14:58:34 +02:00
David Heinemeier Hansson
de0e7507de
Changed all benchmarking reports to be in milliseconds
2008-09-05 14:22:57 +02:00
Pratik Naik
6ef35461dc
Merge docrails
2008-09-03 17:58:47 +01:00
Clemens Kofler
a978701f86
More symbols for send and respond_to?.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:22 +02:00
Clemens Kofler
abebdf52a3
Use symbols for send and respond_to?.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:22 +02:00
Clemens Kofler
2e240f0eac
Removed unnecessary Symbol#to_proc from Asset Tag Helper.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-09-03 00:55:22 +02:00
Jeremy Kemper
a1eb4e11c2
Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, but it has since been removed from 1.9.
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
Conflicts:
actionpack/test/controller/layout_test.rb
2008-08-31 13:20:15 -07:00
Joshua Peek
086c3520c4
Moved layout exemption logic into the view
2008-08-31 11:34:46 -05:00
Joshua Peek
8eec694598
Prefix ActionView::Base private methods with an underscore
2008-08-31 10:50:43 -05:00
Pratik Naik
56c2b02f59
Fix AM tests and add tests for rendering logging
2008-08-31 16:29:21 +01:00
Pratik Naik
cdda7defa0
Add lost log messages about template rendering
2008-08-31 15:41:02 +01:00
Pratik Naik
a13d335461
Move layout rendering logic to ActionView::Base
2008-08-31 15:23:45 +01:00
Pratik Naik
a59a3db1f3
Move copying ivar logic from ActionController::Base to ActionView::Base
2008-08-31 03:48:09 +01:00
miloops
367a55e1b8
Allow prototype functions to receive position parameter as a symbol.
...
[#887 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net >
2008-08-30 16:35:25 -07:00