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
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
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
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
Carl Lerche
15b3b74624
Fix all the broken tests due to the AC configuration refactor
2010-03-03 21:24:27 -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
aa749a74f6
Get the railties tests to pass again.
2010-03-02 14:00: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
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
Joshua Peek
82deaf5f05
nested controllers need to be explicitly declared with the new mapper
2010-02-28 18:43:20 -06: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
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
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
Jeremy Kemper
ffc45f3e71
Fix dangling klass reference
2010-02-25 11:01:15 -08:00
Jeremy Kemper
c7f9e8c06c
Fix test on 1.8.8. Broken by inherited hook now running before Class.new block.
2010-02-25 10:46: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
47498a7f59
Woops, forgot to actually add active_support/core_ext/file/path.rb
2010-02-23 17:42:26 -08:00
Carlhuda
24ab5665b2
Revert "Fix test load paths for those not using bundler"
...
This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818.
This commit broke tests. You cannot have a file called "bundler" on the load path.
2010-02-23 17:31:17 -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
Martin Schürrer
6bc24d40d5
Use ActionDispatch::Routing everywhere
2010-02-21 13:43:51 -08:00
José Valim
7fe4ca3253
Add a test for default_url_options in AM.
2010-02-21 13:19:21 +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
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
José Valim
3f948a0e29
Merge master.
2010-02-17 00:48:04 +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
Joshua Peek
eec2d301d4
Fix test load paths for those not using bundler
2010-02-15 10:20:11 -06:00
José Valim
97650bf54a
Fix a couple failing tests.
2010-02-10 08:33:41 +01: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
Mikel Lindsaar
7d76474e5d
Debrittlize tests somewhat - fix for CI build
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-02-10 07:26:01 +01:00
José Valim
518b4ff478
Check if Test::Unit is defined before adding backtrace filter.
2010-02-07 14:51:23 +01: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
José Valim
6958eac1a0
Add config.generators.templates to provide alternative paths for template lookup.
2010-02-06 17:32:06 +01:00
Yehuda Katz
b392c81869
Fixes test fail
2010-02-05 21:30:26 -08:00
Jeremy Kemper
5c07c33ab4
Move framework requires and Bundler.require from boot.rb to app.rb. Cut down the list of railtie choices to those that make sense.
2010-02-04 10:08:06 -08:00
José Valim
79376e3c9d
Update Gemfile to use latest bundler config.
2010-02-04 13:53:37 +01:00
Mikel Lindsaar
80e49354f1
Updating index.html to remove script/generate and making railties tests pass again
2010-02-02 21:13:01 -08:00