aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view
Commit message (Collapse)AuthorAgeFilesLines
* r2495@sedna: jeremy | 2005-05-27 22:07:18 -0700Jeremy Kemper2005-06-121-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Branch to have scaffold use new render methods r2496@sedna: jeremy | 2005-05-28 10:50:51 -0700 axe unused process_request method r2497@sedna: jeremy | 2005-05-28 10:51:58 -0700 sanity assertions in process method check that @controller, @request, @response are set r2498@sedna: jeremy | 2005-05-28 10:53:42 -0700 clean up escaping. use instance_variable_get instead of instance_eval. put id in form action instead of hidden input (like the generated scaffolding) r2499@sedna: jeremy | 2005-05-28 10:54:46 -0700 clean up interpolation, remove tabs from stylesheet r2500@sedna: jeremy | 2005-05-28 10:56:40 -0700 modernize dynamic scaffolding. use params[:id] instead of @params[id]. use consolidated render method instead of render_action, render_file, etc. use builtin inflections rather than module methods. r2501@sedna: jeremy | 2005-05-28 11:00:26 -0700 modernize generated scaffolding. use new-style assertions; use params[:id] instead of @params[id]; use consolidated render method instead of render_* r2542@sedna: jeremy | 2005-06-12 02:24:06 -0700 use :id => model instead of :id => model.id. clean up the form helper method. use flash[:notice] instead of flash['notice']. r2543@sedna: jeremy | 2005-06-12 02:33:22 -0700 whitespace r2544@sedna: jeremy | 2005-06-12 02:56:57 -0700 update changelogs r2545@sedna: jeremy | 2005-06-12 03:26:23 -0700 test dynamic form help when @post is not a new record r2546@sedna: jeremy | 2005-06-12 03:44:14 -0700 touch up TestCase#process sanity assertions git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1404 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made Action View work with the new render :file/:partial style from the ↵David Heinemeier Hansson2005-06-021-2/+15
| | | | | | controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1379 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Include flash in the list of attributes with accessors in the viewDavid Heinemeier Hansson2005-05-201-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1334 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed escaping of :method option in remote_form_tag #1218 [Rick Olson]David Heinemeier Hansson2005-05-191-1/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1328 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Serbia and Montenegro to the country_select #1239 [todd@robotcoop.com]David Heinemeier Hansson2005-05-191-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1323 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that compute_public_path should recognize external URLs, so ↵David Heinemeier Hansson2005-05-191-1/+1
| | | | | | image_tag("http://www.example.com/images/icon.gif") is not prefixed with the relative url path #1254 [victor-ronr-trac@carotena.net] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1321 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for descending year values in DateHelper#select_year, like ↵David Heinemeier Hansson2005-05-191-6/+10
| | | | | | 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
* Ajax docing #1282 [Dee.Zsombor@gmail.com]David Heinemeier Hansson2005-05-191-0/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1318 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that FormHelper#checkbox should return a checked checkbox if the value ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | is the same as checked_value #1286 [Florian Weber] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1317 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed Form.disable in Prototype #1317 [Wintermute]David Heinemeier Hansson2005-05-191-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1311 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added accessors to logger, params, response, session, and headers from the ↵David Heinemeier Hansson2005-05-191-0/+2
| | | | | | view, so you can write <% logger.info "stuff" %> instead of <% @logger.info "others" %> -- more consistent with the preferred way of accessing these attributes and collections from the controller git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1307 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for POST data in form of YAML or XML, which is controller ↵David Heinemeier Hansson2005-05-141-1/+1
| | | | | | through the POST_DATA_MARSHAL header git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1304 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that render_partial_collection should always return a string (and not ↵David Heinemeier Hansson2005-05-131-1/+2
| | | | | | sometimes an array, despite <%= %> not caring) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1302 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Go straight to the class for asset_hostDavid Heinemeier Hansson2005-05-091-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1299 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added TextHelper#sanitize that can will remove any Javascript handlers, ↵David Heinemeier Hansson2005-05-091-0/+55
| | | | | | blocks, and forms from an input of HTML. This allows for use of HTML on public sites, but still be free of XSS issues. #1277 [Jamis Buck] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1298 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed RAILS_ASSET_HOST to become ActionController::Base.asset_hostDavid Heinemeier Hansson2005-05-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1289 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that both AssetHelper#stylesheet_link_tag and ↵David Heinemeier Hansson2005-05-031-2/+7
| | | | | | AssetHelper#javascript_include_tag now accept an option hash as the last parameter, so you can do stuff like: stylesheet_link_tag "style", :media => "all" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1281 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added FormTagHelper#image_submit_tag for making submit buttons that uses imagesDavid Heinemeier Hansson2005-05-031-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1280 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option of specifying a RAILS_ASSET_HOST that will then be used by ↵David Heinemeier Hansson2005-05-031-2/+2
| | | | | | all the asset helpers. This enables you to easily offload static content like javascripts and images to a separate server tuned just for that. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1279 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dont benchmark if the logger has been turned offDavid Heinemeier Hansson2005-05-021-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1269 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation #1214David Heinemeier Hansson2005-04-301-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed missing id uniqueness in FormTag#radio_button #1207 [Jarkko]David Heinemeier Hansson2005-04-301-0/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1253 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added BenchmarkHelper that can measure the execution time of a block in a ↵David Heinemeier Hansson2005-04-271-0/+22
| | | | | | template and reports the result to the log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1240 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update to Prototype 1.2.1Sam Stephenson2005-04-191-3/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1228 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* More documentation #1148 [Alisdair McDiarmid]David Heinemeier Hansson2005-04-191-2/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed stringification on all assigned hashes. The sacrifice is that ↵David Heinemeier Hansson2005-04-191-1/+1
| | | | | | assigns[:person] wont work in testing. Instead assigns["person"] or assigns(:person) must be used. In other words, the keys of assigns stay strings but weve added a method-based accessor to appease the need for symbols. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that you can now pass an alternative :href option to ↵David Heinemeier Hansson2005-04-181-3/+3
| | | | | | link_to_function/remote in order to point to somewhere other than # if the javascript fails or is turned off. You can do the same with form_remote_tag by passing in :action. #1113 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1200 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update to Prototype 1.2.0Sam Stephenson2005-04-181-87/+192
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecated the majority of all the testing assertions and replaced them with ↵David Heinemeier Hansson2005-04-171-2/+2
| | | | | | a much smaller core and access to all the collections the old assertions relied on. That way the regular test/unit assertions can be used against these. Added documentation about how to use it all. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed DateHelper to return values on the option tags such that they'll work ↵David Heinemeier Hansson2005-04-172-15/+15
| | | | | | 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
* Fixed FormTagHelper#check_box to respect checked #1049 [DelynnB]David Heinemeier Hansson2005-04-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1183 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added Element.toggle, Element.show, and Element.hide to the prototype ↵David Heinemeier Hansson2005-04-172-15/+28
| | | | | | javascript library. Toggle.display has been deprecated, but will still work #992 [Lucas Carlson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1181 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added AssetTagHelper#image_path, AssetTagHelper#javascript_path, and ↵David Heinemeier Hansson2005-04-171-5/+27
| | | | | | AssetTagHelper#stylesheet_path #1110 [Larry Halff] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1176 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Changed render_partial to take local assigns as the second parameter instead ↵David Heinemeier Hansson2005-04-161-5/+16
| | | | | | of an explicit object and then the assigns git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1170 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed partials handlingDavid Heinemeier Hansson2005-04-162-4/+24
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1169 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added submit_to_remote that allows you to trigger an Ajax form submition at ↵David Heinemeier Hansson2005-04-131-0/+14
| | | | | | the click of the submission button, which allows for multiple targets in a single form through the use of multiple submit buttons #930 [yrashk@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :confirm option to link_to_remote just like link_to has #1082 ↵David Heinemeier Hansson2005-04-131-1/+2
| | | | | | [yrashk@fp.org.ua] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1156 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added minute_step as an option to select_minute (and the helpers that use ↵David Heinemeier Hansson2005-04-131-1/+2
| | | | | | 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
* Improved tests for NumberHelperDavid Heinemeier Hansson2005-04-131-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1151 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made error_messages_for take a symbol as object_nameDavid Heinemeier Hansson2005-04-121-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1148 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Moved TextHelper#human_size to NumberHelper#number_to_human_size, but kept ↵David Heinemeier Hansson2005-04-122-20/+22
| | | | | | an deprecated alias to the old method name git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1147 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed spelling of delimiter #1058David Heinemeier Hansson2005-04-101-14/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1134 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that radio buttons shouldn't have a default size attribute #1074 ↵David Heinemeier Hansson2005-04-101-3/+4
| | | | | | [hendrik@mans.de] Added ActionView::Helpers::InstanceTag::DEFAULT_RADIO_OPTIONS that contains a hash of default options for radio buttons #1074 [hendrik@mans.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1127 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed syntax errorDavid Heinemeier Hansson2005-04-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update to the helper to abstract delimeting a number #1015David Heinemeier Hansson2005-04-071-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1111 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added JavascriptHelper#periodically_call_remote in order to create areas of ↵David Heinemeier Hansson2005-04-072-0/+38
| | | | | | a page that update automatically at a set interval #945 [Jon Tirsen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed autolinking to work better in more cases #1013 [Jamis Buck]David Heinemeier Hansson2005-04-061-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1099 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Made it possible to do text_field :account, :name in addition to text_field ↵David Heinemeier Hansson2005-04-041-1/+1
| | | | | | "account", "name" git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1088 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed javascript_include_tag to output type instead of language and conform ↵David Heinemeier Hansson2005-04-031-4/+4
| | | | | | to XHTML #1018 [Rick Olson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added NumberHelper for common string representations like phone number, ↵David Heinemeier Hansson2005-04-021-0/+82
| | | | | | currency, and percentage #1015 [DeLynn] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1071 5ecf4fe2-1ee6-0310-87b1-e25e094e27de