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
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
Thomas R. Koll
45ceacd6de
load_path is expecting a String in the application.rb generator
...
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
2010-02-25 10:45:34 -08:00
Jeremy Kemper
f7b0a857e9
Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.
2010-02-25 09:32:29 -08:00
Carl Lerche
ba57575e03
Remove references to ActionDispatch::Routing::Routes in favor of Rails.appication.routes.
2010-02-24 10:52:16 -08:00
Carlhuda
5e2bd08023
Makes send_file work again by deferring to Rack::Sendfile.
...
* Add the Rack::Sendfile middleware
* Make the header to use configurable via config.action_dispatch.x_sendfile_header (default to "X-Sendfile").
* Add Railties tests to confirm that these work
* Remove the :stream, :buffer_size, and :x_senfile default options to send_file
* Change the log subscriber to always say "Sent file"
* Add deprecation warnings for options that are now no-ops
Note that servers can configure this by setting X-Sendfile-Type. Hosting companies and those creating packages of servers specially designed for Rails applications are encouraged to specify this header so that this can work transparently.
2010-02-23 17:06:35 -08:00
David Chelimsky
a6684eeb78
don't set @expected.date in generated mailer test
...
Signed-off-by: Mikel Lindsaar <raasdnil@gmail.com>
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-22 09:15:27 +01:00
Martin Schürrer
6bc24d40d5
Use ActionDispatch::Routing everywhere
2010-02-21 13:43:51 -08:00
Martin Schürrer
4cdfe98d92
Typo
2010-02-21 13:43:51 -08:00
José Valim
4477bccda6
Also check if application is a valid constant in rake rails:update.
2010-02-21 13:44:08 +01:00
José Valim
fed72b5842
Rename engines_load_path to railties_load_path.
2010-02-20 15:46:55 +01:00
José Valim
e49f94d71c
Revert behavior from a5684dfa3c16472bfa5d5d861ba78cb6dbadcb59 and ensure after_initializer is executed after to_prepare callbacks.
2010-02-19 08:15:49 +01:00
José Valim
a5684dfa3c
Ensure config.after_initializer is executed before building the middleware stack.
2010-02-18 18:56:11 +01:00
Aaron
1477a6101d
Fix called_from under Windows so engines works properly
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-18 18:36:55 +01:00
José Valim
d0454e5766
Add readme as method in Rails::Generators::Actions (as we had in 2.3)
2010-02-17 18:43:40 +01:00
Kyle Maxwell
d4e008fd0f
Invalid namespace on app generation raises an error
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-17 00:38:30 +01:00
José Valim
23fd1f1280
Show deprecation message for rails/init.rb in plugins.
2010-02-17 00:18:12 +01:00
José Valim
01cd9d66ed
Subscriber should not explode if a non namespaced instrumentation is given.
2010-02-16 22:39:07 +01:00
Prem Sichanugrist
f0523f72b4
Rename Rails::Subscriber to Rails::LogSubscriber
2010-02-16 22:36:15 +01:00
Yehuda Katz
411c15ed52
require Strings, not Symbols
2010-02-14 11:56:21 -08:00
Carl Lerche
eea28b07cf
Remove backtrace cleaner specific to Bundler. Bundler just uses Gem.dir and Gem.path now.
2010-02-11 10:29:50 -08:00
Jeremy Kemper
8afcd33246
Resolve test/unit load ordering by removing backtrace filter from boot initializers
2010-02-11 09:01:52 -08:00
Michael Bleigh
9c654744fb
Fixes unescaped version passthrough of generator 'gem' command. [ #3901 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:28:03 +01:00
Simo Niemelä
cafe882d12
Fix server environment [ #3877 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:14:02 +01:00
Prem Sichanugrist
f337ebc308
Add default values to output of 'rails server -h', hardcoded as Rack::Server did since options doesn't have any data at the time of parsing arguments [ #3910 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:27 +01:00
Prem Sichanugrist
af22c5b16a
Add missing -h/--help flag to several rails command [ #3909 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 08:08:16 +01:00
David Heinemeier Hansson
834a45d8a2
Suggest Mongrel and Capistrano in the default bundle
2010-02-09 17:12:37 -08:00
Jeremy Kemper
39ebd6eb2b
rails runner loads environment after parsing command-line options
2010-02-09 08:40:21 -08:00
José Valim
7f7dfd2bab
Take into account gem versions (so script/rails server can work outside the application) and use Rails::Application.root instead of ROOT_PATH.
2010-02-08 16:05:22 +01:00
Mikel Lindsaar
17b451898c
Updating Prototype to 1.6.1 and script.aculo.us to 1.8.3
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-08 09:42:40 +01:00
José Valim
518b4ff478
Check if Test::Unit is defined before adding backtrace filter.
2010-02-07 14:51:23 +01:00
José Valim
345e0b274c
Add backtrace cleaner on test unit railtie.
2010-02-07 13:45:47 +01:00
Dan Kubb
ca1879b730
Added newline to appended gem config in Gemfile
...
Signed-off-by: Yehuda Katz <yehudakatz@YK.local>
2010-02-06 23:38:58 -08:00
Jeremy Kemper
9423c2a7d8
Merge remote branch 'fxn/master'
2010-02-06 13:03:41 -08:00
RomD
f44a0b1d52
fix usage examples and more to use new invocations
...
Signed-off-by: Carl Lerche <carllerche@mac.com>
2010-02-06 09:51:53 -08:00
Xavier Noria
bd5cb0562e
rack debugger needs active_support/core_ext/kernel/requires for require_library_or_gem
2010-02-06 18:35:44 +01:00
José Valim
6958eac1a0
Add config.generators.templates to provide alternative paths for template lookup.
2010-02-06 17:32:06 +01:00
Prem Sichanugrist
1d9d9d2d89
Fix tiny version number from '3.0.0beta' to '3.0.0.beta1', so 'rake install' will be run correctly [ #3879 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-06 15:51:44 +01:00
Henrik N
95b63c6a07
Fix 'rails server -h' double help banner. Correct its usage line. [ #3874 status:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-06 13:03:52 +01:00
David Heinemeier Hansson
c76df7a2d5
Cleanup comments
2010-02-05 18:45:26 -08:00
David Heinemeier Hansson
33a90f5079
Not a fan of the double ##
2010-02-05 18:41:46 -08:00