Commit Graph

2865 Commits

Author SHA1 Message Date
Joshua Peek
14b7452c57 Require info controller from info routes 2010-03-20 13:33:25 -05:00
Joshua Peek
f38e89cfba Move railties/builtin into lib 2010-03-20 12:34:21 -05:00
Sam Ruby
80095c54bd Controller generators should generate tests when action is supplied. [#3421 state:resolved] 2010-03-20 00:51:56 +01:00
Carlhuda
7f53dca1a1 Fix protect_against_forgery 2010-03-19 11:11:02 -07:00
José Valim
562154fcbc Controller generator now creates routes as well [#4233 state:resolved] 2010-03-19 18:12:54 +01:00
Sebastian Martinez
b395c81e3c removed useless require line
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-19 11:08:06 +01:00
José Valim
7a5da21481 Use human_name in scaffold. 2010-03-17 00:09:43 +01:00
José Valim
0db68fd140 Change functional tests to make use of a setup block. 2010-03-16 16:53:54 +01:00
Chris Griego
0f504a5646 Deprecated framework rake tasks should exit with non-zero exit code [#4177 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-03-16 11:10:30 +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
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
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
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
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
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
Carlhuda
aa749a74f6 Get the railties tests to pass again. 2010-03-02 14:00:25 -08: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