Commit Graph

15408 Commits

Author SHA1 Message Date
Jeremy Roman
ffb22bd2be fix habtm documentation to correct typo
Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
2010-03-26 13:35:56 +04:30
retr0h
cbdb4aa287 Updated ActionController::Base.asset_host example
The example provided contrived.  It is not useful when wanting to use
1-based asset hosts (since it would generate a random asset host for
the same asset).

Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
2010-03-25 21:55:21 +04:30
Rizwan Reza
94381b2d5a Routes guide being rewritten, done till :singular. 2010-03-25 04:04:19 +04:30
Brian Doll
3807db8e99 Fixing spelling error in activerecord guide in the validation callbacks section, closing issue #2 2010-03-24 09:29:55 -07:00
Xavier Noria
926ff0e0a1 AS guide: documents Module#remove_possible_method 2010-03-23 00:19:17 +01:00
Xavier Noria
dea701bd2c normalizes titles of release notes guides, and adds them to the home page 2010-03-19 21:49:48 +01:00
Xavier Noria
02be581f45 s/guides.rails.info/edgeguides.rubyonrails.org/ in a few places, and makes some links relative to work in either site 2010-03-19 21:39:42 +01:00
Xavier Noria
61f6749fb7 guides generator skips untouched guides by default, override with ALL=1 2010-03-17 23:03:48 +01:00
Xavier Noria
b6edffa640 AS guide: completes section about loading AS core extensions within a Rails application 2010-03-16 23:38:08 +01:00
Xavier Noria
f9edf89d57 AS guide: adds extension to file name 2010-03-16 22:52:39 +01:00
Xavier Noria
9209f7bafc guides generation: undoes output buffer workaround, more refactors 2010-03-15 22:06:27 +01:00
Pratik Naik
03a62f4afe Merge remote branch 'mainstream/master' 2010-03-15 19:46:03 +00:00
Xavier Noria
a594a22267 with_output_buffer cannot assume there's an output_buffer
[#4182 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-15 11:26:51 -07:00
Jeremy Kemper
c937da9e2f to_str works here 2010-03-15 11:18:45 -07:00
Jeremy Kemper
ed199554f1 CI: sudo rm to sledgehammer bad perms 2010-03-15 11:01:16 -07:00
Jeremy Kemper
30f5f95544 Hack to keep column metadata queries out of test query counts 2010-03-15 11:00:25 -07:00
Aaron Patterson
5de3698e2b cleaning up many more warnings in activerecord [#4180 state:resolved]
Signed-off-by: wycats <wycats@gmail.com>
2010-03-15 08:57:41 -07:00
Xavier Noria
f53fddf366 AS guide: documents a use case for :instance_writer, based on a remark of Jeremy 2010-03-15 16:11:13 +01:00
Andrew White
96bc6bcfee Don't force singularization of singleton resource names, e.g. /preferences [#4089 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
2010-03-15 09:45:29 -05:00
Xavier Noria
ac202a26ce refactors some bits of the guides generator, ONLY selection accepts prefixes, guides generation fixed for 1.9, revised string safety in a few spots 2010-03-15 09:57:08 +01:00
Jeremy Kemper
16572fd46e read_ and write_fragment cache preserve html safety yet cache strings only 2010-03-14 19:09:32 -07:00
Aaron Patterson
95bd56e3cc speeding up clone_attributes, changing readonly to be initialized in def initialize
Signed-off-by: wycats <wycats@gmail.com>
2010-03-14 17:29:25 -06:00
Aaron Patterson
115230e619 cleaning up some test warnings
Signed-off-by: wycats <wycats@gmail.com>
2010-03-14 17:28:27 -06:00
Santiago Pastorino
d1eed89ac3 There's a Ruby issue with File.basename different versions returns different things, so we shouldn't test that 2010-03-14 14:57:45 -05:00
Santiago Pastorino
beeb02076a Making escaped things more readable 2010-03-14 12:07:15 -05:00
José Valim
3da9a08a73 Optimize DetailsKey generation. 2010-03-14 10:25:29 +01:00
Xavier Noria
c8f1aac761 restricts a test to < 1.9, and rewrites it using a proper expectation
Signed-off-by: wycats <wycats@gmail.com>
2010-03-13 17:04:08 -06:00
José Valim
4ba334c0f4 Ensure controller filters are executed before stuff starts to happen. 2010-03-13 21:28:34 +01:00
Jeroen van Dijk
d252766d03 Update of block helpers examples in form_helper.rb 2010-03-13 17:30:30 +01:00
José Valim
ee4c89627a Remove formats setters from render template, speeding up partial and collection renderings. 2010-03-13 09:15:13 +01:00
Xavier Noria
89eae2d187 adds coverage for the issue addressed in fe43bbd
[#4166 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-12 13:22:47 -08:00
Caio Chassot
94a60a5600 In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command.
This ensures that eg. when `rails` is called from `ruby1.9`, `bundle1.9` is called.

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Kieran Pilkington
9268b598bb Add a check to ensure that the application name does not already exist, i.e. String or Module are part of ruby [#3872 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
Denis Odorcic
e484d4ae56 Made asset_tag_helper use config.perform_caching instead of ActionController::Base.perform_caching
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-12 21:33:39 +01:00
José Valim
b8f7ba2935 Prettify generators description whenever using the default stack [#4143 status:resolved] 2010-03-12 21:33:39 +01:00
Xavier Noria
fe43bbd8c7 keep AssociationProxy#to_a to avoid warning in Array(post.author), and delegate it to @target in association collections
[#4165 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-12 11:53:22 -08:00
José Valim
611744ebd3 Load the environment before executing rails console. [#3905 status:resolved] 2010-03-12 20:41:41 +01:00
José Valim
2b0611b9bb Revert "Always load the environment before executing any command. [#3905 status:resolved]"
This reverts commit 16846553b8.
2010-03-12 20:40:34 +01:00
José Valim
f2c0a353ae Finish cleaning up rendering stack from views and move assigns evaluation to controller (so plugins and/or controllers can overwrite just one method). 2010-03-12 20:39:53 +01:00
Jeroen van Dijk
20eb1ca77e Updated documentation for block helpers in render/layouts.rb 2010-03-12 17:15:21 +01:00
Pratik Naik
e68bfaf1fe Merge remote branch 'mainstream/master'
Conflicts:
	activerecord/lib/active_record/base.rb
	railties/lib/rails/configuration.rb
	railties/lib/rails/log_subscriber.rb
2010-03-12 16:00:01 +00:00
Jeroen van Dijk
ef6462c730 Updated documentation for block helpers in render/partials.rb 2010-03-12 16:50:15 +01:00
Jeroen van Dijk
67de0af604 Updated documentation for block helpers in form_tag_helper.rb 2010-03-12 16:50:14 +01:00
Jeroen van Dijk
a098720719 Updated documentation for block helpers in javascript_helper.rb 2010-03-12 16:50:14 +01:00
Jeroen van Dijk
363616572d Updated documentation for block helpers in prototype_helper.rb 2010-03-12 16:50:14 +01:00
Jeroen van Dijk
e8d2f48cff Updated documentation for block helpers in record_tag_helper.rb 2010-03-12 16:50:14 +01:00
Jeroen van Dijk
04963f16c2 Updated documentation for block helpers in tag_helper.rb 2010-03-12 16:50:14 +01:00
Jeroen van Dijk
e98474096a Updated documentation for block helpers in url_helper.rb 2010-03-12 16:50:14 +01:00
José Valim
2a12686832 Allow anything that responds to render to be given as :template and use find_template instead of find in views. 2010-03-12 14:25:10 +01:00
José Valim
16846553b8 Always load the environment before executing any command. [#3905 status:resolved] 2010-03-12 12:53:22 +01:00