Commit Graph

18918 Commits

Author SHA1 Message Date
Santiago Pastorino
afd76d7fe9 Fix error in routing guide edit_photo_path needs the id as param 2010-10-09 14:50:25 -02:00
Santiago Pastorino
6286629aca This test is not only testing config/database stuff anymore 2010-10-09 13:36:54 -02:00
Aditya Sanghi
36862511e0 test that skip active records does not load fixtures
[#4104 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-09 13:31:37 -02:00
Santiago Pastorino
e7f911d5ca Test if test/performance/browsing_test.rb exists when --skip-activerecord is used
[#4104]
2010-10-09 13:11:26 -02:00
Andrea Campi
e695c40e11 Fix example that became outdated after a code change.
[#5770 state:resolved]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-09 12:57:57 -02:00
Juan Maiz
b439c14516 Fixing two minor errors in Rails::Generators::Actions initializer method comments
[#5771 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-08 19:19:17 -02:00
Andrew White
067c1aa0e0 Refactor resource action scope methods 2010-10-08 22:00:27 +01:00
James Mead
f415b3e6d1 Remove old workaround for mocha bug. [#3886 state:committed]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-08 15:21:08 -02:00
Santiago Pastorino
e9793c60b6 Makes this code a bit more clear 2010-10-08 15:15:12 -02:00
Ryan Bigg
5826c17307 Remove the final initializers since initializers += will return it anyway. [#3892 state:resolved]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-08 15:15:08 -02:00
Piotr Sarnacki
e68c87bb65 Fix engines test
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-08 18:23:32 +02:00
Piotr Sarnacki
08f4713dba Refactored routes reloading to use RouteSet#append instead keeping block in Engine
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-08 18:23:25 +02:00
José Valim
f1f2fb8ae7 Cleanup logger a bit. 2010-10-08 16:14:39 +02:00
José Valim
a0e482e807 Ensure rack body responds to each. 2010-10-08 09:29:07 +02:00
José Valim
54b09e17d4 Fix 1.9.2 failures. 2010-10-08 09:24:06 +02:00
Vesa Vänskä
c3c6f58ffb Fixed rake task description typo 2010-10-08 15:14:10 +08:00
Aaron Patterson
740d7e5aa2 removing false comment 2010-10-07 16:40:15 -06:00
Michael Koziarski
581b2b6836 fix rendering a partial with an array as its :object [#5746 state:resolved]
Signed-off-by: Michael Koziarski <michael@koziarski.com>

Conflicts:

	actionpack/lib/action_view/render/partials.rb
2010-10-08 11:12:11 +13:00
José Valim
c7760809bf Allow cache to be temporarily disabled through lookup_context. 2010-10-07 21:31:31 +02:00
José Valim
c563f10f3e render :template => 'foo/bar.json' now works as it should. 2010-10-07 21:31:31 +02:00
José Valim
8f9e9118e4 Make collection rendering faster. 2010-10-07 21:31:31 +02:00
José Valim
b2600bfc18 Remove locals dependency from template.
This means that templates does not need to store its source anymore, allowing us to reduce the ammount of memory taken by our Rails processes. Naively speaking, if your app/views contains 2MB of files, each of your processes (after being hit by a bunch of requests) will take 2MB less of memory after this commit.

This is extremely important for the upcoming features. Since Rails will also render CSS and JS files, their source won't be stored as well allowing us to decrease the ammount of memory taken.
2010-10-07 21:31:31 +02:00
Santiago Pastorino
ad13eb7295 Add a TODO to remove gem "jruby-openssl" when jruby-openssl is merge in jruby
[#5762]
2010-10-07 13:50:20 -02:00
Gaston Ramos
cec6f3fe20 - update documentation
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-07 16:50:47 +02:00
Gaston Ramos
aee043de5a - ActiveResource::HttpMock.respond_to
do not replace the response with the same path but different method
- Fix typo

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-07 16:50:41 +02:00
Gaston Ramos
b9f8501f82 - Fix ActiveResource::HttpMock.respond_to replace the response
if it has the same request

Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-07 16:50:34 +02:00
José Valim
243513f4d1 Get rid of ruby warnings in Resolvers. Move a few methods up to the abstract class. 2010-10-07 16:46:12 +02:00
Anil Wadghule
ea30da3069 Add jruby-openssl gem in Gemfile necessary for JRuby
[#5762 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-07 11:48:40 -02:00
Ryan Bigg
1e63a05d28 Add "a" to make it better English
[#3796 state:committed]

Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-07 11:40:57 -02:00
Xavier Noria
db520042b3 Merge branch 'master' of git://github.com/lifo/docrails 2010-10-06 23:16:13 +02:00
Thomas McDonald
3ca6988b78 Fixed typo in engine documentation 2010-10-06 22:11:03 +01:00
Hemant Kumar
2a04110f26 fix ruby 1.9 deadlock problem, fixes #5736 add connection pool tests 2010-10-06 14:45:56 -06:00
Rafael Mendonça França
a0552d653b Fixes typo 2010-10-06 12:55:16 -03:00
José Valim
d649bf158b Provide a cleaner syntax for paths configuration that does not rely on method_missing. 2010-10-06 17:20:15 +02:00
wycats
d40ca9cce2 Some initial docs 2010-10-06 03:06:12 -07:00
wycats
0904e82568 Delegate everything to the generator 2010-10-06 02:58:49 -07:00
wycats
848eb0d777 Revert "Clean up the builder abstraction in AppGenerator."
The phrase "clean up" misrepresents the fact that this removes
a feature that ships with Rails 3.0.

This reverts commit 6774e12afa0f29442aa612ddf6e51d5a1b7a4356.
2010-10-06 02:53:00 -07:00
José Valim
6774e12afa Clean up the builder abstraction in AppGenerator.
This commit may be reverted once documentation and a proper way to handle actions are added.
2010-10-06 11:13:57 +02:00
Aditya Sanghi
ae812e9fc9 adding test for namedspaced mailers 2010-10-06 19:45:13 +11:00
Aditya Sanghi
990719bb59 mailer comment should use namespace in comment 2010-10-06 19:45:13 +11:00
Erik Michaels-Ober
19a5f99685 Fix copy/paste bug
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-06 09:21:01 +02:00
Xavier Noria
3b7d48cc45 a couple of touches to the guides guidelines 2010-10-05 22:52:43 +02:00
Xavier Noria
da34ee423f aaaaannnddd, your beloved typo only spotted in the github colored diff no matter how many passes you did before pushing 2010-10-05 19:38:05 +02:00
Xavier Noria
360a878070 new guide: Ruby on Rails Guides Guidelines 2010-10-05 19:34:27 +02:00
José Valim
68d75c3365 Don't expect an AD::Response object back from the app. 2010-10-05 09:55:51 +02:00
José Valim
4a4ff148ff Use RbConfig instead of Config for 1.9.3 compatibility. 2010-10-05 09:48:32 +02:00
Aaron Patterson
e3acdcfbf3 refactoring to use fewer intermediate variables 2010-10-04 20:05:56 -07:00
Aaron Patterson
839e2f9664 cleaning up more crazy! 2010-10-04 20:00:55 -07:00
Aaron Patterson
714fea4540 deleting more crazy 2010-10-04 19:52:17 -07:00
Aaron Patterson
333a5659e8 dry up some crazy codes 2010-10-04 19:46:38 -07:00