aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails_generator/generators
Commit message (Collapse)AuthorAgeFilesLines
* Switch scaffolding templates to HTML 5 doctypeJoshua Peek2009-07-102-5/+6
|
* Add an model_subclass generator.Fabien Jakimowicz2009-05-274-0/+56
| | | | | | | | This generator creates a new model as a subclass of an existing model and the unit test for that model. Lets users avoid having to manually delete the fixtures and migration or remember to pass those arguments. [#2702 state:committed] Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Get Railties passing againYehuda Katz2009-05-162-2/+2
|
* Added db/seeds.rb as a default file for storing seed data for the database. ↵David Heinemeier Hansson2009-05-111-0/+5
| | | | Can be loaded with rake db:seed (or created alongside the db with db:setup). (This is also known as the "Stop Putting Gawd Damn Seed Data In Your Migrations" feature) [DHH]
* Fixed that template runner gem method to output :lib => false correctly ↵Damian Terentiev2009-03-121-1/+1
| | | | | | [#1940 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure TemplateRunner#ask? works with the rake task to apply a template ↵Andrew Timberlake2009-03-091-1/+1
| | | | | | [#1655 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use Array.wrap() instead of Array() and handle ↵Pratik Naik2009-02-281-1/+1
| | | | action_view.cache_template_loading being false
* Ensure 16b3d2b621b1682f249209097c31b0a10f0f87ef works with Ruby 1.9Pratik Naik2009-02-281-1/+1
|
* Added :env option for gem in template runner [#1983 state:resolved]Andrew Vit2009-02-281-4/+24
| | | | | | | | | For installing gems that are only needed in the test environment, specify the :env option so the dependency is written to config/environments/test.rb: gem 'rspec', :env => 'test' gem 'quietbacktrace', :env => %w[development test] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ensure template_runner can run script/* ruby scripts under Windows. [#1859 ↵unknown2009-02-161-2/+8
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Changed scaffold generated controller tests to use #to_param.Pat Nakajima2009-02-131-4/+4
| | | | | | | | Before, the generated controller tests were calling #id, which can change over time, making for brittle tests. Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1913 state:committed]
* A few more minor scaffold template cleanupsDavid Heinemeier Hansson2009-02-055-7/+7
|
* Update scaffolding [#1840 state:committed]Mike Gunderloy2009-02-052-2/+2
| | | | Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Merge docrailsPratik Naik2009-01-181-1/+7
|
* Remove script/performance/profiler in favour of performance integration tests.Pratik Naik2009-01-181-1/+1
| | | | | | To continue using script/performance/profiler, install the request_profiler plugin : script/plugin install git://github.com/rails/request_profiler.git
* Ensure template runner tests don't depend on hash ordering [#1654 ↵Mike Gunderloy2008-12-281-1/+1
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use SimpleLogger for Rails::TemplateRunner outside of the Generator context ↵Aaron Quint2008-12-281-0/+10
| | | | | | [#1618 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Adding test coverage and better logging to Rails::TemplateRunner [#1618 ↵Aaron Quint2008-12-271-66/+53
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Make generated Metal bits a pure rack endpoint application (not middleware)Joshua Peek2008-12-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of calling super to pass the request on, return a 404. The modified app looks like this: # app/metal/poller.rb class Poller def self.call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "text/html"}, "Hello, World!"] else [404, {"Content-Type" => "text/html"}, "Not Found"] end end end But you aren't locked in to just Rails: # app/metal/api.rb require 'sinatra' Sinatra::Application.default_options.merge!(:run => false, :env => :production) Api = Sinatra.application unless defined? Api get '/interesting/new/ideas' do 'Hello Sinatra!' end
* Introduce Rails MetalJoshua Peek2008-12-163-0/+28
| | | | | | | | | | | | | | | | | | | # app/metal/poller.rb class Poller < Rails::Rack::Metal def call(env) if env["PATH_INFO"] =~ /^\/poller/ [200, {"Content-Type" => "application/json"}, Message.recent.to_json] else super end end end * There is a generator to help you get started `script/generate metal poller` * Also, metal bits can be ran standalone with rackup `rackup app/metal/poller.rb`
* Fix message when running TemplateRunner#git. [#1526 state:resolved]Sergio Gil2008-12-081-2/+2
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add a rake task to apply a template to an existing application.Pratik Naik2008-12-072-3/+3
| | | | Example : rake rails:template LOCATION=~/template.rb
* Remove unused TemplateRunner attributesPratik Naik2008-12-071-1/+1
|
* Added support for plugins to be installed as submodules with the application ↵Peter Cooper2008-12-061-1/+7
| | | | | | templater. [#1517 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add :env and :sudo options to TemplateRunner#rake.Pratik Naik2008-12-041-3/+6
| | | | | | | Examples : rake("gems:install", :sudo => true) rake("db:migrate", :env => "production")
* Make TemplateRunner#generate accept any number of argumentsPratik Naik2008-12-031-3/+3
|
* Remove docs for TemplateRunner#gem as the behaviour has been changedPratik Naik2008-12-021-13/+0
|
* Add "-m/--template" option to Rails generator to apply template to generated ↵Jeremy McAnally2008-12-025-0/+419
| | | | | | application. Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Generate rackup dispatcher with rails:update:generate_dispatchersJoshua Peek2008-12-011-0/+1
|
* Extracted the process scripts (inspector, reaper, spawner) into the plugin ↵David Heinemeier Hansson2008-11-301-3/+2
| | | | irs_process_scripts [DHH]
* Cleanup the app generatorDavid Heinemeier Hansson2008-11-301-142/+196
|
* Fix typo in 5b5730cc6e9194fb5f67fe79d2c7849e200ba6edPratik Naik2008-11-241-4/+4
|
* Don't generate public/dispatch.cgi/fcgi/rb files by default.Yaroslav Markin2008-11-241-4/+10
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Added ActiveSupport::BacktraceCleaner and Rails::BacktraceCleaner for ↵David Heinemeier Hansson2008-11-221-3/+4
| | | | cutting down on backtrace noise (inspired by the Thoughtbot Quiet Backtrace plugin) [DHH]
* Require active_support/secure_random for Ruby 1.9.Akira Matsuda2008-11-191-0/+1
| | | | | | [#1326 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Added config.i18n settings gatherer to config/environment, auto-loading of ↵David Heinemeier Hansson2008-11-181-0/+4
| | | | all locales in config/locales/*.rb,yml, and config/locales/en.yml as a sample locale [DHH]
* Add helper test generators [#1199 state:resolved]Eugene Bolshakov2008-11-1712-14/+92
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* BACKWARDS INCOMPATIBLE: Renamed application.rb to application_controller.rb ↵David Heinemeier Hansson2008-11-171-1/+2
| | | | and removed all the special casing that was in place to support the former. You must do this rename in your own application when you upgrade to this version [DHH]
* Fixed plugin generator so that generated unit tests would subclass ↵Mathias Meyer2008-10-304-12/+16
| | | | | | ActiveSupport::TestCase, also introduced a helper script to reduce the needed require statements. [#1137 state:committed] Signed-off-by: David Heinemeier Hansson <david@loudthinking.com>
* Don't create test/performance/test_helper.rb. Just require the needed files ↵Pratik Naik2008-10-172-2/+2
| | | | from test directly. [#1135 state:resolved]
* Remove the class_path from the collisions test.Michael Koziarski2008-10-149-11/+11
| | | | The class_path is often taken already in situations like Admin namespaces etc.
* Add IMB DB support to Rails application generator. [#1136 state:resolved]Antonio Cangiano2008-10-041-1/+1
| | | | | | Usage : rails app_name -d ibm_db Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Dont reference the class being tested when it can be assumedDavid Heinemeier Hansson2008-09-091-1/+0
|
* Deprecate Rails::SecretKeyGenerator in favor of ActiveSupport::SecureRandom.Hongli Lai (Phusion2008-08-271-2/+1
| | | | | | | SecureRandom has a few minor security enhancements and can be used as a drop-in replacement Signed-off-by: Michael Koziarski <michael@koziarski.com> [#913 state:committed]
* Generate belongs_to association when generating a modelTarmo Tänav2008-08-231-1/+1
|
* Generate belongs_to associations automatically for 'references' types [#640 ↵Tarmo Tänav2008-08-231-0/+3
| | | | state:resolved]
* Removed config.ru template from app generatorJoshua Peek2008-08-191-1/+0
|
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Merge with docrails.Pratik Naik2008-07-161-5/+9
|
* Add config.ru to rails app generatorPratik Naik2008-07-161-0/+1
|