aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
Commit message (Collapse)AuthorAgeFilesLines
* Revert "files in the lib directory are no longer autoloaded"Xavier Noria2010-06-211-5/+1
| | | | | | | This patch is not consistent since it leaves similar directories in load_paths, needs more thought. This reverts commit b5fe014fdcc285f3bcb8779c4f7cfbc5a820856f.
* Alias app to build_middleware_stack for clarity.José Valim2010-06-212-1/+2
|
* Remove unused webrick_server file.José Valim2010-06-211-156/+0
|
* files in the lib directory are no longer autoloadedXavier Noria2010-06-211-1/+5
| | | | | | | | | | | Conceptually, the lib directory is closer 3rd party libraries than to the application itself. Thus, Rails adds it to Ruby's load path ($LOAD_PATH, $:) but it is no longer included in dependencies' load paths. To enable autoloading back put this in your config/application.rb config.load_paths += %W( #{config.root}/lib )
* Use the new ActiveSupport::FileUpdateChecker instead of RoutesReloader.José Valim2010-06-202-49/+10
|
* Improve documentation for add_lib_to_load_paths!José Valim2010-06-201-3/+16
|
* Added absolute path for config.ru as well. Turns out this is also needed to ↵Ryan Duryea2010-06-201-1/+2
| | | | | | | | fix the daemon issue under ruby 1.8.7 [#4531 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Pass rack the absolute path of server's pid fileRyan Duryea2010-06-201-1/+1
| | | | | | | | | When running as a daemon, rack will cd to "/" and paths relative to the root of the rails app aren't valid when rack is setting up. Because of this, "rails server -d" was failing silently when trying to write it's pid file Signed-off-by: José Valim <jose.valim@gmail.com>
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-202-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Strip trailing whitespace from generated applications [#4905 state:resolved]Chris Griego2010-06-205-8/+8
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-206-5/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge branch 'master' of github.com:rails/railsJosé Valim2010-06-201-24/+36
|\
| * Adds a few connection parameters for IBM databases.Antonio Cangiano2010-06-181-24/+36
| | | | | | | | | | | | [#3852] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* | Clear DescendantsTracker on each request.José Valim2010-06-191-0/+2
|/
* edit pass: the names of Rails components have a space, ie, "Active Record", ↵Xavier Noria2010-06-145-5/+5
| | | | not "ActiveRecord"
* Tidy up generators based on latest change on AM.José Valim2010-06-131-1/+1
|
* Create mailers folder when starting a new rails appLawrence Curtis2010-06-121-0/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Support ruby 1.8.7 and 1.9.2 (and development versions)Jeremy Kemper2010-06-111-3/+17
|
* Single ruby version requirement messageJeremy Kemper2010-06-112-10/+5
|
* abort generation/booting on Ruby 1.9.1Xavier Noria2010-06-101-0/+6
|
* detect being inside a rails application even from a subdirectoryChad Fowler2010-06-102-19/+29
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Rails::Generators::GeneratedAttribute: tests, cleanups and a bugfix [#4631 ↵Jeff Kreeftmeijer2010-06-102-9/+24
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Cut down even further on rake -T noiseDavid Heinemeier Hansson2010-06-093-23/+78
|
* Cut down on tasks shown in rake -TDavid Heinemeier Hansson2010-06-095-21/+21
|
* Remove outdated section on web servers that didnt really tell you much anywayDavid Heinemeier Hansson2010-06-091-26/+1
|
* Remove needless links and search box and update doc linksDavid Heinemeier Hansson2010-06-091-17/+0
|
* You dont have to manually mention the application layout, its automatically usedDavid Heinemeier Hansson2010-06-091-1/+0
|
* Get ready for beta 4David Heinemeier Hansson2010-06-081-1/+1
|
* Hide remaining generators hooks [#4790 state:resolved]José Valim2010-06-081-1/+5
|
* Add delete to middleware stack proxy.José Valim2010-06-071-0/+4
|
* Improve performance of the Logger middleware by using simpler versions of ↵wycats2010-06-041-3/+4
| | | | methods
* Improve performance of the log subscriber by remembering the list of all ↵wycats2010-06-041-3/+10
| | | | loggers instead of trying to extract them each time
* Readme file changes:Rizwan Reza2010-06-051-56/+23
| | | | | | | * Took out stuff that's not relevant (or useful) anymore. * Some formatting. * Added helpful links to get started with Rails. * Took out Apache htaccess tutorial since we aren't teaching Apache here.
* Merge branch 'master' of git://github.com/rails/railsRizwan Reza2010-06-058-12/+23
|\
| * Missed fixing the banner on the Usage output for ThorMikel Lindsaar2010-06-041-1/+1
| | | | | | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
| * Changing command line API from 'rails blog' to 'rails new blog'.Mikel Lindsaar2010-06-044-5/+15
| | | | | | | | | | | | | | | | | | | | Also removed the limitation of not being able to call your new server any of the rails commands (generate, server, dbconsole, console etc) as there is no longer any ambiguity here. http://rails.lighthouseapp.com/projects/8994/tickets/4665 Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
| * Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2010-06-025-7/+16
| |\
| | * Still copy application configuration to generator even if they are required ↵José Valim2010-06-023-6/+4
| | | | | | | | | | | | earlier. Also tidy up the guide a little bit.
| * | You need the ruby-debug available in your Gemfile for debugger to workDavid Heinemeier Hansson2010-06-021-0/+3
| | |
* | | Improve Rails README [#4740 state:resolved]Matt Di Pasquale2010-06-051-119/+189
| |/ |/| | | | | Signed-off-by: Rizwan Reza <rizwanreza@gmail.com>
* | Add lib to load paths when application is inherited to be able to load lib ↵José Valim2010-06-022-1/+12
|/ | | | code during configuration.
* Remove the laziness from the middleware stack.José Valim2010-05-294-29/+31
|
* Removing Metal from Rails 3. wycats2010-05-2910-102/+8
| | | | | | | | | | | | | | | | | | | | If you have existing Metals, you have a few options: * if your metal behaves like a middleware, add it to the middleware stack via config.middleware.use. You can use methods on the middleware stack to control exactly where it should go * if it behaves like a Rack endpoint, you can link to it in the router. This will result in more optimal routing time, and allows you to remove code in your endpoint that matches specific URLs in favor of the more powerful handling in the router itself. For the future, you can use ActionController::Metal to get a very fast controller with the ability to opt-in to specific controller features without paying the penalty of the full controller stack. Since Rails 3 is closer to Rack, the Metal abstraction is no longer needed.
* performance and integration tests inherit from AD, not ACGonçalo Silva2010-05-282-2/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* refactor evals and adds some __FILE__ and __LINE__Santiago Pastorino2010-05-201-1/+1
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Kill legacy dispatcher.José Valim2010-05-181-24/+0
|
* Simplify cookie_store by simply relying on cookies.signed.José Valim2010-05-181-6/+2
|
* Revert "Moved encoding work in progress to a feature branch."wycats2010-05-172-1/+10
| | | | This reverts commit ade756fe42423033bae8e5aea8f58782f7a6c517.
* Moved encoding work in progress to a feature branch.Jeremy Kemper2010-05-162-10/+1
| | | | This reverts commits af0d1a88157942c6e6398dbf73891cff1e152405 and 64d109e3539ad600f58536d3ecabd2f87b67fd1c.
* Significantly improved internal encoding heuristics and support.wycats2010-05-162-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | * Default Encoding.default_internal to UTF-8 * Eliminated the use of file-wide magic comments to coerce code evaluated inside the file * Read templates as BINARY, use default_external or template-wide magic comments inside the Template to set the initial encoding * This means that template handlers in Ruby 1.9 will receive Strings encoded in default_internal (UTF-8 by default) * Create a better Exception for encoding issues, and use it when the template source has bytes that are not compatible with the specified encoding * Allow template handlers to opt-into handling BINARY. If they do so, they need to do some of their own manual encoding work * Added a "Configuration Gotchas" section to the intro Rails Guide instructing users to use UTF-8 for everything * Use config.encoding= in Ruby 1.8, and raise if a value that is an invalid $KCODE value is used Also: * Fixed a few tests that were assert() rather than assert_equal() and were caught by Minitest requiring a String for the message * Fixed a test where an assert_select was misformed, also caught by Minitest being more restrictive * Fixed a test where a Rack response was returning a String rather than an Enumerable