Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Make sure assets is disable when --skip-sprockets is used | Rafael Mendonça França | 2013-01-05 | 1 | -1/+2 | |
| | ||||||
* | config.assets.enabled is now true by default | David Heinemeier Hansson | 2013-01-05 | 1 | -1/+0 | |
| | ||||||
* | fix failing test broken in 15fb7889c5566ddade1d8f74f49bbbc1c0be6057 | Akira Matsuda | 2013-01-05 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #8705 from amparo-luna/change_update_attributes_to_update | Guillermo Iguaran | 2013-01-03 | 2 | -3/+3 | |
|\ | | | | | Rename update_attributes method to update | |||||
| * | Updating default application templates to use update instead of ↵ | Amparo Luna + Guillermo Iguaran | 2013-01-03 | 2 | -3/+3 | |
| | | | | | | | | update_attributes | |||||
* | | test PATCH method for update action in generated scaffold controller test ↵ | Akira Matsuda | 2013-01-03 | 2 | -4/+4 | |
|/ | | | | rather than PUT | |||||
* | Revert "Install binstubs by default" | Jeremy Kemper | 2012-12-28 | 1 | -3/+3 | |
| | | | | | | This reverts commit f34c27a452418d8aa17f92bb0fd7ae97b5f7e252. We'll be taking a different tack on this with new `bundle binstubs <gem>` support. | |||||
* | Revert "Detect rbenv and update the shebang" | Jeremy Kemper | 2012-12-28 | 1 | -10/+0 | |
| | | | | | This reverts commit 7173c4f931c9026bd3bc0b644d93dae744433f09. This reverts commit a562f9fa09967eba26dff1c3bc8aa85b6f0a72ff. | |||||
* | Consistent use of single and double quotes | Rafael Mendonça França | 2012-12-26 | 1 | -10/+10 | |
| | ||||||
* | quote column names in generated fixture files | Yves Senn | 2012-12-26 | 1 | -3/+26 | |
| | ||||||
* | Add --no-html to scaffold generator | Yehuda Katz | 2012-12-22 | 2 | -0/+17 | |
| | ||||||
* | Detect rbenv and update the shebang | Yehuda Katz | 2012-12-22 | 1 | -0/+10 | |
| | ||||||
* | Install binstubs by default | Yehuda Katz | 2012-12-22 | 1 | -3/+3 | |
| | ||||||
* | Migration generators use `change` even for destructive methods [#8267] | Marc-Andre Lafortune | 2012-12-21 | 1 | -31/+12 | |
| | ||||||
* | Simple replacement of variable name for consistency | Marc-Andre Lafortune | 2012-12-21 | 1 | -32/+32 | |
| | ||||||
* | update concerned tests | Francesco Rodriguez | 2012-12-18 | 1 | -0/+2 | |
| | ||||||
* | Fixed test names for generated_attribute_test.rb | Arun Agrawal | 2012-12-13 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #8468 from schneems/schneems/rack-index-page | Santiago Pastorino | 2012-12-10 | 1 | -8/+0 | |
|\ | | | | | Use Rails to Render Default Index Page | |||||
| * | Use Rails to Render Default Index Page | schneems | 2012-12-10 | 1 | -8/+0 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an alternative implementation to #7771 thanks to the advice of @spastorino Rails is a dynamic framework that serves a static index.html by default. One of my first questions ever on IRC was solved by simply deleting my public/index.html file. This file is a source of confusion when starting as it over-rides any set "root" in the routes yet it itself is not listed in the routes. By making the page dynamic by default we can eliminate this confusion. This PR moves the static index page to an internal controller/route/view similar to `rails/info`. When someone starts a rails server, if no root is defined, this route will take over and the "dynamic" index page from rails/welcome_controller will be rendered. These routes are only added in development. If a developer defines a root in their routes, it automatically takes precedence over this route and will be rendered, with no deleting of files required. In addition to removing this source of confusion for new devs, we can now use Rails view helpers to build and render this page. While not the primary intent, the added value of "dogfooding" should not be under-estimated. The prior PR #7771 had push-back since it introduced developer facing files. This PR solves all of the same problems, but does not have any new developer facing files (it actually removes one). cc/ @wsouto, @dickeyxxx, @tyre, @ryanb, @josevalim, @maxim, @subdigital, @steveklabnik ATP Railties and Actionpack. | |||||
* | | Make sure that no extra spaces are created with a non-polymorphic | Rafael Mendonça França | 2012-12-10 | 1 | -2/+2 | |
| | | | | | | | | attributes | |||||
* | | Add GeneratedAttribute#column_name to get the name of the column in the | Rafael Mendonça França | 2012-12-10 | 1 | -2/+9 | |
| | | | | | | | | database | |||||
* | | Deal with polymorphic attributes correctly in the generators | Rafael Mendonça França | 2012-12-10 | 2 | -3/+17 | |
| | | ||||||
* | | Make references and belongs_to attributes to generate the _id column in | Rafael Mendonça França | 2012-12-10 | 1 | -0/+5 | |
| | | | | | | | | fixtures | |||||
* | | Put the reference and belongs_to attributes in the scaffold tests. | Rafael Mendonça França | 2012-12-10 | 2 | -6/+6 | |
| | | ||||||
* | | 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 | |
| | ||||||
* | fix scaffold controller generator tests | Francesco Rodriguez | 2012-12-07 | 1 | -16/+12 | |
| | ||||||
* | Refactor tests that switch RAILS_ENV and RACK_ENV | Carlos Antonio da Silva | 2012-12-06 | 1 | -16/+15 | |
| | | | | | | | | | | | | This cleanup aims to fix a build failure: https://travis-ci.org/rails/rails/jobs/3515951/#L482 Since travis always have both ENV vars set to "test", a test is failing where it's expected to output the default env "development", but "test" is the result due to RACK_ENV being set when we expect it to not be. By cleaning this duplication we ensure that changing any of these env variables will pick the right expected value. | |||||
* | Remove observers and sweepers | Rafael Mendonça França | 2012-11-28 | 2 | -48/+0 | |
| | | | | | | | | They was extracted from a plugin. See https://github.com/rails/rails-observers [Rafael Mendonça França + Steve Klabnik] | |||||
* | Refactor generators tests to include test helpers in the parent class | Carlos Antonio da Silva | 2012-11-27 | 1 | -4/+3 | |
| | ||||||
* | Merge pull request #8112 from rails/encrypted_cookies | Santiago Pastorino | 2012-11-15 | 1 | -1/+1 | |
|\ | | | | | Encrypted cookies | |||||
| * | Add encrypted cookie store | Santiago Pastorino | 2012-11-03 | 1 | -1/+1 | |
| | | ||||||
* | | `plugin new` adds dummy app tasks when necessary. | Yves Senn | 2012-11-08 | 1 | -0/+6 | |
| | | | | | | | | | | | | | | Closes #8121 The `plugin new` generator always adds the dummy app rake tasks, when a dummy app was created. | |||||
* | | Remove some line breaks between array items that make the assert file tests ↵ | Carlos Antonio da Silva | 2012-11-04 | 3 | -41/+18 | |
|/ | | | | harder to read | |||||
* | changed test case name | Tima Maslyuchenko | 2012-10-23 | 1 | -1/+1 | |
| | ||||||
* | Fix the app_generator and plugin_new tests | Rafael Mendonça França | 2012-10-18 | 1 | -1/+1 | |
| | ||||||
* | Switch to new sprockets-rails plugin | Joshua Peek | 2012-10-15 | 1 | -1/+2 | |
| | ||||||
* | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 9 | -39/+39 | |
| | ||||||
* | No need to test for rack-cache present in Gemfile | Arun Agrawal | 2012-10-11 | 1 | -5/+0 | |
| | | | | | | as it's removed here 1fc795468525d8622cdca474a54c8310a514aa46 | |||||
* | Update test locations | Mike Moore | 2012-10-09 | 10 | -59/+61 | |
| | | | | | | | | | | | | | | 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) | |||||
* | Merge pull request #7794 from guilleiguaran/extract-rack-cache | Santiago Pastorino | 2012-10-01 | 1 | -0/+5 | |
|\ | | | | | Use Rack::Cache middleware only if is in Gemfile | |||||
| * | Add rack-cache to default Gemfile | Guillermo Iguaran | 2012-10-01 | 1 | -0/+5 | |
| | | ||||||
* | | Fix broken scaffold routes test | Jeremy Walker | 2012-10-01 | 1 | -1/+1 | |
| | | ||||||
* | | Fixed generated whitespace in routes when using namespaced resource. | Jeremy Walker | 2012-09-29 | 1 | -2/+74 | |
|/ | ||||||
* | Update test to match new non-sorting of attributes. | Brian Morearty | 2012-09-23 | 1 | -1/+1 | |
| | ||||||
* | Remove .rb from require sentences | José Corcuera Z | 2012-09-21 | 2 | -2/+2 | |
| | ||||||
* | Remove attributes whitelist tests from AppGenerator tests | Guillermo Iguaran | 2012-09-16 | 1 | -6/+0 | |
| | ||||||
* | Change scaffold_controller to generate and use private method to encapsulate ↵ | Guillermo Iguaran | 2012-09-16 | 2 | -6/+9 | |
| | | | | permissible params | |||||
* | Remove all references to attr_accessible/protected and old ↵ | Guillermo Iguaran | 2012-09-16 | 2 | -19/+0 | |
| | | | | mass_assignment_sanitizers |