Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix NoMethodError that occurs when generating scaffold inside full mode engine | yuuji.yaginuma | 2015-06-28 | 1 | -0/+11 |
| | |||||
* | API apps scaffold generator generates an apropriate controller | Santiago Pastorino | 2015-06-11 | 1 | -0/+47 |
| | |||||
* | add test to run generated test files inside mountable engine | yuuji.yaginuma | 2015-06-02 | 1 | -0/+11 |
| | |||||
* | build fix. | Yves Senn | 2015-01-30 | 1 | -4/+4 |
| | |||||
* | 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 | -0/+8 |
| | | | | | | | | | 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 | ||||
* | Use short-form for the scaffold render calls and drop the needless test | David Heinemeier Hansson | 2014-04-08 | 1 | -7/+0 |
| | |||||
* | Added --model-name option scaffold_controller_generator. | yalab | 2013-10-15 | 1 | -0/+9 |
| | |||||
* | Added notice message for destroy method in scaffold | Rahul P. Chaudhari | 2013-02-10 | 1 | -0/+1 |
| | |||||
* | More consistent quotes in scaffold generator | Pavel Pravosud | 2013-01-11 | 1 | -1/+1 |
| | |||||
* | Include jbuilder by default and rely on its scaffold generator to show json ↵ | David Heinemeier Hansson | 2013-01-10 | 1 | -15/+1 |
| | | | | API. The default scaffold will now just create HTML if the user actively opts out of jbuilder | ||||
* | Merge pull request #8705 from amparo-luna/change_update_attributes_to_update | Guillermo Iguaran | 2013-01-03 | 1 | -1/+1 |
|\ | | | | | Rename update_attributes method to update | ||||
| * | Updating default application templates to use update instead of ↵ | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 1 | -1/+1 |
| | | | | | | | | update_attributes | ||||
* | | test PATCH method for update action in generated scaffold controller test ↵ | Akira Matsuda | 2013-01-03 | 1 | -2/+2 |
|/ | | | | rather than PUT | ||||
* | Add --no-html to scaffold generator | Yehuda Katz | 2012-12-22 | 1 | -0/+12 |
| | |||||
* | Deal with polymorphic attributes correctly in the generators | Rafael Mendonça França | 2012-12-10 | 1 | -3/+12 |
| | |||||
* | Put the reference and belongs_to attributes in the scaffold tests. | Rafael Mendonça França | 2012-12-10 | 1 | -3/+3 |
| | |||||
* | Use the references and belongs_id ids in the scaffold_controller | Rafael Mendonça França | 2012-12-09 | 1 | -0/+9 |
| | | | | generator | ||||
* | Add test case for scaffold_controller generator without attributes. | Rafael Mendonça França | 2012-12-09 | 1 | -0/+9 |
| | | | | This is a test for 978c568a7bffe354180aaefa471092182fed1015 | ||||
* | Fix scaffold controller generator tests | Carlos Antonio da Silva | 2012-12-08 | 1 | -8/+6 |
| | |||||
* | Remove some line breaks between array items that make the assert file tests ↵ | Carlos Antonio da Silva | 2012-11-04 | 1 | -6/+3 |
| | | | | harder to read | ||||
* | 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) | ||||
* | Update test to match new non-sorting of attributes. | Brian Morearty | 2012-09-23 | 1 | -1/+1 |
| | |||||
* | Change scaffold_controller to generate and use private method to encapsulate ↵ | Guillermo Iguaran | 2012-09-16 | 1 | -2/+5 |
| | | | | permissible params | ||||
* | Remove --http. | José Valim | 2012-03-14 | 1 | -37/+0 |
| | |||||
* | Generate special controller and functional test templates for http apps | Carlos Antonio da Silva | 2012-03-14 | 1 | -0/+37 |
| | | | | | | | | | | | | The main goal is to not generate the format.html block in scaffold controller, and to generate a different functional test as we don't rely on redirects anymore, we should test for http responses. In addition to that, the :edit action is removed from the http controller and the edit route is not generated by default, as they usually do not make sense in this scenario. [Carlos Antonio da Silva & Santiago Pastorino] | ||||
* | Refactor the test_unit scaffold generator to use the key_value method | Rafael Mendonça França | 2012-03-13 | 1 | -4/+4 |
| | |||||
* | Use the attributes hash explicitly | Rafael Mendonça França | 2012-03-13 | 1 | -3/+13 |
| | |||||
* | Do not use the attributes hash in the scaffold functional tests | Rafael Mendonça França | 2012-03-12 | 1 | -0/+3 |
| | |||||
* | Get rid of --old-style-hash | José Valim | 2011-12-20 | 1 | -12/+1 |
| | |||||
* | be sure to parenthesize the arguments when the first one is a RegExp literal | Akira Matsuda | 2011-05-18 | 1 | -23/+23 |
| | | | | | | 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 | ||||
* | Add --old-style-hash option to force creating old style hash on Ruby 1.9 | Prem Sichanugrist | 2011-04-10 | 1 | -0/+7 |
| | | | | That means if you don't like the new syntax, you can pass --old-style-hash to force Rails to generate code with hash rockets. | ||||
* | Rails will now generate Ruby 1.9 style hash when running scaffold_controller ↵ | Prem Sichanugrist | 2011-04-10 | 1 | -0/+11 |
| | | | | | | | | generator on Ruby 1.9.x The new hash syntax of Ruby 1.9 looks more superior, so we decide to switch to it in the places that appropriate. This patch has been requested by DHH. | ||||
* | Remove the --singeleton option from scaffold generator. | Prem Sichanugrist | 2010-06-24 | 1 | -14/+0 |
| | | | | | | | | It turned out to be that scaffold for singeleton resource will always depend on another model, and it's not possible at the moment to make the application tests pass after generate the singeleton scafold. So, it would be better to remove it for now and probably provide another generator, such as singeleton_scaffold, in which also require the depended model name. [#4863 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Partially revert "A new application now comes with a layout and a stylesheet." | Jeremy Kemper | 2010-04-09 | 1 | -0/+1 |
| | | | | | | | | | This reverts commit ea2c5fa8046e2f953b366adc94f0610ccfea0828. Conflicts: railties/lib/rails/generators/rails/app/templates/app/views/layouts/application.html.erb railties/test/generators/app_generator_test.rb | ||||
* | A new application now comes with a layout and a stylesheet. | José Valim | 2010-04-06 | 1 | -1/+0 |
| | |||||
* | 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. | ||||
* | 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 | -9/+9 |
| | |||||
* | 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> | ||||
* | By default use ActiveModel API in controller generators, unless otherwise ↵ | José Valim | 2009-10-17 | 1 | -4/+37 |
| | | | | specified [#3123 status:resolved] | ||||
* | Move railties/lib/* into railties/lib/* | Yehuda Katz + Carl Lerche | 2009-09-24 | 1 | -2/+2 |
| | |||||
* | Rename Rails::Generators::ActionORM to Rails::Generators::ActiveModel. | José Valim | 2009-08-08 | 1 | -1/+1 |
| | |||||
* | Updated vendored Thor to 0.11.1 and update Rails::Generators. | José Valim | 2009-07-14 | 1 | -1/+1 |
| | |||||
* | Allow scaffold controller to load action_orm files on demand. | José Valim | 2009-07-04 | 1 | -1/+1 |
| | |||||
* | Added lookup to generators. | José Valim | 2009-07-03 | 1 | -5/+0 |
| | |||||
* | Added tests to scaffold controller. | José Valim | 2009-07-02 | 1 | -0/+117 |