Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Do not add routes when actions are not specified | Yuji Yaginuma | 2018-02-22 | 1 | -0/+7 |
| | | | | | | | | | | Since #30241, if namepsace is specified, routes will be generated even if there is no actions. However, it seems that this behavior is not intentionally added behavior. As with 5.1, routes should not be generated if actions are not specified. Fixes #32072. | ||||
* | Merge pull request #30241 from yhirano55/optimize_routes_indentation | Rafael Mendonça França | 2017-08-14 | 1 | -0/+7 |
|\ | | | | | | | Optimize routes indentation | ||||
| * | Optimize routes indentation | Yoshiyuki Hirano | 2017-08-14 | 1 | -0/+7 |
| | | |||||
* | | Adding frozen_string_literal pragma to Railties. | Pat Allan | 2017-08-14 | 1 | -0/+2 |
|/ | |||||
* | Revert "Merge pull request #29540 from kirs/rubocop-frozen-string" | Matthew Draper | 2017-07-02 | 1 | -1/+0 |
| | | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa. | ||||
* | Enforce frozen string in Rubocop | Kir Shatrov | 2017-07-01 | 1 | -0/+1 |
| | |||||
* | Correct indent-accounting in controller route generation | Matthew Draper | 2016-12-25 | 1 | -1/+1 |
| | | | | | | Fixes #27447 [Matthew Draper & Yuuji Yaginuma] | ||||
* | Add three new rubocop rules | Rafael Mendonça França | 2016-08-16 | 1 | -1/+1 |
| | | | | | | | | Style/SpaceBeforeBlockBraces Style/SpaceInsideBlockBraces Style/SpaceInsideHashLiteralBraces Fix all violations in the repository. | ||||
* | applies new string literal convention in railties/test | Xavier Noria | 2016-08-06 | 1 | -2/+2 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | fix indent in routes when using namespaced controllers | yuuji.yaginuma | 2015-04-14 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | Before: namespace :foo do namespace :bar do get 'baz/index' end end After: namespace :foo do namespace :bar do get 'baz/index' end end | ||||
* | A few more tests asserting the presence of helper test stubs | David Heinemeier Hansson | 2014-08-03 | 1 | -2/+0 |
| | |||||
* | Display notice in index.html pages in scaffolded generated views | Arun Agrawal | 2014-07-04 | 1 | -1/+1 |
| | | | | | | | | | As we are setting notice in destroy action we should display that For more information see https://github.com/rails/rails/pull/14044 And https://github.com/rails/jbuilder/pull/191 closes #14044 | ||||
* | Add a '--skip-routes' flag for the Controller generator. | Lucas Mazza | 2014-06-24 | 1 | -0/+7 |
| | | | | | This way it is possible to skip the addition of the 'get "foo/bar"' routes when generating a controller. | ||||
* | single quotes for controller generated routes | Cristian Mircea Messel | 2014-01-14 | 1 | -2/+2 |
| | | | | | | | | | | Write routes in route.rb with single quotes get 'welcome/index' instead of get "welcome/index" | ||||
* | Test for when controller with skip-assets | Arun Agrawal | 2013-11-23 | 1 | -0/+6 |
| | |||||
* | Generate namespaced routes correctly for generators. Fix for #11532 | Prathamesh Sonpatki | 2013-08-14 | 1 | -0/+5 |
| | |||||
* | Update test locations | Mike Moore | 2012-10-09 | 1 | -4/+4 |
| | | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional) | ||||
* | Move Coffee generators and templates to Coffee Railtie and create ↵ | Santiago Pastorino | 2011-06-29 | 1 | -1/+1 |
| | | | | javascript_engine ("js") for apps that remove Coffee gem | ||||
* | Move SCSS generators and default templates from Rails to the Sass Railtie ↵ | tomhuda | 2011-05-24 | 1 | -1/+1 |
| | | | | | | | | (d435726312601edb3ba6f97b34f562221f72c1f8). * Sass gem registers a compressor * Sass gem registers generators for assets and scaffold * Create a default stylesheet_engine ("css") for apps that remove the Sass gem | ||||
* | be sure to parenthesize the arguments when the first one is a RegExp literal | Akira Matsuda | 2011-05-18 | 1 | -2/+2 |
| | | | | | | this fixes: "warning: ambiguous first argument; put parentheses or even spaces" because: you need this to tell the parser that you're not calling :/ method (division) details (Japanese!): http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-dev/42445?42370-43277 | ||||
* | What a lovely surprise, controller_generator_test was also failing. | José Valim | 2011-04-17 | 1 | -2/+2 |
| | |||||
* | The controller and resource generators will now automatically produce asset ↵ | David Heinemeier Hansson | 2011-04-14 | 1 | -0/+6 |
| | | | | stubs (this can be turned off with --skip-assets). These stubs will use Coffee and Sass, if those libraries are available. [DHH] | ||||
* | Load generators from both lib/rails/generators and lib/generators. Using the ↵ | José Valim | 2010-03-23 | 1 | -1/+1 |
| | | | | former since it's less obstrusive. | ||||
* | Controller generators should use routes shortcut. | José Valim | 2010-03-22 | 1 | -1/+1 |
| | |||||
* | Fix regression introduced in 8b50f89. Generated views mentioned the wrong path. | Jeremy Kemper | 2010-03-21 | 1 | -2/+2 |
| | |||||
* | Controller generator now creates routes as well [#4233 state:resolved] | José Valim | 2010-03-19 | 1 | -2/+7 |
| | |||||
* | Get generators tests running on Ruby 1.9.1 | José Valim | 2010-01-19 | 1 | -1/+2 |
| | |||||
* | Generators load path now will be Ruby load path. If you want to use ↵ | José Valim | 2010-01-18 | 1 | -1/+1 |
| | | | | rspec:install generator, you need generators/rspec/install_generator in your load path. | ||||
* | Move all generators tests to use new test case syntax. | José Valim | 2010-01-03 | 1 | -8/+1 |
| | |||||
* | Create Rails::Generators::TestCase. | José Valim | 2010-01-03 | 1 | -3/+3 |
| | |||||
* | CI breakage | Yehuda Katz | 2009-11-02 | 1 | -1/+1 |
| | | | | This reverts commit a288b74f1c75c6f100de7611a5093a421f1ad6d1. | ||||
* | Generators should use Rails.root instead of Dir.pwd [#3408 status:resolved] | José Valim | 2009-10-28 | 1 | -1/+1 |
| | | | | Signed-off-by: Yehuda Katz <wycats@gmail.com> | ||||
* | Move railties/lib/* into railties/lib/* | Yehuda Katz + Carl Lerche | 2009-09-24 | 1 | -1/+1 |
| | |||||
* | Updated vendored Thor to 0.11.1 and update Rails::Generators. | José Valim | 2009-07-14 | 1 | -1/+1 |
| | |||||
* | Added lookup to generators. | José Valim | 2009-07-03 | 1 | -6/+3 |
| | |||||
* | Added tessts for resources generator. | José Valim | 2009-06-28 | 1 | -2/+5 |
| | |||||
* | Show invoked generators options on meta generators. | José Valim | 2009-06-27 | 1 | -0/+5 |
| | |||||
* | Initial scratch of model generators. | José Valim | 2009-06-27 | 1 | -0/+2 |
| | |||||
* | Spec --no and --skip. | José Valim | 2009-06-26 | 1 | -1/+12 |
| | |||||
* | Added Controller Generators. | José Valim | 2009-06-26 | 1 | -0/+62 |