1. 01 2月, 2010 2 次提交
  2. 31 1月, 2010 4 次提交
  3. 30 1月, 2010 1 次提交
  4. 28 1月, 2010 1 次提交
  5. 23 1月, 2010 1 次提交
  6. 07 1月, 2010 1 次提交
    • J
      From now on, parameters defined in default_url_options can be absent from named routes. · f149eb19
      José Valim 提交于
      This allows the following setup to work:
      
        # app/controllers/application_controller.rb
        class ApplicationController
          def default_url_options(options=nil)
            { :locale => I18n.locale }
          end
        end
      
        # From your views and controllers:
        I18n.locale                 #=> :en
        users_url                   #=> "/en/users"
        users_url(:pl)              #=> "/pl/users"
        user_url(1)                 #=> "/en/users/1"
        user_url(:pl, 1)            #=> "/pl/users/1"
        user_url(1, :locale => :pl) #=> "/pl/users/1"
      
      If you provide all expected parameters, it still works as previously.
      But if any parameter is missing, it tries to assign all possible ones
      with the hash returned in default_url_options or the one passed straight
      to the named route method.
      
      Beware that default_url_options in ApplicationController is not shared
      with ActionMailer, so you are required to always give the locale in your
      email views.
      f149eb19
  7. 06 1月, 2010 1 次提交
  8. 15 10月, 2009 2 次提交
  9. 08 10月, 2009 1 次提交
    • M
      Switch to on-by-default XSS escaping for rails. · 94159359
      Michael Koziarski 提交于
        This consists of:
      
        * String#html_safe! a method to mark a string as 'safe'
        * ActionView::SafeBuffer a string subclass which escapes anything unsafe which is concatenated to it
        * Calls to String#html_safe! throughout the rails helpers
        * a 'raw' helper which lets you concatenate trusted HTML from non-safety-aware sources (e.g. presantized strings in the DB)
        * New ERB implementation based on erubis which uses a SafeBuffer instead of a String
      
      Hat tip to Django for the inspiration.
      94159359
  10. 14 9月, 2009 1 次提交
  11. 10 8月, 2009 1 次提交
  12. 25 7月, 2009 1 次提交
  13. 09 6月, 2009 2 次提交
  14. 06 2月, 2009 1 次提交
  15. 27 10月, 2008 1 次提交
  16. 08 8月, 2008 1 次提交
  17. 20 7月, 2008 1 次提交
  18. 16 7月, 2008 1 次提交
  19. 12 7月, 2008 1 次提交
  20. 09 7月, 2008 1 次提交
  21. 22 6月, 2008 1 次提交
  22. 18 6月, 2008 1 次提交
  23. 25 5月, 2008 1 次提交
  24. 17 5月, 2008 1 次提交
    • P
      Merge documentation changes from docrails. · 46f30f90
      Pratik Naik 提交于
      commit 0fc3381a
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Fri May 16 23:44:51 2008 +0200
      
          Conventions. Formatting. Revising docs all over the rails.
      
          This revision encourages the modern resource-oriented form_for usage. In addition corrects some markup and other details.
      
      commit 70e4bcf5
      Author: Chris Kampmeier <chris@kampers.net>
      Date:   Fri May 16 12:09:46 2008 -0700
      
          Fix a couple spelling errors in docs
      
      commit 6ea5e420
      Author: Chris O'Sullivan <thechrisoshow@gmail.com>
      Date:   Fri May 16 16:09:11 2008 +0100
      
          Added docs about source_type for has_one association
      
      commit a01a0178
      Author: miloops <miloops@gmail.com>
      Date:   Wed May 14 09:22:39 2008 +0000
      
          Change migration generator USAGE to explain the timestamped migrations behaviour
      
      commit 4e2bc021
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Fri May 16 00:43:03 2008 +0200
      
          minor revision in url_for docs
      
          Made explicit that RESTful and controller/action styles are not interchangeable, and revised some markup.
      
      commit d6ecce66
      Author: Michael Hartl <michael@michaelhartl.com>
      Date:   Thu May 15 10:46:40 2008 -0700
      
          Expanded and updated the link_to documentation
      
      commit b8c46c86
      Author: Cody Fauser <cody@jadedpixel.com>
      Date:   Wed May 14 09:10:02 2008 -0400
      
          Improve and cleanup ActionMailer documentation
      
      commit 9546ee29
      Author: Yehuda Katz <wycats@gmail.com>
      Date:   Mon May 12 23:41:43 2008 -0700
      
          Add documentation for Inflector.inflections
      
      commit cbd5db8f
      Author: Manik Juneja <mjuneja@manik-junejas-computer.local>
      Date:   Mon May 12 23:43:31 2008 +0530
      
          minor changes in railties/README. Added dbconsole introduction
      
      commit 130a280d
      Author: Gaurav Sharma <gaurav@norbauer.com>
      Date:   Mon May 12 18:00:19 2008 +0530
      
          adding documentation for cached_attributes
      
      commit 164c9586
      Author: TomK32 <tomk32@tomk32.de>
      Date:   Mon May 12 10:59:33 2008 +0200
      
          proper heading for "Example:"
      
      commit 35634feb
      Author: Matt Boehlig <thetamind@gmail.com>
      Date:   Sun May 11 16:46:07 2008 -0500
      
          Cleanup whitespace and change_table documentation
      
      commit 80bba28a
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Sun May 11 02:54:02 2008 +0200
      
          documented the source annotation extractor
      
      commit e6823bb1
      Author: Mike Mondragon <mikemondragon@gmail.com>
      Date:   Fri May 9 13:49:56 2008 -0700
      
          Added additional information about processing email with ActionMailer and the strategy one might want to employ to do so.
      
      commit e6afd8b2
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Thu May 8 23:49:36 2008 +0200
      
          corrected and completed docs of increment/decrement/toggle in AR::Base
      
      commit 2fead68b
      Author: Austin Putman <austin@emmanuel.local>
      Date:   Wed May 7 19:35:46 2008 -0700
      
          Documented class methods on ActionController::Routing.  These are dangerous, and mostly used for testing.
      
      commit f5b84182
      Author: Teflon Ted <github@rudiment.net>
      Date:   Wed May 7 16:08:49 2008 -0400
      
          Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
      
      commit 370f4f51
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Wed May 7 14:00:59 2008 +0200
      
          Applied list conventions in AR::Base
      
      commit 5bd18429
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Wed May 7 13:53:35 2008 +0200
      
          Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
      
      commit 2fa628e3
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Wed May 7 11:52:33 2008 +0200
      
          revised details in Exceptions section of AR::Base docs
      
      commit d912bd56
      Author: Yaroslav Markin <yaroslav@markin.net>
      Date:   Wed May 7 13:50:28 2008 +0400
      
          Add a filter_parameter_logging usage hint to generated ApplicationController.
          This may help to remind the developer to filter sensitive information from application logs.
          Closes #11578
      
      commit f81d771f
      Author: Jack Danger Canty <git@6brand.com>
      Date:   Tue May 6 23:35:05 2008 -0700
      
          doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
      
          Added documentation demonstrating the use of #through_reflection for
          finding intervening reflection objects for HasManyThrough
          and HasOneThrough.
      
      commit ae6b46f0
      Author: Cheah Chu Yeow <chuyeow@gmail.com>
      Date:   Wed May 7 13:47:41 2008 +0800
      
          Document AttributeAssignmentError and MultiparameterAssignmentErrors.
      
      commit 8f463550
      Author: John Barnette <jbarnette@gmail.com>
      Date:   Tue May 6 22:46:44 2008 -0700
      
          Killing/fixing a bunch of outdated language in the AR README.
      
      commit 284a930a
      Author: Jonathan Dance <jd@wuputah.com>
      Date:   Tue May 6 14:58:26 2008 -0400
      
          improvements to the page caching docs
      
      commit 9482da62
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 18:13:40 2008 +0200
      
          validates_numericality_of() "integer" option really is "only_integer"
      
      commit e9afd679
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 12:11:59 2008 +0200
      
          Harmonized hash notation in AR::Base
      
      commit 67ebf14a
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 12:06:19 2008 +0200
      
          Turned options into rdoc-lists in AR::Base
      
      commit 0ec7c0a4
      Author: Marshall Huss <mwhuss@Macbook.local>
      Date:   Sun May 4 23:21:33 2008 -0400
      
          Added information of how to set element_name in the case the user has a name confliction with an existing model
      Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
      46f30f90
  25. 09 5月, 2008 1 次提交
    • P
      Merge docrails: · dc4eec11
      Pratik Naik 提交于
      commit e6afd8b2
      Author: Xavier Noria <fxn@hashref.com>
      Date:   Thu May 8 23:49:36 2008 +0200
      
          Overall documentation improvement and markup corrections. Zillion changes.
      
      commit 2fead68b
      Author: Austin Putman <austin@emmanuel.local>
      Date:   Wed May 7 19:35:46 2008 -0700
      
          Documented class methods on ActionController::Routing.  These are dangerous, and mostly used for testing.
      
      commit f5b84182
      Author: Teflon Ted <github@rudiment.net>
      Date:   Wed May 7 16:08:49 2008 -0400
      
          Added explanation about errant inflections not being patched in the future in order to avoid breaking legacy applications.
      
      commit 370f4f51
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Wed May 7 14:00:59 2008 +0200
      
          Applied list conventions in AR::Base
      
      commit 5bd18429
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Wed May 7 13:53:35 2008 +0200
      
          Renamed Options list to Attributes list whenever they weren't option hashes in AR::Base
      
      commit d912bd56
      Author: Yaroslav Markin <yaroslav@markin.net>
      Date:   Wed May 7 13:50:28 2008 +0400
      
          Add a filter_parameter_logging usage hint to generated ApplicationController.
          This may help to remind the developer to filter sensitive information from application logs.
          Closes #11578
      
      commit b243de0d
      Author: Jack Danger Canty <git@6brand.com>
      Date:   Tue May 6 23:39:47 2008 -0700
      
          doc: disambiguating an example ActiveRecord class
      
      commit f81d771f
      Author: Jack Danger Canty <git@6brand.com>
      Date:   Tue May 6 23:35:05 2008 -0700
      
          doc: ActiveRecord::Reflection::AssociationReflection#through_reflection
      
          Added documentation demonstrating the use of #through_reflection for
          finding intervening reflection objects for HasManyThrough
          and HasOneThrough.
      
      commit ae6b46f0
      Author: Cheah Chu Yeow <chuyeow@gmail.com>
      Date:   Wed May 7 13:47:41 2008 +0800
      
          Document AttributeAssignmentError and MultiparameterAssignmentErrors.
      
      commit 8f463550
      Author: John Barnette <jbarnette@gmail.com>
      Date:   Tue May 6 22:46:44 2008 -0700
      
          Killing/fixing a bunch of outdated language in the AR README.
      
      commit aca44bcd
      Author: Cheah Chu Yeow <chuyeow@gmail.com>
      Date:   Wed May 7 13:34:52 2008 +0800
      
          Make a note about ActiveResource::Timeouterror being raised when ARes calls timeout.
      
      commit 284a930a
      Author: Jonathan Dance <jd@wuputah.com>
      Date:   Tue May 6 14:58:26 2008 -0400
      
          improvements to the page caching docs
      
      commit 9482da62
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 18:13:40 2008 +0200
      
          validates_numericality_of() "integer" option really is "only_integer"
      
      commit e9afd679
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 12:11:59 2008 +0200
      
          Harmonized hash notation in AR::Base
      
      commit 67ebf14a
      Author: Sunny Ripert <negatif@gmail.com>
      Date:   Mon May 5 12:06:19 2008 +0200
      
          Turned options into rdoc-lists in AR::Base
      
      commit 0ec7c0a4
      Author: Marshall Huss <mwhuss@Macbook.local>
      Date:   Sun May 4 23:21:33 2008 -0400
      
          Added information of how to set element_name in the case the user has a name confliction with an existing model
      Signed-off-by: NPratik Naik <pratiknaik@gmail.com>
      dc4eec11
  26. 02 5月, 2008 1 次提交
  27. 05 4月, 2008 1 次提交
  28. 16 3月, 2008 1 次提交
  29. 21 12月, 2007 1 次提交
  30. 06 12月, 2007 1 次提交
  31. 07 11月, 2007 1 次提交
  32. 08 10月, 2007 1 次提交
  33. 28 9月, 2007 1 次提交
  34. 26 9月, 2007 1 次提交