aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/active_record_helper.rb
Commit message (Collapse)AuthorAgeFilesLines
* Rename ActiveRecordHelper to ActiveModelHelperYehuda Katz2009-07-201-285/+0
|
* Update some tests and add a to_model to form helpersYehuda Katz2009-07-201-3/+3
|
* Define ActiveModel API ComplianceYehuda Katz2009-07-201-5/+19
| | | | | | - Define to_model on AR - Define to_model on ActiveModel::APICompliant - Update test fixtures to be API Compliant - Start using to_model in AP
* Use errors[field] instead of errors.on(field)Jeremy Kemper2009-06-171-48/+11
|
* ActionPack components should no longer have undeclared dependencies.Yehuda Katz + Carl Lerche2009-06-081-0/+2
| | | | | | | * Tests can be run in isolation * Dependencies added * A few tests modified to avoid depending on AS deps not depended on my files they were testing
* Active Support dependenciesJeremy Kemper2009-05-141-0/+1
|
* Object names with underscore do the wrong lookup in I18n on error_messages_for.José Valim2009-04-051-1/+1
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> [#2390 state:committed]
* Ensure Active Record error related view helpers escape the message [#1280 ↵Dan Barry2009-03-071-2/+2
| | | | | | state:resolved] [Inge Jørgensen, Dan Barry] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use symbols for send and respond_to?.Clemens Kofler2008-09-031-6/+6
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Cleaned up ActiveRecord i18n scopingIain Hecker2008-08-141-4/+4
|
* Refactored TextHelper#truncate, highlight, excerpt, word_wrap and auto_link ↵Clemens Kofler2008-07-271-1/+1
| | | | | | to accept options hash [#705 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* error_message_on takes an options hash instead of ordered parameters [#704 ↵Clemens Kofler2008-07-271-14/+32
| | | | | | state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge branch 'master' into i18n-mergeJeremy Kemper2008-07-171-1/+1
|\ | | | | | | | | | | | | Conflicts: actionpack/lib/action_view/helpers/form_options_helper.rb activerecord/lib/active_record/validations.rb
| * Merge with docrails.Pratik Naik2008-07-161-1/+1
| |
* | Removed unnecessary or condition in #error_messages_forLuca Guidi2008-07-081-1/+1
| |
* | Make sure object name is translated in #error_messages_forLuca Guidi2008-07-081-0/+1
| |
* | remove call to self.locale from helpersSven Fuchs2008-06-231-4/+1
| |
* | check self.locale instead of request.locale in helpersSven Fuchs2008-06-221-1/+1
| |
* | integrating I18n into RailsSven Fuchs2008-06-191-10/+23
|/
* Improve documentation coverage and markupXavier Noria2008-05-021-55/+69
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Revert spurious commit from [9126]Jeremy Kemper2008-03-291-6/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9128 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix new migration versionsDavid Heinemeier Hansson2008-03-281-4/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9126 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow html_options to be passed to all the date helpers. Closes #6000 ↵Michael Koziarski2008-03-021-9/+9
| | | | | | [h-lame, Jakob S] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8968 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed ActionView::Helpers::ActiveRecordHelper::form for when ↵David Heinemeier Hansson2008-01-111-3/+10
| | | | | | protect_from_forgery is used (closes #10739) [jeremyevans] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: form helper testJeremy Kemper2007-12-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8466 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Doc typo fixes for ActiveRecordHelper. Closes #9973 [mikong]Marcel Molina2007-10-261-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8029 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* error_messages_for also takes :message and :header_message options which ↵Jeremy Kemper2007-10-141-12/+14
| | | | | | defaults to the old "There were problems with the following fields:" and "<count> errors prohibited this <object_name> from being saved". Closes #8270. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* error_messages_for and friends also work with local variables. Closes #9699.Jeremy Kemper2007-10-071-3/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7779 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Refactored in use of extract_options! (closes #9079) [josh]David Heinemeier Hansson2007-07-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7220 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* documentation project patches, closes #7342, #7319, #7316, #7190 ↵Rick Olson2007-03-271-18/+18
| | | | | | [jeremymcanally] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6470 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use a consistent load path to avoid double requires. Fix some scattered Ruby ↵Jeremy Kemper2007-01-281-1/+1
| | | | | | warnings. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6057 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix no method error with error_messages_on. Closes #6935 [nik.wakelin Koz]Michael Koziarski2007-01-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5870 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make error_message_on handle nil objects. [dan]Michael Koziarski2006-12-271-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5799 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Bob's raining patches: fixes date_helper bugs and usability issues. ↵Jeremy Kemper2006-12-061-0/+11
| | | | | | References #3811. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5685 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Provide support for decimal columns to form helpers. Closes #5672. ↵Marcel Molina2006-07-131-1/+1
| | | | | | [dave@pragprog.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4609 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pass :id => nil or :class => nil to error_messages_for to supress that html ↵Jeremy Kemper2006-07-081-3/+13
| | | | | | attribute. Closes #3586. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4592 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow error_messages_for to report errors for multiple objects, as well as ↵Marcel Molina2006-04-261-16/+30
| | | | | | support for customizing the name of the object in the error summary header. Closes #4186. [andrew@redlinesoftware.com, Marcel Molina Jr.] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4287 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Treat timestamps like datetimes for scaffolding purposes (closes #3388) ↵David Heinemeier Hansson2006-01-211-1/+1
| | | | | | [Maik Schmidt] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3457 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* make error_messages_for return "" for nil objectsMichael Koziarski2006-01-191-1/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3438 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added :multipart option to ActiveRecordHelper#form to make it possible to ↵David Heinemeier Hansson2005-09-111-1/+1
| | | | | | add file input fields #2034 [jstirk@oobleyboo.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2193 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added note about how pre-packaged error functionality can be easier to ↵David Heinemeier Hansson2005-09-031-0/+4
| | | | | | recreate yourself than attempt to overly tailor #1489 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2112 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added options hash as third argument to FormHelper#input, so you can do ↵David Heinemeier Hansson2005-07-171-2/+2
| | | | | | input('person', 'zip', :size=>10) #1719 [jeremye@bsa.ca.gov] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added that UrlHelper#mail_to will now also encode the default link title ↵David Heinemeier Hansson2005-07-021-1/+1
| | | | | | #749 [f.svehla@gmail.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1601 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 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 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
* Fixed that form helpers would treat string and symbol keys differently in ↵David Heinemeier Hansson2005-03-061-13/+15
| | | | | | html_options (and possibly create duplicate entries) #112 [bitsweat] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@833 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed documentation snafus #575, #576, #577, #585David Heinemeier Hansson2005-02-071-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added the option of passing a block to ActiveRecordHelper#form in order to ↵David Heinemeier Hansson2005-01-151-3/+10
| | | | | | add more to the auto-generated form #469 [dom@sisna.com] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@422 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added respondence to *_before_type_cast for all attributes to return their ↵David Heinemeier Hansson2004-12-191-2/+0
| | | | | | string-state before they were type casted by the column type. Added use of *_before_type_cast for all input and text fields. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@215 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Updated documentationDavid Heinemeier Hansson2004-12-161-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@194 5ecf4fe2-1ee6-0310-87b1-e25e094e27de