aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/base.rb
Commit message (Collapse)AuthorAgeFilesLines
* documentation project patches, closes #7342, #7319, #7316, #7190 ↵Rick Olson2007-03-271-20/+24
| | | | | | [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated instance variables.Jeremy Kemper2007-03-131-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6399 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Prefer MIME constants to strings. Closes #7707.Jeremy Kemper2007-03-061-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6350 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added .erb and .builder as preferred aliases to the now deprecated .rhtml ↵David Heinemeier Hansson2007-02-201-18/+23
| | | | | | and .rxml extensions [Chad Fowler]. This is done to separate the renderer from the mime type. .erb templates are often used to render emails, atom, csv, whatever. So labeling them .rhtml doesn't make too much sense. The same goes for .rxml, which can be used to build everything from HTML to Atom to whatever. .rhtml and .rxml will continue to work until Rails 3.0, though. So this is a slow phasing out. All generators and examples will start using the new aliases, though. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6178 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* rename #lookup_template_base_path_for to #find_base_path_for in ↵Rick Olson2007-02-061-1/+1
| | | | | | ActionView::Base [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6132 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix #render_file so that TemplateError is called with the correct params and ↵Rick Olson2007-02-051-5/+4
| | | | | | you don't get the WSOD. [Rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6130 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow Controllers to have multiple view_paths instead of a single ↵Rick Olson2007-02-041-13/+19
| | | | | | template_root. Closes #2754 [John Long] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6120 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-6/+8
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Extract template_changed_since? from compile_template? so plugins may ↵Jeremy Kemper2006-11-201-4/+10
| | | | | | override its behavior for non-file-based templates. Closes #6651. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5587 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView::Base.erb_variable accessor names the buffer variable used to ↵Jeremy Kemper2006-11-171-0/+3
| | | | | | render templates. Defaults to _erbout; use _buf for erubis. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5544 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Consistent default handling in ActionView render. Closes #6534.Jeremy Kemper2006-11-021-3/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5411 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* cleanup of local_assigns handling and documentation update (closes #6358) ↵David Heinemeier Hansson2006-10-081-6/+16
| | | | | | [skaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5231 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: @request will be removed after 1.2. Use the request method instead.Jeremy Kemper2006-09-291-5/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5201 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper getters and setters for content type and charset [DHH] Added ↵David Heinemeier Hansson2006-09-171-4/+3
| | | | | | utf-8 as the default charset for all renders. You can change this default using ActionController::Base.default_charset=(encoding) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5129 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Load helpers in alphabetical order for consistency. Resolve cyclic ↵Jeremy Kemper2006-09-121-1/+1
| | | | | | javascript_helper dependency. Closes #6132, closes #6178. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5095 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Backed out of locals hash as it caused trouble with Builder, see ticket for moreDavid Heinemeier Hansson2006-09-061-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added locals hash to partials, which makes for convenient access of some ↵David Heinemeier Hansson2006-09-041-1/+1
| | | | | | times available/some times not variables (closes #5491) [wbruce@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4997 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Tighten rescue clauses. Closes #5985.Jeremy Kemper2006-08-311-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecate direct usage of @params. Update ActionView::Base for instance var ↵Jeremy Kemper2006-08-071-1/+2
| | | | | | deprecation. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4715 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update documentation for erb trim syntax. Closes #5651.Jeremy Kemper2006-07-091-3/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4598 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that real files and symlinks should be treated the same when compiling ↵David Heinemeier Hansson2006-07-051-1/+2
| | | | | | templates (closes #5438) [zachary@panandscan.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4546 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Missing method_key.Jeremy Kemper2006-06-301-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4516 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Retain symbol method key and assign_method_name.Jeremy Kemper2006-06-291-3/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4515 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4732@asus: jeremy | 2006-06-29 13:51:32 -0700Jeremy Kemper2006-06-291-1/+4
| | | | | | | Chop RAILS_ROOT from file path for readability. Preserve non-alphanumeric characters for uniqueness. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4514 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* r4730@asus: jeremy | 2006-06-29 13:13:38 -0700Jeremy Kemper2006-06-291-29/+15
| | | | | | | Avoid naming collision among compiled view methods. Back out AM workaround. References #5520. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4512 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that template extensions would be cached development mode #4624 ↵David Heinemeier Hansson2006-04-061-10/+26
| | | | | | [Stefan Kaes] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4189 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed docsDavid Heinemeier Hansson2006-03-281-4/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActionView: Allow to register a Template handler with a Symbol (dont kill ↵David Heinemeier Hansson2006-03-261-1/+1
| | | | | | markaby) (closes #4328) [murphy@cYcnus.de] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4056 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Performance speedup for ActionController (closes #4174) [Stefan Kaes] ↵David Heinemeier Hansson2006-03-201-14/+20
| | | | | | Includes caching of filter chains -- be on the lookout for problems with that! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3989 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Removed XML argument style for respond_to, so type.xml(object.to_xml) no ↵David Heinemeier Hansson2006-03-181-1/+1
| | | | | | longer works -- it wasnt worth the exception git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3944 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Dots in template path should not trip up rendering (closes #4244) ↵David Heinemeier Hansson2006-03-161-2/+7
| | | | | | [lmarlow@yahoo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added simple alert() notifications for RJS exceptions when ↵Sam Stephenson2006-03-131-0/+5
| | | | | | config.action_view.debug_rjs = true. Set debug_rjs = true for the default development environment. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3856 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Rendering xml shouldnt happen inside any layout. Added class proxying to ↵David Heinemeier Hansson2006-03-131-1/+1
| | | | | | RJS, so you can call page.field.clear("my_field") to generate Field.clear("my_field");. Added :content_type option to render, so you can change the content type on the fly. Do type/subtype reordering of Accept header preferences for xml types (aka make Firefox work with respond_to). CHANGED DEFAULT: The default content type for .rxml is now application/xml instead of type/xml, see http://www.xml.com/pub/a/2004/07/21/dive.html for reason git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added option to render action/template/file of a specific extension (and ↵David Heinemeier Hansson2006-03-121-4/+16
| | | | | | here by template type). This means you can have multiple templates with the same name but a different extension [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3841 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add render(:update) to ActionView::BaseSam Stephenson2006-01-231-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3473 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for new rjs templates which wrap an update_page block.Marcel Molina2005-11-171-23/+66
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Inline commonly-called template presence checks. Closes #2882.Jeremy Kemper2005-11-161-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Only include builtin filters whose filenames match ↵Jeremy Kemper2005-11-131-5/+4
| | | | | | /^[a-z][a-z_]*_helper.rb$/ to avoid including operating system metadata such as ._foo_helper.rb. References #2855. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3007 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added request as instance method to views, so you can do <%= ↵David Heinemeier Hansson2005-11-071-1/+1
| | | | | | request.env["HTTP_REFERER"] %>, just like you can already access response, session, and the likes [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2918 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix spelling errorNicholas Seckar2005-10-171-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2667 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make string-keys locals assigns optionalNicholas Seckar2005-10-171-4/+10
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2665 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Update/clean up AP documentation (rdoc)Jamis Buck2005-10-161-1/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add temporary support for passing locals to render using string keysNicholas Seckar2005-10-161-2/+5
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2630 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Clean up error pages by providing better backtracesNicholas Seckar2005-10-151-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2624 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Improved line number reporting for template errorsNicholas Seckar2005-10-131-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Misc doc fixes (typos/grammar/etc). Closes #2445.Marcel Molina2005-10-121-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2537 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* My life for white spaceDavid Heinemeier Hansson2005-09-281-5/+17
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2393 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Streamline render process, code cleaning. Closes #2294.Nicholas Seckar2005-09-271-54/+122
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2368 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that render :partial would fail when :object was a Hash (due to ↵David Heinemeier Hansson2005-09-091-1/+4
| | | | | | backwards compatibility issues) #2148 [Sam Stephenson] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2160 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Yield @content_for_ variables to templates #2058 [Sam Stephenson]Jamis Buck2005-09-011-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2094 5ecf4fe2-1ee6-0310-87b1-e25e094e27de