aboutsummaryrefslogtreecommitdiffstats
path: root/railties
Commit message (Collapse)AuthorAgeFilesLines
* no need to check for nilNeeraj Singh2010-09-301-1/+1
|
* Add more information to comments.José Valim2010-09-301-3/+5
|
* Try to guess application's directory while trying to run the server, but ↵Piotr Sarnacki2010-09-301-0/+5
| | | | only if config.ru is not present in current dir
* Moved Rails::RoutesReloader to Rails::Application::RoutesReloaderPiotr Sarnacki2010-09-303-56/+57
|
* Allow running generators for Engine with usage of other application.Piotr Sarnacki2010-09-301-1/+11
| | | | | | | | After that commit, developers can set ENGINE_PATH in ENGINE/scripts/rails file and load application's ./script/rails (most of the time it will be dummy application used for testing). When running ./script/rails g it will use application to boot up, but then it will use Engine's root and configuration for generators.
* Added config.app_generators to allow configuring application's generators ↵Piotr Sarnacki2010-09-304-4/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from railties. With config.generators becomes a way to configure generators for current instance only. For example: module Blog class Engine < Rails::Engine config.generators do |g| g.orm :active_record end config.app_generators do |g| g.test_framework :rspec end end end such definition sets :active_record as orm for engine and :rspec as test_framework for application. The values set with app_generators can be overwritten in application using config.generators as you would normally do: module MyApp class Application < Rails::Application config.generators do |g| g.test_framework :test_unit end end end
* Move routes_reloader to a class: RoutesReloaderPiotr Sarnacki2010-09-303-23/+57
|
* Properly reload routes defined in class definitionPiotr Sarnacki2010-09-303-6/+62
| | | | | | | | | | | | | | | | | Sometimes it's easier to define routes inside Engine or Application class definition (e.g. one file applications). The problem with such case is that if there is a plugin that has config/routes.rb file, it will trigger routes reload on application. Since routes definition for application is not in config/routes.rb file routes_reloader will fail to reload application's routes properly. With this commit you can pass routes definition as a block to routes method, which will allow to properly reload it: class MyApp::Application < Rails::Application routes do resources :users end end
* Do not overwrite _railtie method on namespace while creating isolated engine ↵Piotr Sarnacki2010-09-302-12/+33
| | | | | | | | | or application. In order to run Engine as standalone application, you will need Rails::Application instance in the same namespace that engine one. It's very important to leave _railtie bound to whatever used "namespace" method first.
* Merge branch 'master' of github.com:lifo/docrailsXavier Noria2010-09-298-120/+167
|\
| * Cleanup of the References section.Joost Baaij2010-09-291-5/+1
| | | | | | | | | | | | | | | | Removed non-functional links. Removed links to API documentation. Removed link to Rails 2 material. Renamed "References" to "Further Reading".
| * Removed obsolete "advanced" plugin URLs.Joost Baaij2010-09-291-7/+0
| | | | | | | | | | | | | | | | | | | | | | These plugins are obsolete even for Rails 2, they have no place in a Rails 3 guide. Also removed "mad cool" reference. If anyone has ideas about cache plugins that *must* be included, I would love to know. As far as I am concerned the rails guides should stick to built-in methods and have a simple list of references for people wishing to investigate further. I will check out the references after this commit to see if they're up to date.
| * review commentsAditya Sanghi2010-09-251-3/+3
| |
| * add section about email with nameAditya Sanghi2010-09-251-0/+13
| |
| * Add section about multiple recipientsAditya Sanghi2010-09-251-0/+17
| |
| * Fixed routing examples in Routing guide. Updated URL to RoutingAssertions ↵Kulbir Saini2010-09-251-18/+18
| | | | | | | | module.
| * Updated 'Action Controller Overview' guide to rails 3 and fixed a few URLs ↵Kulbir Saini2010-09-251-11/+8
| | | | | | | | throwing 404s.
| * Updated all forms to accept UTF-8 encoding in Form Helpers guide wrt Rails 3.Kulbir Saini2010-09-251-11/+18
| |
| * Merge branch 'master' of git@github.com:lifo/docrailsKulbir Saini2010-09-241-1/+1
| |\
| | * Fixed typo (CategoriesControlleR -> CategoriesControlleR).Pedro Fayolle2010-09-231-1/+1
| | |
| * | Minor rephrasing in Active Record Quering and Layouts and Rendering guides.Kulbir Saini2010-09-242-36/+35
| |/ | | | | | | Example code fixes in Layouts and Rendering guide.
| * Fixes in associations_basics guide.Kulbir Saini2010-09-241-10/+10
| |
| * Updated guide to use ActiveRecord::Base.where instead of ↵Kulbir Saini2010-09-241-31/+56
| | | | | | | | | | | | ActiveRecord::Base.find. Added `where` as a method to has_many and has_and_belongs_to_many collections.
* | Add gem 'arel' from git commented out as an example of how to Bundle egde ↵Santiago Pastorino2010-09-291-0/+1
| | | | | | | | | | | | Rails with Arel edge [#5723 state:committed]
* | Bump up some depsSantiago Pastorino2010-09-261-1/+1
| |
* | Remove deprecated stuff in ActionControllerCarlos Antonio da Silva2010-09-264-8/+8
| | | | | | | | | | | | This removes all deprecated classes in ActionController related to Routing, Abstract Request/Response and Integration/IntegrationTest. All tests and docs were changed to ActionDispatch instead of ActionController.
* | Fix app and actions generators testsPiotr Sarnacki2010-09-252-0/+9
| | | | | | | | | | | | | | Normally Rails.application is an instance, but for those tests Rails.application needs to be class. Signed-off-by: José Valim <jose.valim@gmail.com>
* | Refactor a few methods connected with namespacing in ↵Piotr Sarnacki2010-09-251-8/+9
| | | | | | | | | | | | Rails::Generators::NamedBase Signed-off-by: José Valim <jose.valim@gmail.com>
* | Add namespacing to mailer generatorPiotr Sarnacki2010-09-252-0/+54
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Add namespacing for observer generatorPiotr Sarnacki2010-09-252-0/+24
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Add namespace for test_unit generatorsPiotr Sarnacki2010-09-254-3/+9
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Update abort message (ht: tilsammans).José Valim2010-09-251-1/+1
| |
* | Rails.application is set anyway, we don't need to set it manually, this was ↵Piotr Sarnacki2010-09-252-3/+1
| | | | | | | | | | | | purpose of different behavior in tests and in application Signed-off-by: José Valim <jose.valim@gmail.com>
* | Generators fix: properly check if module should be created when creating a ↵Piotr Sarnacki2010-09-252-1/+10
| | | | | | | | | | | | namespaced model Signed-off-by: José Valim <jose.valim@gmail.com>
* | got rid of the "ambiguous first argument; put parentheses or even spaces" ↵Jeff Kreeftmeijer2010-09-241-32/+32
| | | | | | | | | | | | warnings in the scaffold_generator tests [#4872 state:resolved] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Bump thor version requirement.José Valim2010-09-241-1/+1
| |
* | Refactor namespaced generators to use module_namespacing block helperPiotr Sarnacki2010-09-245-15/+16
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Generators are not aware of namespace of isolated engines and applicationsPiotr Sarnacki2010-09-246-8/+192
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Fix typo and add sanity test for code statistics rake task.Emilio Tagua2010-09-242-2/+7
| | | | | | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* | Ensures the app generator generates the correct @app_name. [#5434 ↵Fred Wu2010-09-242-4/+8
| | | | | | | | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* | only abort in test_help in production envDavid Chelimsky2010-09-241-3/+3
|/ | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* resolves rdoc conflictXavier Noria2010-09-237-53/+57
|\
| * some fixes in routing guideeparreno2010-09-221-5/+5
| |
| * Document form_for behaviour when using file_field inside the blockJoost Baaij2010-09-211-2/+4
| |
| * Remove mention of Rails 3 deprecated option ↵Simone Carletti2010-09-201-2/+0
| | | | | | | | | | config.action_controller.use_accept_header. See http://github.com/rails/rails/blob/v3.0.0/actionpack/lib/action_controller/deprecated/base.rb#L108-111
| * updated instructions to generate the migration for the ActiveRecord session ↵Diego Carrion2010-09-181-1/+1
| | | | | | | | store table
| * Updated yaffle_test.rb from 2.2 to require 'test_helper' and extend ↵Andrew Ferk2010-09-181-2/+2
| | | | | | | | ActiveSupport::TestCase
| * Removed leading : from database.yml fileAndrew Ferk2010-09-181-14/+14
| |
| * Updated output that should be seen from the initial rakeAndrew Ferk2010-09-181-2/+4
| |
| * Updated test_helper.rb to require the init.rb file from the correct folderAndrew Ferk2010-09-181-1/+1
| |