For finer-grained control, set this to false and implement local_request? in controllers to specify which requests should provide debugging information on errors.Ĭnsole allows you to set class that will be used as console you run rails console. True by default in development and test environments, and false in production mode. If true then any error will cause detailed debugging information to be dumped in the HTTP response, and the Rails::Info controller will show the application runtime context in /rails/info/properties. Defaults to true.Ĭnsider_all_requests_local is a flag. Defaults to :file_store if the directory tmp/cache exists, and to :memory_store otherwise.Ĭlorize_logging specifies whether or not to use ANSI color codes when logging information. Options include one of the symbols :memory_store, :file_store, :mem_cache_store, :null_store, or an object that implements the cache API. Defaults to whatever is set for config.cache_classes.Ĭonfig.cache_store configures which cache store to use for Rails caching. Can also be enabled with threadsafe!.Ĭonfig.action_view.cache_template_loading controls whether or not templates should be reloaded on each request. Defaults to false in development mode, and true in test and production modes. Default is all directories under app.Ĭonfig.cache_classes controls whether or not application classes and modules should be reloaded on each request. Default is an empty array.Ĭtoload_paths accepts an array of paths from which Rails will autoload constants. All elements of this array must also be in autoload_paths. Otherwise, all autoloading happens only once. Relevant if config.cache_classes is false, which is the case in development mode by default. Shorter version of config.action_controller.asset_host.Ĭtoload_once_paths accepts an array of paths from which Rails will autoload constants that won't be wiped per request. Useful when CDNs are used for hosting assets, or when you want to work around the concurrency constraints builtin in browsers using different domain aliases. Start Here Getting Started with Rails Models Active Record Basics Rails Database Migrations Active Record Validations Active Record Callbacks Active Record Associations Active Record Query Interface Views Layouts and Rendering in Rails Action View Form Helpers Controllers Action Controller Overview Rails Routing from the Outside In Digging Deeper Active Support Core Extensions Rails Internationalization API Action Mailer Basics Securing Rails Applications Debugging Rails Applications Configuring Rails Applications Rails Command Line Tools and Rake Tasks Asset Pipeline Working with JavaScript in Rails Extending Rails Rails on Rack Creating and Customizing Rails Generators Contributing to Ruby on Rails Contributing to Ruby on Rails API Documentation Guidelines Ruby on Rails Guides Guidelines Maintenance Policy Maintenance Policy Release Notes Ruby on Rails 4.0 Release Notes Ruby on Rails 3.2 Release Notes Ruby on Rails 3.1 Release Notes Ruby on Rails 3.0 Release Notes Ruby on Rails 2.3 Release Notes Ruby on Rails 2.2 Release NotesĪctionView::Base.sanitized_allowed_lete 'div'Ĭonfig.asset_host sets the host for the assets.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |