Commit Graph

7561 Commits

Author SHA1 Message Date
Rodrigo Rosenfeld Rosas
6d05c793ca Update information about foreign key plugins support in the guides
There is not "a number" of up-to-date maintained plugins for dealing with foreign keys.

The foreign_key_migrations does not have any update since 2009 and is also about to be removed:

Extracted from http://www.harukizaemon.com/2009/09/plugins-grab-em-while-theyre-stale.html,
referenced in the plugin reference of the old guide version:

"And so it is that I will very shortly (within the next month) delete most of the plugins from
my GitHub account (harukizaemon)"
2011-11-28 13:15:07 -02:00
Arun Agrawal
8ef1ec427f global variable `$rails_rake_task' not initialized Warning removed 2011-11-28 17:35:10 +05:30
Arun Agrawal
e7dff9c1f1 Revert "fixed typo in getting started form_for for comments"
This reverts commit 2f428a6245a18017c7942f8fef3da4a85bec8cc5.

See comments here 2f428a6245a18017c7942f8fef3da4a85bec8cc5
2011-11-28 14:10:23 +05:30
Tim Reischmann
2f428a6245 fixed typo in getting started form_for for comments 2011-11-28 09:27:42 +01:00
José Valim
0b7cd7b570 Merge pull request #3771 from kennyj/fix_rake_test_warnings
Call a block passed rake_tasks method in the self context
2011-11-27 11:25:07 -08:00
kennyj
7f8f554d75 Call a block passed rake_tasks method in the self context 2011-11-27 22:49:37 +09:00
Tadas Tamošauskas
9cf285599c Update Object#in? description for https://github.com/rails/rails/pull/3767 2011-11-27 12:44:14 +00:00
kennyj
78ad94aaa7 avoid absolute path for the rails.png in index.html 2011-11-27 20:25:05 +09:00
Arun Agrawal
28e3935360 [Docs] Adding RequestId middleware in configuring middleware 2011-11-27 12:55:22 +05:30
Arun Agrawal
0ce64ba9aa Documentation about config.log_level config options 2011-11-27 12:34:14 +05:30
José Valim
71b387d91e Merge pull request #3765 from qoobaa/orm-instance-fix
added tests to #3763
2011-11-26 11:05:28 -08:00
Jakub Kuźma
4e5eaae1fa added tests, replaced classify with constantize - using classify here cuts the last 's' in ORM name 2011-11-26 19:57:51 +01:00
José Valim
140a0e49e5 Merge pull request #3763 from qoobaa/orm-instance-fix
allow using orm_instance without invoking orm_class in generators
2011-11-26 10:28:36 -08:00
Vijay Dev
ab854db649 documenting monday and sunday methods 2011-11-26 23:43:52 +05:30
Vijay Dev
80ac4dc6d0 Adds Time#sunday method 2011-11-26 23:15:11 +05:30
Vijay Dev
a8f2860d0e Convert aliases monday and sunday to methods
A recent change to beginning_of_week and end_of_week added an argument
that can be used to specify the week's starting day as a symbol. Now
these methods were aliased as monday and sunday respectively which as a
consequence of the argument addition, made calls like obj.monday(:sunday)
possible. This commit makes them methods on their own.
2011-11-26 23:08:58 +05:30
Arun Agrawal
fc20d6b681 Let's say this 3.1.3 instead of 3.1.1 in docs 2011-11-26 22:38:58 +05:30
Vijay Dev
8135e5e699 s/end_on_week/end_of_week 2011-11-26 22:06:47 +05:30
Vijay Dev
99ff8fdab5 minor doc changes 2011-11-26 22:06:47 +05:30
Jakub Kuźma
89d6db05d7 allow using orm_instance without invoking orm_class first in generators 2011-11-26 17:11:17 +01:00
Vijay Dev
1d89540686 Merge branch 'master' of github.com:lifo/docrails 2011-11-26 19:14:39 +05:30
Vijay Dev
5c2a2ee76e rephrased ef38c3089e1269e2b315aff503e61c0b23c95f00 and
mentioned about OS X and windows usually having a JS runtime
2011-11-26 19:07:36 +05:30
Xavier Noria
b30b932447 finders guide: adds some pointers to help users interpret the output of EXPLAIN 2011-11-25 14:58:43 -08:00
Xavier Noria
1be9830d4d add the query to AR::Relation#explain output
Rationale: this is more readable if serveral queries
are involved in one call. Also, it will be possible
to let AR log EXPLAINs automatically in production
mode, where queries are not even around.
2011-11-25 14:29:34 -08:00
Xavier Noria
a5b362df56 some tweaks to PR#3547. [Closes #3547] 2011-11-25 12:02:49 -08:00
gregolsen
3f1a4c3415 beginning_of_week extended in both Time and Date so that to return week start based on start day that is monday by default 2011-11-25 12:02:49 -08:00
José Valim
0a4035b12a Revert the serializers API as other alternatives are now also under discussion 2011-11-25 19:29:39 +00:00
John Donahue
95e9b5fbfd Updating newline fix to maintain existing linebreaks and indentation and test for b/eol on inserts 2011-11-25 09:06:14 -08:00
José Valim
6f5fdf8179 Merge pull request #3747 from lest/middleware-logger
middlewares should have configurable logger
2011-11-25 05:33:26 -08:00
Piotr Sarnacki
8ff8fa5e5f I suck, forgot to also change rake's task description 2011-11-25 12:54:39 +01:00
Piotr Sarnacki
c9bb099318 Display mounted engines in rake routes by default 2011-11-25 12:45:58 +01:00
lest
cd9d28d6fd middlewares should use logger from env 2011-11-25 13:09:46 +03:00
José Valim
fcacc6986a Merge branch 'serializers'
This implements the ActiveModel::Serializer object. Includes code, tests, generators and guides.

From José and Yehuda with love.

Conflicts:
	railties/CHANGELOG.md
2011-11-25 09:59:35 +00:00
José Valim
696d01f7f4 Add docs to serializers. Update CHANGELOGs. 2011-11-25 09:49:54 +00:00
ganesh
c8d7291b6b Added tests for #3751 2011-11-25 14:55:28 +05:30
José Valim
6d9f9b3b05 Add a hook for serializers in the scaffold generator (off for now). 2011-11-25 09:17:32 +00:00
José Valim
ebb8ea22f3 Add generators for serializers. 2011-11-25 09:14:05 +00:00
Piotr Sarnacki
0cd3bf8406 Allow to display engine's routes when running rake routes ENGINES=true 2011-11-24 16:16:00 +01:00
Piotr Sarnacki
a478389b7d Forgot to add CHANGELOG entry for config.railties_order 2011-11-24 13:40:27 +01:00
rpq
510502ee3a comma 2011-11-23 23:26:17 -05:00
Michael Pearson
ef38c3089e Move JS runtime instructions to where the error would be encountered, remove gem install. 2011-11-24 10:59:29 +11:00
Michael Pearson
0e7443060b Add step to getting_started to install JS Runtime.
abstrakt on #rubyonrails found that the guide, when followed step by step,
does fails at the 'rails server' command due to a lacking JS runtime.
2011-11-24 10:33:04 +11:00
José Valim
6da52c617e Remove listings from the serialization guide that won't make 3.2. 2011-11-23 23:22:46 +00:00
José Valim
e6cfd85361 Merge pull request #3739 from lest/config-always-write-cookie
configuration option to always write cookie
2011-11-23 12:58:56 -08:00
lest
98a1717e7c configuration option to always write cookie 2011-11-23 23:50:04 +03:00
José Valim
e62de52aa3 Merge branch 'master' into serializers 2011-11-23 20:43:06 +00:00
Piotr Sarnacki
40b19e0635 Allow to change engine's loading priority with config.railties_order= 2011-11-23 21:36:33 +01:00
Yehuda Katz
8549f7a4f0 Merge pull request #3731 from HeeL/master
code stats calculation
2011-11-23 11:11:40 -08:00
José Valim
fd86a1b6b0 Rely on a public contract between railties instead of accessing railtie methods directly. 2011-11-23 19:06:45 +00:00
Sergey Parizhskiy
d78a7026fc improved code stats calculation, check on multiline comments and rewrite regexps according to a class naming convention 2011-11-23 14:10:30 +02:00
Yehuda Katz
9b7be78820 Merge pull request #3724 from marcandre/media_default
stylesheet_tag default's media is "screen"
2011-11-22 12:38:05 -08:00
Marc-Andre Lafortune
05e02deb68 Make explicit the default media when calling stylesheet_tag and change the default generators. 2011-11-22 15:16:23 -05:00
Vijay Dev
5c61b7230e Revert "Added links to the 'Rails Initialization Guide', marked as a work in progress"
This reverts commit 6b4939c3fd22924ee3d906f08fe739d848f80a3d.

Reason: This guide is still incomplete and is not yet reviewed or ready
to go to the index.
2011-11-22 23:14:13 +05:30
lest
a9e8cf78fd add ActionController::Metal#show_detailed_exceptions? 2011-11-22 11:38:24 +03:00
Vijay Dev
4c872c017b Remove the -h option to dbconsole which is the shorter form of --header
This is done since the -h option to dbconsole hides the conventional
-h for help and forces users to use --help to see the usage options for
dbconsole.
2011-11-22 00:05:46 +05:30
James Dean Shepherd
5660a16d56 Minor grammar, typo & readability fixes for beginning of Rails Initialization guide 2011-11-20 02:36:50 +00:00
James Dean Shepherd
6b4939c3fd Added links to the 'Rails Initialization Guide', marked as a work in progress 2011-11-20 02:34:55 +00:00
lest
c220b4d833 fix warning about instance variable in plugin generator 2011-11-19 21:58:30 +03:00
lest
39d2251d8a fix rails plugin new CamelCasedName bug
refs #3684
2011-11-19 19:09:09 +02:00
Matt Burke
ed5586fa9e Add config.active_record.identity_map to the configuration guide. 2011-11-18 14:10:17 -05:00
Vijay Dev
dda6787f44 mailer guide - update info about using default host. Fixes #3642 2011-11-19 00:07:50 +05:30
Vijay Dev
48b580a03b Merge branch 'master' of github.com:lifo/docrails 2011-11-18 23:11:46 +05:30
Vijay Dev
9d035292ba remove unneeded params from issue tracker url 2011-11-18 23:10:12 +05:30
Xavier Noria
1079724fe6 Revert "warn the user values are directly interpolated into _html translation strings"
Reason: After another round of discussion, it has been
decided to let interpolation deal with unsafe strings
as it should do.

This reverts commit d57d8098fc269a26ea0051a9027a33af1a9a4b2b.
2011-11-17 23:59:19 +01:00
Xavier Noria
d57d8098fc warn the user values are directly interpolated into _html translation strings 2011-11-17 23:07:06 +01:00
Vijay Dev
9b534060bf update guide: db:structure:dump produces structure.sql now 2011-11-18 01:17:21 +05:30
Sunny Ripert
8d17af23ef Guides: better example to find the last sent email 2011-11-17 17:05:53 +01:00
Alex Tambellini
0af93089de Move schema_format :sql config setting from test.rb to application.rb
I've moved the schema_format :sql config setting to application.rb because you would
never enable this only for the test environment. If you use database constraints
or database specific data types you would want all of your environments to use them.
2011-11-17 09:44:17 -05:00
capps
64a3175eea "denoted" instead of "donated"
"parentheses" instead of "use brackets"
2011-11-16 15:57:54 -08:00
Jon Leighton
a152fd34d3 Merge pull request #3608 from arunagw/unused_var_remove
Unused variable removed
2011-11-16 14:57:48 -08:00
Daniel Dyba
325abe9fba Substituted RailsCommands for Rails::Commands 2011-11-16 10:26:28 -08:00
Daniel Dyba
21c5a0a104 Changed Commands module to RailsCommands.
This is to avoid a conflict that occurs when you add Rake to
your Gemfile. There is a Commands Object in Rake that conflicts
with the Commands module in plugin.rb. See rails issue #1866.
2011-11-16 10:23:00 -08:00
rpq
bc00514b62 added comma 2011-11-15 23:20:21 -05:00
Sergey Parizhskiy
df08273d14 made url to a github issues a bit shorter - no need in a page param when it's a first page 2011-11-15 13:09:41 +02:00
Arun Agrawal
76b6027cd8 Unused variable removed 2011-11-15 13:23:27 +05:30
José Valim
2088f1b3b4 Merge pull request #3626 from guilleiguaran/include-therubyrhino-gemfile
Added therubyrhino to default Gemfile under JRuby
2011-11-14 09:53:57 -08:00
Guillermo Iguaran
49cd6a0ff7 Added therubyrhino to default Gemfile under JRuby 2011-11-14 07:07:38 -05:00
Jon Leighton
da02f792fe Sync CHANGELOGs from 3-1-stable 2011-11-14 11:28:12 +00:00
Jason Noble
8971cca7d0 Move tooltip on re-running rails new with a different --database option 2011-11-13 10:20:03 -07:00
Vijay Dev
e0efe48c45 Merge branch 'master' of github.com:lifo/docrails 2011-11-13 22:29:26 +05:30
Vijay Dev
30122307a1 copy edits in getting started guide 2011-11-13 22:27:44 +05:30
Vijay Dev
af51409de4 Revert "Move Tip up higher so users who are fine with SQLite can skip to the next section"
This reverts commit 4bf057b8661754948681a18cf17ff5676518d774.

Reason: Prefer to keep the configuration of all databases at the same
level
2011-11-13 22:07:54 +05:30
Vijay Dev
c8c08bd000 Revert "Use rails help new instead of rails new -h"
This reverts commit 6ac65c92029d3eefd101f9458d86bae0314cd14c.
2011-11-13 21:57:39 +05:30
Vijay Dev
e1099eb4fd Revert "Update guide to use Ruby 1.9 hash syntax"
This reverts commit 50a9de514f8724b04d3681aa9ca228a8ca490909.

Reason: Let's keep the guides at 1.8 syntax
2011-11-13 21:50:18 +05:30
Jason Noble
50a9de514f Update guide to use Ruby 1.9 hash syntax 2011-11-13 03:15:56 -07:00
Jason Noble
a3156ac0f2 Add output for add_index command 2011-11-13 03:15:22 -07:00
Jason Noble
0774f22941 Convert tables to table format 2011-11-13 03:13:58 -07:00
Jason Noble
c0ee497436 Grammar change 2011-11-13 03:12:13 -07:00
Jason Noble
5e83491e97 Be explicit on where the show.html.erb is located 2011-11-13 01:40:28 -07:00
Jason Noble
3e3872b598 Make the guide more friendly
- Changed Rails 3.0 to 3.0+
2011-11-13 01:35:08 -07:00
Jason Noble
9b96f7414e Be explicit about changing code 2011-11-13 01:33:29 -07:00
Jason Noble
cb552f807e p.errors.full_messages is a little more human readable 2011-11-13 01:32:26 -07:00
Jason Noble
fc8f0a85b5 Add link to AR Validations and Callbacks to further explain validations 2011-11-13 01:31:33 -07:00
Jason Noble
1394c5447a Update wording to read better 2011-11-13 01:31:07 -07:00
Jason Noble
06a8d16c8e Update wording to be more explicit on what the timestamp fields track 2011-11-13 01:29:11 -07:00
Jason Noble
094bb8e50c Update order so they show up in the order they do in the scaffolding output 2011-11-13 01:28:09 -07:00
Jason Noble
434fbe454c Update wording to flow better 2011-11-13 01:27:14 -07:00
Jason Noble
703d5c2033 Fix typo 2011-11-13 01:26:23 -07:00
Jason Noble
4bf057b866 Move Tip up higher so users who are fine with SQLite can skip to the next section 2011-11-13 01:25:45 -07:00
Jason Noble
194a42e7aa Updated wording to read better 2011-11-13 01:24:44 -07:00