Commit Graph

27923 Commits

Author SHA1 Message Date
Ying Tsen Hong
39ace1332b Fixed typo. "from" should be "form". 2012-01-30 16:50:17 -07:00
Carol Nichols
bc2e0624ae Fixing some double quotes that should be single quotes 2012-01-29 22:28:46 -05:00
ben
7ed0f6b5db Update .travis.yml 2012-01-30 10:47:57 +08:00
ben
9d02e068d4 https://github.com/lifo/docrails/blob/master/.travis.yml 2012-01-30 10:47:12 +08:00
Meck
200d760570 Sorry for editing this file. 2012-01-30 10:38:39 +08:00
Meck
7c86c225e3 Update README.rdoc 2012-01-30 10:30:00 +08:00
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
Brook Riggio
856f13ab05 Whitespace only: Use single newline at end of file.
Bring these files into accordance with the prevailing convention.
2012-01-27 23:24:23 -08:00
dev
69aeecd358 Updates documentaton to indicate that :expires_in can be used with all cache stores. 2012-01-26 18:16:10 -05:00
Daniel Fone
d222211edf [ci skip] More docs for ActiveSupport::MessageEncryptor 2012-01-26 15:09:04 +13: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
Aaron Patterson
c421870c7a Merge pull request #4644 from ask4prasath/refactor_test
Replaced unwanted method and added to accessor for getter history
2012-01-25 09:40:45 -08:00
Aaron Patterson
eee5a6cfa0 Merge pull request #4646 from lest/patch-1
no need in separate MiniTest modules
2012-01-25 09:31:29 -08:00
Aaron Patterson
aa8ebea143 Merge pull request #4658 from pwim/unicode-paths
Test for unicode path support
2012-01-25 09:23:07 -08:00
Aaron Patterson
0581c1a95c use fetch rather than both Hash#key? and Hash#[] 2012-01-25 09:23:03 -08:00
Jonathan del Strother
73e71c27f2 Fix translate_error reference for Error#add documentation 2012-01-25 15:02:20 +00:00
José Valim
148f849ca5 Merge pull request #4524 from nashby/datetime-18-code
remove ruby 1.8 related code
2012-01-25 06:59:09 -08:00
José Valim
a3b3643886 Merge pull request #4667 from carlosantoniodasilva/av-number-helper
Action View number helpers improvements
2012-01-25 05:15:09 -08:00
Carlos Antonio da Silva
74fabdf6c4 Do not mutate given options hash in number helpers 2012-01-25 10:51:00 -02:00
Carlos Antonio da Silva
c753e3af76 Refactor percentage helper 2012-01-25 10:51:00 -02:00
Carlos Antonio da Silva
1e78fed488 Refactor float number parsing 2012-01-25 10:50:58 -02:00
Carlos Antonio da Silva
fb22f93b38 Improve getting translations for number helpers 2012-01-25 10:16:47 -02:00
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
Carlos Antonio da Silva
0186c5dcea Improve field error proc example in validations guide 2012-01-25 10:03:37 -02:00
Carlos Antonio da Silva
84bd203b39 Change ActiveRecord::Errors to ActiveModel::Errors in guides
Use ActiveModel::Errors in inflection example docs as well.

Also fixes wrong information and link to locale file related to
Errors#full_messages in I18n guide.
2012-01-25 10:03:19 -02:00
José Valim
a6aea14e69 Merge pull request #4661 from janko-m/master
Modify video_tag a bit and make audio_tag able to accept multiple sources
2012-01-25 03:12:13 -08:00
Carlos Antonio da Silva
cd9a3b055d Fix custom validation methods section in AR validations and callbacks guide
The methods validate_on_create and validate_on_update are not available
anymore in Rails, this removes them from the guide and adds an example
on how to use validate with the :on option.
2012-01-25 09:10:36 -02:00
Janko Marohnić
7d93e814e6 Make audio_tag able to receive multiple sources 2012-01-25 11:52:49 +01:00
Janko Marohnić
3339293280 Make path_to_video in video_tag apply to each source 2012-01-25 11:52:34 +01:00
José Valim
40295aa0ab Merge pull request #4651 from paul/mysql-add-index-bug
Handle nil in add_index :length option in MySQL
2012-01-25 00:34:09 -08:00
Rohit Arondekar
8728575f10 remove extra 'the' 2012-01-25 10:35:51 +05:30
Paul Sadauskas
6cde635f34 Handle nil in add_index :length option in MySQL
Our schema.rb is being generated with an `add_index` line similar to this:

    add_index "foo", ["foo", "bar"], :name => "xxx", :length => {"foo"=>8, "bar=>nil}

This is the same as it was on Rails 3.1.3, however, now when that
schema.rb is evaluated, its generating bad SQL in MySQL:

    Mysql::Error: You have an error in your SQL syntax; check the manual
    that corresponds to your MySQL server version for the right syntax
    to use near '))' at line 1: CREATE UNIQUE INDEX
    `xxx` ON `foo` (`foo`(8), `bar`())

This commit adds a check for nil on the length attribute to prevent the
empty parens from being output.
2012-01-24 14:22:24 -07:00
Rafael Mendonça França
b1f8ba1383 Remove unused variables to avoid warnings
Signed-off-by: José Valim <jose.valim@gmail.com>
2012-01-24 21:38:55 +01:00
Sergey Nartimov
9cb00a465f no need in separate MiniTest modules 2012-01-24 23:25:51 +03:00
Aaron Patterson
6a88302a5f Merge pull request #4606 from lest/patch-1
remove unnecessary AS::Concern usage
2012-01-24 12:07:56 -08:00
prasath
bf31d7b224 Removing unwanted method and adding to accessor for getter history 2012-01-25 01:34:04 +05:30
Aaron Patterson
6fe02f9a2c deprecated AR::TestCase in favor of AS::TestCase 2012-01-24 12:01:53 -08:00
Aaron Patterson
dcf0558ae5 Moving AR::TestCase in to the AR tests directory 2012-01-24 12:01:52 -08:00
José Valim
c973fc7125 Merge pull request #4641 from rafaelfranca/date_select-fix-3-2
date_select fixes [3-2-stable]
2012-01-24 20:46:24 +01:00
Aaron Patterson
8478b0ca0b Merge pull request #4514 from brainopia/update_timezone_offets
Update time zone offset information
2012-01-24 11:16:39 -08:00
Aaron Patterson
ad6f689bff Merge pull request #3775 from karevn/master
Please pull my changes - they fix a rare problem with tests framework
2012-01-24 10:34:09 -08:00
Vijay Dev
d26a166cfb fix some examples - method names can't start with a number 2012-01-24 23:53:56 +05:30
Aaron Patterson
82e2f19aac Merge pull request #4630 from lest/patch-2
Use instance_eval instead of Proc#bind
2012-01-24 09:59:59 -08:00
Aaron Patterson
29aa20daa6 Merge pull request #4637 from railsaholic/error_message_fix
quote fix ` to ' in the ArgumentError message
2012-01-24 09:53:10 -08:00
Manoj
204aabc24c quote fix ` to ' in the ArgumentError message
message quote fix
2012-01-24 22:10:06 +05:30
Xavier Noria
2580696c49 Merge pull request #4636 from sachin87/code_improved
code improved with better condition
2012-01-24 07:55:13 -08:00
Sachin87
4e79deff89 code improved 2012-01-24 21:18:37 +05:30
José Valim
352159888b Merge pull request #4628 from rafaelfranca/fix-build
Fix broken build
2012-01-24 04:40:41 -08:00