Rafael Mendonça França
5d8191a263
Remove default class to collection_check_boxes and
...
collection_radio_buttons
[Carlos Antonio da Silva + Rafael Mendonça França]
2012-02-02 14:52:59 -02:00
Carlos Antonio da Silva
f506c8063b
Add changelog, docs and guides entries
...
[Carlos Antonio da Silva + Rafael Mendonça França]
2012-02-02 14:52:15 -02:00
Guillermo Iguaran
e476500431
Use https://rubygems.org source for default Gemfile
...
See https://github.com/rails/rails/pull/4684#commitcomment-920313
2012-02-01 15:30:16 -05:00
Rafael Mendonça França
e778e22812
Remove the dependent_restrict_raises configuration if activerecord is
...
not preset
2012-02-01 17:03:23 -02:00
Vijay Dev
479f3b4054
document the AR none method [ci skip]
2012-02-01 23:31:43 +05:30
José Valim
8b80b4b25e
Merge pull request #4825 from sikachu/master-fix-plugin-new
...
Fix broken test introduced from #4814
2012-02-01 09:51:24 -08:00
kennyj
8afa8b0c21
Fix GH #4737 . Missing helper file (LoadError) in mountable plugin.
2012-02-02 02:34:47 +09:00
Prem Sichanugrist
b57825473e
Fix broken test introduced from #4814
...
* ruby_debugger_gemfile_entry was removed from the generator. Please
make sure to run `grep` or `ack` to make sure it was removed in every
places.
2012-02-01 12:23:20 -05:00
Vijay Dev
d2c6400948
Merge branch 'master' of github.com:lifo/docrails
2012-02-01 22:25:52 +05:30
Vijay Dev
e1dbcdcacf
fixes the plus sign properly [ci skip]
2012-02-01 22:22:51 +05:30
Vijay Dev
d566fa7721
Revert "fixing text to match what is being displayed"
...
This reverts commit 5be94cedce3f80923661a2f1fee02c9bfc2e95b2.
Reason: This commit is incorrect.
2012-02-01 22:18:36 +05:30
daniely
c6d880f48d
escape plus sign in "Rails 2.3+" to fix markup
2012-02-01 23:14:28 +08:00
Guillermo Iguaran
b3278cd8e2
Remove ruby_debugger_gemfile_entry from app_base, we can just put ruby-debug19 commented directly in Gemfile
2012-02-01 00:14:42 -05:00
kennyj
0c0e58c913
Don't run bundle install when passed with --pretend option
2012-02-01 01:13:52 +09:00
Rafael Mendonça França
25a69e2ea5
Only add ActiveRecord configuration if it is present
2012-01-31 12:41:16 -02:00
Carlos Antonio da Silva
31fce0192e
Improve readonly examples and optimistic locking docs
...
* Relation#order can receive order attributes as different arguments,
add example;
* Readonly does not handle deletion of records, only modification;
* locking_version column does not need to default to 0, Rails handles
nil values;
* Change references from "set_locking_column" to "self.locking_column".
2012-01-31 12:09:09 -02:00
Jon Leighton
30a2328003
Merge pull request #4727 from railsaholic/dependent_restrict_should_add_error
...
has_many/has_one, :dependent => :restrict, deprecation added
2012-01-31 05:45:04 -08:00
Carlos Antonio da Silva
0d5f7dac3d
Improve ar associations habtm docs a bit
2012-01-31 09:40:38 -02:00
Sergey Nartimov
223e5b9c7d
fix assets test
2012-01-31 11:52:39 +03:00
Patrick Davey
f457f87241
Merge branch 'master' of github.com:lifo/docrails
2012-01-31 13:26:49 +13:00
Patrick Davey
5be94cedce
fixing text to match what is being displayed
2012-01-31 13:25:34 +13:00
Ying Tsen Hong
39ace1332b
Fixed typo. "from" should be "form".
2012-01-30 16:50:17 -07:00
Prem Sichanugrist
b04bce28ff
Fix failing test from [7619bcf2]
2012-01-30 16:55:17 -05:00
Xavier Noria
7619bcf2d4
rewrites a couple of alternations in regexps as character classes
...
Character classes are the specific regexp construct
to express alternation of individual characters.
2012-01-30 13:13:04 -08:00
Vijay Dev
cc88fcfe39
Fixes #4764 - remove generated new line in routes.rb on scaffold generation
...
As explained in #4764 , when destroying a scaffold, routes.rb loses a
new line. This seems to happen because a new line is added
while generating the route and the destroy generator removes it.
However, this causes a problem if the routes file is manually edited
to remove such new lines. This commit just removes that extra new line
from added in the first place.
2012-01-31 00:13:10 +05:30
Rahul P. Chaudhari
6831ab1110
Used block to make sure file get auto closed after use
2012-01-30 14:43:52 +05:30
Sergey Nartimov
44bd9719e9
remove ruby 1.8 support code
2012-01-29 23:03:28 +03:00
Nathan Broadbent
b31eac5609
Replaced all 'for' loops with Enumerable#each
2012-01-30 03:15:49 +08:00
Manoj
336ff8a97e
has_many/has_one, :dependent => :restrict, deprecation added.
2012-01-29 15:28:22 +05:30
Carlos Antonio da Silva
695ec8e279
Improve active record associations guide a bit
...
* Use right example for has_many :find method;
* Reword has_many :counter_sql doc notes.
2012-01-28 18:21:23 -02:00
Nathan Broadbent
2d62334ae6
Reverted build_original_fullpath method, as per discussion at https://github.com/rails/rails/pull/4470/files#r393461
2012-01-28 09:12:18 +08:00
Aaron Patterson
69816a830b
Merge pull request #4726 from rafaelfranca/create_join_table
...
Add create_join_table migration helper to create HABTM join tables
2012-01-27 10:16:14 -08:00
Vijay Dev
a8da5d82fd
fix a small typo [ci skip]
2012-01-27 23:32:58 +05:30
Rafael Mendonça França
080bd83df9
Add create_join_table
migration helper to create HABTM join tables
2012-01-27 15:34:53 -02:00
kennyj
2e7d6ff08d
Remove redundant instance_variables (@colorize_logging)
2012-01-27 23:01:14 +09:00
Jeremy Kemper
faaf694e0f
Disagree with @spastorino, @jonleighton, @tenderlove on 51ccb7f59c83120bf6869f1febfebaec44bcface
...
Same-level method visibility disappears into the syntax. Indent (and
outdent) emphasize the state change that accompanies the declaration.
All methods following 'private' are private: that's a natural
hierarchy worthy of visual reinforcement.
Outdent, represent! :trollface:
2012-01-26 20:34:04 -07:00
José Valim
8fab39527f
Revert "Merge pull request #4690 from jdutil/filter_password_confirmation"
...
This reverts commit eafa1c429835e099897a0da90bc39d9dbbb7ed4e, reversing
changes made to f251437415f7b803f7a84118fcc970a111ace266.
2012-01-26 12:12:54 +01:00
José Valim
eafa1c4298
Merge pull request #4690 from jdutil/filter_password_confirmation
...
Add :password_confirmation as a filtered param by default.
2012-01-26 02:56:29 -08:00
Xavier Noria
f251437415
disable automatic explain if there is no logger [ closes #4671 ]
2012-01-26 02:50:46 -08:00
Jeff Dutil
521fedc043
Add :password_confirmation as a filtered param by default.
2012-01-26 05:37:23 -05:00
claudiob
6d426b1035
Add release date of Rails 3.2.0 to documentation
2012-01-26 01:53:38 -08:00
Xavier Noria
c6efa0d1c7
Merge pull request #4684 from rossmeissl/patch-1
...
Use `:rubygems` shortcut as standard Gemfile's `source` instead of explicit URL
2012-01-25 23:53:06 -08:00
Xavier Noria
70b059835b
Merge pull request #4685 from brainopia/fix_contribute_guide
...
Fix contributing guide to reflect preferred position on indentation
2012-01-25 23:50:52 -08:00
José Valim
ba5a334acd
Use content_tag_for with array by default on scaffold.
2012-01-26 08:07:38 +01:00
brainopia
51ccb7f59c
Fix contributing guide to reflect preferred position on indentation
...
Fix incorrect recommendation from indenting after private/protected to not.
Based on opinions of @spastorino, @jonleighton, @tenderlove
https://github.com/rails/rails/pull/1838#issuecomment-1440281
https://en.twitter.com/#!/spastorino/status/142054749351575552
https://en.twitter.com/#!/tenderlove/status/142014046445641728
https://en.twitter.com/#!/jonleighton/status/142021813415841794
2012-01-26 10:04:57 +04:00
Andy Rossmeissl
1873adf6e4
Use :rubygems
shortcut as standard Gemfile's source
instead of explicit URL.
...
Theoretically this would future-proof Gemfiles against possible (albeit unlikely) change in the rubygems URL.
2012-01-25 23:36:06 -05:00
Vijay Dev
203771da9e
Merge branch 'master' of github.com:lifo/docrails
2012-01-26 00:00:40 +05:30
Vijay Dev
368f0fe2d3
Revert "Added Apache configuration for dynamic gzip content"
...
This reverts commit fce92fd8a7e407b034d189a652af81a06ac98730.
Reason: We want any config that goes into the guides to be 100% right
and I'm not entirely sure that this one is it. We already had a similar
config that was removed in
b1c20e37ec
2012-01-25 23:57:44 +05:30
Vijay Dev
b32ebf0461
minor text change [ci skip]
2012-01-25 23:57:33 +05:30
Carlos Antonio da Silva
b844bf6a65
Fix callbacks order for destroying an object in validations guide
...
Also add around save to creating/updating callbacks order, and fix save
example with no validation
2012-01-25 10:03:38 -02:00