Commit Graph

4322 Commits

Author SHA1 Message Date
Pratik Naik
03a62f4afe Merge remote branch 'mainstream/master' 2010-03-15 19:46:03 +00: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
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
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
José Valim
b8f7ba2935 Prettify generators description whenever using the default stack [#4143 status:resolved] 2010-03-12 21:33:39 +01: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 16846553b8866eab2aa3b128a2a23a221a25f7e3.
2010-03-12 20:40:34 +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
José Valim
16846553b8 Always load the environment before executing any command. [#3905 status:resolved] 2010-03-12 12:53:22 +01:00
Jeremy Kemper
d56e8be22d Revert "Rake task for generating Rails documentation updated to support Bundler."
Incredibly slow. Fix gem_path to not load the bundle fresh each call.

This reverts commit 58796dcfc0d74fa3def752fa8b779f725f0747f0.
2010-03-11 13:23:58 -08:00
Rizwan Reza
58796dcfc0 Rake task for generating Rails documentation updated to support Bundler.
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-11 13:44:57 +01:00
Xavier Noria
8cc55777a8 release notes: minor edit pass 2010-03-11 12:29:17 +01:00
Mikel Lindsaar
0db8af1099 Updating 3.0 release notes with cookie session store and secret changes 2010-03-11 22:18:28 +11:00
Mikel Lindsaar
6932b180f8 Updating command line guide 2010-03-11 22:12:04 +11:00
Mikel Lindsaar
965fe59bff Merge branch 'master' of github.com:lifo/docrails 2010-03-11 22:07:48 +11:00
Jeremy Kemper
3d5d0286b3 Update scaffold to use <%= form_for 2010-03-10 16:04:12 -08:00
José Valim
6cee532a44 Added alert to layouts on scaffold. 2010-03-09 22:21:51 +01:00
Carlhuda
ae93789d9a Move middlewares to the Application level. If you want to modify the middleware, either use Rails.application.config.middleware or modify it in an initializer (if you need to set it relative to user-specified middleware). 2010-03-08 11:40:51 -08:00
wycats
79b0b5082c Aliasing class_eval makes JRuby ornery. 2010-03-07 22:34:39 -08:00
Jeremy Kemper
aa758b9388 Update generated Gemfile to use http://rubygems.org, unicorn instead of mongrel, and nokogiri instead of hpricot 2010-03-07 12:41:54 -08:00
Jeremy Kemper
4a89467f7c If RAILS_PATH isn't set, make a dummy doc task 2010-03-07 12:39:53 -08:00
Jeremy Kemper
ee580d0cc3 rake doc:rails complains loudly if there's no path to generate docs from 2010-03-07 12:06:48 -08:00
wycats
39d6f9e112 Make many parts of Rails lazy. In order to facilitate this,
add lazy_load_hooks.rb, which allows us to declare code that
should be run at some later time. For instance, this allows
us to defer requiring ActiveRecord::Base at boot time purely
to apply configuration. Instead, we register a hook that should
apply configuration once ActiveRecord::Base is loaded.

With these changes, brings down total boot time of a
new app to 300ms in production and 400ms in dev.

TODO: rename base_hook
2010-03-07 06:24:30 -08:00
Stefan Penner
4bc2cbc3cf Load RAILS_VERSION relative to the gemspec file. 2010-03-06 21:33:28 -08:00
José Valim
028e54c63d Add mailers to paths in case someone wants to access it directly and ensures deep nesting works in controllers. 2010-03-06 19:25:55 +01:00
Malcolm Locke
4adcbb6b2d Merge branch 'master' of git@github.com:lifo/docrails 2010-03-06 10:12:08 +13:00
Malcolm Locke
18a9906b1c Corrects setting of :method on custom form_for 2010-03-06 10:09:28 +13:00
Bryan Helmkamp
deb00bcb8c Read Rails version from a file instead of modifying the load path and doing requires
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-04 21:25:52 -08:00
Carlhuda
ecf84b239f Change generated code to replace faulty comment 2010-03-04 16:12:34 -08:00
Carlhuda
e311622e7b Deprecated ActionController::Base.session_options= and ActionController::Base.session_store= in favor of a config.session_store method (which takes params) and a config.cookie_secret variable, which is used in various secret scenarios. The old AC::Base options will continue to work with deprecation warnings. 2010-03-04 16:05:52 -08:00
Carlhuda
9795bf0e74 Fix Sam Ruby's tests and deprecation warnings 2010-03-04 12:12:04 -08:00
Carlhuda
1776969627 Move session and session_store onto ActionDispatch and add deprecation warnings 2010-03-04 11:58:30 -08:00
Carl Lerche
cc789ddc89 No need for a module if it's only being included once into an empty class. 2010-03-04 09:56:40 -08:00
Carl Lerche
15b3b74624 Fix all the broken tests due to the AC configuration refactor 2010-03-03 21:24:27 -08:00
Carlhuda
b160663bd1 Start refactoring the method of configuring ActionView 2010-03-03 21:24:01 -08:00
Carlhuda
52efbdcdef Add caller to request_uri deprecation notice 2010-03-03 21:24:00 -08:00
Carlhuda
93422af5d5 Move remote_ip to a middleware:
* ActionController::Base.ip_spoofing_check deprecated => config.action_dispatch.ip_spoofing_check
  * ActionController::Base.trusted_proxies deprecated => config.action_dispatch.trusted_proxies
2010-03-03 21:24:00 -08:00
Jaime Iniesta
36d28f5168 Update contribute guide so that it shows the new command to generate guides (rake generate_guides instead of rake guides) 2010-03-04 01:51:25 +01:00
Jaime Iniesta
5245bf8635 Updated 3_0_release_notes so that it specifies that the rack-mount gem needs to be version 0.4 2010-03-04 01:48:56 +01:00
Xavier Noria
dca6ddea04 the guides generator needs fileutils 2010-03-04 01:42:57 +01:00
Carlhuda
9731c5213b Don't rely on Rails.application global state in Config 2010-03-03 15:49:24 -08:00
Carl Lerche
7979da2fa8 Revert "In app_generator, fix hardcoded bundle call to derive the bundle executable name from Thor::Util.ruby_command."
This reverts commit 6f4c45199b791ac2c90aa6742f8ffbd62b02ed7b.

This breaks the tests. Please investigate.
2010-03-03 15:38:22 -08:00
Xavier Noria
71b29d1e56 AS guide: How to Load Core Extensions 2010-03-03 19:58:44 +01:00
Caio Chassot
6f4c45199b 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-03 10:12:42 +01:00
Joao Carlos
70b8495468 Better with #abort
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-03 10:12:42 +01:00
Teng Siong Ong
eca46e3102 Use non-deprecated Rails.application instead of ActionController::Dispatcher.new and ActionDispatch::Integration instead of ActionController::Integration for console.
[#4072 state:committed]

Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-03-02 21:56:37 -08:00
Mikel Lindsaar
6193be26ce Removing prototype and just using vanilla js 2010-03-02 18:46:14 -08:00
Xavier Noria
a368f3b170 AS guide: documents String#foreign_key 2010-03-03 00:18:57 +01:00
Xavier Noria
3100ec4355 AS guide: documents String#humanize 2010-03-03 00:05:01 +01:00
Xavier Noria
8627281e3b AS guide: documents String#constantize 2010-03-02 23:02:44 +01:00
Carlhuda
aa749a74f6 Get the railties tests to pass again. 2010-03-02 14:00:25 -08:00
Xavier Noria
3084898ca6 AS guide: documents String#classify 2010-03-02 22:29:58 +01:00
Carlhuda
c2dbc391a9 Have log subscribers subscribe to the actual events, so the subscriber doesn't subscribe to *every* event, so we can have events that are slow-ish but are not actually run in production. 2010-03-02 13:05:25 -08:00
Carlhuda
d434c54068 Log Tailer doesn't exist anymore. Removing some traces left over in tests. 2010-03-02 12:34:26 -08:00
Carlhuda
b01db07a9f Moved initializers for ActionMailer and ActionController into their own railties 2010-03-02 12:32:31 -08:00
Carlhuda
57bae9764e Fix a test that assumes that defined?(ActiveRecord) == defined?(ActiveRecord::Base) 2010-03-02 12:31:29 -08:00
Carlhuda
a64fcc1a8d :controller doesn't work for namespaced controllers anymore. 2010-03-02 12:06:40 -08:00
Jeremy Kemper
56ea20605a Wordsmith gem descriptions 2010-03-02 10:43:41 -08:00
Bryan Helmkamp
f221a6f19f Leverage VERSION constants from gemspecs to avoid tedious updates when releasing 2010-03-02 00:32:53 -05:00
Bryan Helmkamp
a4111bbca0 Update versions of all components to normalize them to new format 2010-03-02 00:32:48 -05:00
Jeremy Kemper
a0e8eca30b Fix unstated usage of Action Dispatch 2010-03-01 21:29:47 -08:00
Jeremy Kemper
812136a0b2 Fix unstated usage of Pathname 2010-03-01 19:29:12 -08:00
Bryan Helmkamp
11db694e0b Remove cruft in the gem packaging and release code 2010-03-01 19:00:19 -08:00
Jeremy Kemper
8bb162f008 Fix unstated usage of inflector 2010-03-01 18:52:07 -08:00
Xavier Noria
88c01b3f10 AS guide: documents String#tableize 2010-03-02 00:25:25 +01:00
Xavier Noria
fbce2327a9 AS guide: documents String#parameterize 2010-03-02 00:06:32 +01:00
Xavier Noria
aab42ccdab AS guide: documents String#demodulize 2010-03-01 23:42:12 +01:00
Xavier Noria
44bd3bd4ff AS guide: documents String#dasherize 2010-03-01 22:58:21 +01:00
Xavier Noria
71990a4157 AS guide: documents String#titleize 2010-03-01 22:35:18 +01:00
Xavier Noria
aed8c1f0a4 AV guide: titleize is defined by Active Support 2010-03-01 22:17:12 +01:00
Xavier Noria
0f847b95eb AS guide: documents String#underscore 2010-03-01 06:36:51 +01:00
Xavier Noria
1064c533ce AS guide: documents String#singularize 2010-03-01 05:43:56 +01:00
Xavier Noria
51e84bfbd6 AS guide: adds a real example for #pluralize 2010-03-01 05:35:01 +01:00
Joshua Peek
82deaf5f05 nested controllers need to be explicitly declared with the new mapper 2010-02-28 18:43:20 -06:00
Joshua Peek
a5da48d231 vendor/rails doesn't work anymore, remove it from the blank slate suggestion 2010-02-28 18:32:46 -06:00
Joshua Peek
7317d9ef4c Remove implicit controller namespacing from new dsl 2010-02-28 16:39:01 -06:00
Xavier Noria
947511e50e AS guide: shortens a sentence 2010-02-28 22:32:00 +01:00
Xavier Noria
68dd44cc62 AS guide: documents String#pluralize 2010-02-28 22:28:58 +01:00
Joao Carlos
020fdb28ee #exit accepts an integer, not a string
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-28 12:29:01 +01:00
Yehuda Katz
6ffc8364dc Explain why we're calling an empty callback 2010-02-27 17:29:28 -08:00
Yehuda Katz
b51c0d4d25 1.9 doesn't like lambda {} being called with arguments 2010-02-27 17:28:46 -08:00
Jeremy Kemper
b1b922d6ea Revert "Revert "Application detection should also allow dots in the path.""
Works after all. Culprit was 226dfc2.

This reverts commit 6189480b1878cdadb092fdfa32ba156a91e6a0e1.
2010-02-27 17:10:04 -08:00
Jeremy Kemper
6189480b18 Revert "Application detection should also allow dots in the path."
Ruby 1.9 regression.

This reverts commit 76237f163ff7ad2a64af926030e3449c547cafa2.
2010-02-27 16:59:18 -08:00
Xavier Noria
f3a7f0e028 plugins guide: rails/init.rb is deprecated 2010-02-28 00:14:48 +01:00
Ryan Bigg
56c162e75d Fix validates_exclusion_of error message as per http://bit.ly/9kxANI [gmile] 2010-02-28 09:42:06 +11:00
Jeremy Kemper
6324eeefd7 plugin rails/init.rb deprecation message 2010-02-26 16:08:00 -08:00
Carlhuda
98f77e0827 Rename named_url_helpers to url_helpers and url_helpers to url_for 2010-02-26 15:04:50 -08:00
José Valim
e6dffb70e6 reload! on console now works as expected. [#3822 status:resolved] 2010-02-26 12:09:39 +01:00
Dr Nic Williams
b56b9ee7d6 #add_source: Fixed docco + added required newline to line added to Gemfile
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 11:11:35 +01:00
Ramon Soares
79c47abe6c the folder public/javascripts should be created by default [#4027 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-26 10:54:44 +01:00
José Valim
36a234609d Update thor dependency. 2010-02-26 10:51:13 +01:00
José Valim
5893baa683 Add autoload to generators modules and fix failing test. 2010-02-26 10:44:53 +01:00
Carlhuda
8760add31a Get URL helpers working again in integration tests. 2010-02-25 17:53:30 -08:00
Carlhuda
fc4582fb66 Final pass at removing the router from a global constant 2010-02-25 17:53:29 -08:00
Carlhuda
9a5be2e5a8 Get Railties tests passing 2010-02-25 17:53:01 -08:00
José Valim
76237f163f Application detection should also allow dots in the path. 2010-02-26 02:35:14 +01:00
Jeremy Kemper
6e78fdbef0 Remove doubled period 2010-02-25 16:45:59 -08:00
Jeremy Kemper
e2795383cf Update plugin tasks dirs deprecation warning 2010-02-25 16:32:24 -08:00
Xavier Noria
4dcc4a0b60 AS guide: s/metaclass/singleton_class/ due to 0b87d11 2010-02-26 00:18:11 +01:00