Commit Graph

19376 Commits

Author SHA1 Message Date
Piotr Sarnacki
d988fa820a Update changelog with rails plugin new 2010-11-16 00:04:34 +01:00
Piotr Sarnacki
fefce1262b Don't need to support rails plugin --version 2010-11-16 00:04:34 +01:00
Aaron Patterson
2b2082eb09 rejecting blank strings 2010-11-15 15:02:18 -08:00
Aaron Patterson
dcdfc84f55 use quoted id of single AR::Base objects in predicates 2010-11-15 14:35:38 -08:00
Aaron Patterson
e4591489d1 reduce method calls 2010-11-15 14:22:06 -08:00
Aaron Patterson
0be181bfa0 make sure we are only doing sanity checking against regular expressions 2010-11-15 13:37:27 -08:00
Xavier Noria
91a6db90cf Merge branch 'master' of git://github.com/lifo/docrails 2010-11-15 19:45:46 +01:00
Neeraj Singh
7c5c1a07c0 if association is already loaded and if a find operation is performed on the already loaded association list with an empty hash then do not perform another sql
[#5972 state:resolved]
2010-11-15 10:12:23 -08:00
Aaron Patterson
022519a032 fisting a bunch of unused variable warnings 2010-11-15 10:12:09 -08:00
James Miller
c2c2b8b962 Add HTTP Verb Constraints (:via) to routing guide 2010-11-15 09:26:57 -07:00
Mikel Lindsaar
8124b2bc24 Revert "Bump up mail dependency to take advantage of relaxed i18n version requirement"
Locking to ~> 2.2.9.1 means locking to < 2.2.10, not intended behaviour.

This reverts commit e7de5dd11e.
2010-11-16 00:23:03 +11:00
Mikel Lindsaar
e7de5dd11e Bump up mail dependency to take advantage of relaxed i18n version requirement 2010-11-16 00:08:23 +11:00
Ryan Bigg
8b5700192e Merge branch 'master' of github.com:lifo/docrails
* 'master' of github.com:lifo/docrails:
  Getting Started guide: remove calls to f.error_messages as it has been removed from Rails
  deliver_* is no more
  removed unnecessary indentation
  added note with example for using flash in redirection
  corrected sample code to clear @_current_user class variable also
  the partial option is not required for simple partial rendering
  colorize_logging is a Rails General Configuration option not a specific option of ActiveRecord
  Fixed the name of the 'generator option'
  this reads better, i don't know what the other 'so on' are, doesn't help reader imho
  added missing word to clear up meaning in my previous commit
  Add a note to TextHelpers making explicit their default behavior of not escaping but sanitizing.
  removed indentation, for code style consistency and readibility
  Use Rails.logger, not ActiveRecord::Base.logger
  removed etc. not require
  added missing space and minor rewording
  corrected to Rails 3 syntax for declaring resources
  Fixes ActionMailer example error
2010-11-15 11:44:04 +08:00
Santiago Pastorino
0262218976 Add f.submit to forms just to show the most common use case 2010-11-14 21:40:34 -02:00
Santiago Pastorino
bdf70fd379 Merge branch 'spastorino-master' 2010-11-14 21:28:11 -02:00
Santiago Pastorino
f597d1ec80 This doesn't make sense here 2010-11-14 21:25:37 -02:00
Jaime Iniesta
72fda46214 Merge branch 'master' of github.com:lifo/docrails 2010-11-15 00:07:35 +01:00
Jaime Iniesta
324569bb11 Getting Started guide: remove calls to f.error_messages as it has been removed from Rails 2010-11-15 00:07:25 +01:00
Santiago Pastorino
4ef6d2e534 Add empty line between previous method and RDoc of submit to allow RDoc appear on api.rubyonrails.org 2010-11-14 21:01:59 -02:00
Santiago Pastorino
c996901913 Change deprecated syntax and use f.submit instead of submit_tag 2010-11-14 21:00:26 -02:00
Santiago Pastorino
bc556a21e2 Remove unused var 2010-11-14 15:34:07 -02:00
Jason Cheow
93c9f4a942 Fix bug where size of through association is not correct after adding a has_many association (occurs only before main object has been reloaded).
[#5968 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-11-14 15:32:52 -02:00
José Valim
fae4264a7e Update the guides. 2010-11-14 16:22:21 +01:00
Aditya Sanghi
330d65d312 deliver_* is no more 2010-11-14 18:27:08 +05:30
Rajinder Yadav
abf225423c removed unnecessary indentation 2010-11-14 06:02:16 -05:00
Rajinder Yadav
f69784289b added note with example for using flash in redirection 2010-11-14 05:20:10 -05:00
Rajinder Yadav
23f71c431d corrected sample code to clear @_current_user class variable also 2010-11-14 05:12:01 -05:00
Robert Pankowecki
88688cdd8e Fix when database column name has some symbolic characters. [#5818 state:resolved] 2010-11-14 17:24:31 +08:00
raggi
e6d14279b8 Add support for try to just yield the object to a block if no method is to be called. Kind of like a tap_if_present. 2010-11-14 17:23:44 +08:00
Larry Sprock
f43e5d160b HashWithIndifferentAccess should not change the subclass of an array 2010-11-14 17:14:47 +08:00
Rajinder Yadav
7e1f6688e9 the partial option is not required for simple partial rendering 2010-11-13 20:24:04 -05:00
Ryan Bigg
74061f55be Document the constraints method 2010-11-14 07:32:54 +08:00
Santiago Pastorino
293c8a4de5 Tests added for rendering partial with layout, when the partial contains another render layout with block call added missing fixtures 2010-11-13 13:40:36 -02:00
Santiago Pastorino
e3b68e5f6b Tests added for rendering partial with layout, when the partial contains another render layout with block call 2010-11-13 13:38:40 -02:00
Paco Guzman
d44cd370bf colorize_logging is a Rails General Configuration option not a specific option of ActiveRecord 2010-11-13 12:17:21 +01:00
Santiago Pastorino
27f4ffd11a Make collection and collection_from_object methods return an array
This transforms for instance scoped objects into arrays and avoid unneeded queries

[#5958 state:committed]
2010-11-13 04:02:57 -02:00
Ryan Bigg
fe8446fcce Add documentation for :path_names option on resources 2010-11-13 11:16:32 +08:00
Ryan Bigg
95f41fe12e See the scope method for documentation for namespace's shallow_path option 2010-11-13 11:16:06 +08:00
Ryan Bigg
b235519777 Add documentation for the mount method in ActionDispatch's Mapper 2010-11-13 11:15:17 +08:00
Yehuda Katz
7cc371a032 Allow bundler 1.1 (and 1.2, etc.) in Rails 1.0.2 and above 2010-11-12 18:36:55 -06:00
Franck Verrot
983976ec54 Finder gives a little bit more info on the lookup column (primary key) 2010-11-13 06:32:08 +08:00
Santiago Pastorino
b15d816166 Update to JQuery 1.4.4
Check out http://blog.jquery.com/2010/11/11/jquery-1-4-4-release-notes/
for information on what's new.
2010-11-12 13:02:17 -02:00
Frederick Ros
e7723baa0b Fixed the name of the 'generator option' 2010-11-11 23:02:05 +01:00
Santiago Pastorino
b734e192a7 present? is better here 2010-11-11 19:00:33 -02:00
José Valim
c63600576a Remove whitespaces and add missing test. 2010-11-11 20:07:47 +01:00
José Valim
f912a359aa Merge remote branch 'drogus/plugin_new'
Conflicts:
	railties/test/generators/app_generator_test.rb
2010-11-11 19:39:21 +01:00
Franck Verrot
de2933e1a0 STI type is now updated when calling AR::Base.becomes on subclasses [#5953 state:resolved] 2010-11-12 02:17:34 +08:00
Santiago Pastorino
296e5c38f1 Use ! instead of not 2010-11-11 15:24:49 -02:00
Santiago Pastorino
894fd28859 Fixed bug in active_record/nested_attributes where an empty string id caused an ActiveRecord::RecordNotFound error. Found by [Ben Tillman]
[#5638 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-11-11 15:23:40 -02:00
Santiago Pastorino
ceef719924 Bump Arel up to 2.0.2 2010-11-11 15:05:12 -02:00