aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
Commit message (Collapse)AuthorAgeFilesLines
* Replace comment about Sprockets stub directive with a link to README about ↵Guillermo Iguaran2013-06-032-2/+4
| | | | all directives
* Add ActiveModel requirement to application.rbJamie Gaskins2013-05-221-0/+1
| | | | | | | | | | | Currently, ActiveModel is only loaded by ActiveRecord. If you skip ActiveRecord, ActiveModel will not be required (or even autoloaded) and including `ActiveModel::Model` into a plain Ruby class will raise `NameError`. To reproduce this: - create a new app with `rails new my_app -O` - create a Ruby class that includes `ActiveModel::Model` in `app/models` - load up a Rails console and try to do anything with the class :-) Since ActionPack relies so heavily on the ActiveModel API, this should probably be considered a dependency of the app. Another possibility would be to make it a dependency of ActionController.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-05-191-0/+2
|\
| * copy edits[ci skip]Vijay Dev2013-05-191-3/+1
| |
| * Added documentation for Rails::Generators::NamedBase.templateaditya-kapoor2013-05-141-0/+4
| |
* | plugin new missing license specAJ Acevedo2013-05-161-0/+1
| | | | | | | | | | | | | | | | | | When bundling a gem created with rails plugin new Bundler outputs the following warning when building the gem: WARNING: licenses is empty modified: railties/lib/rails/generators/rails/plugin_new/templates/%name%.gemspec
* | restore whitespace in Gemfile between sqlite3 and sprocketsSam Ruby2013-05-161-1/+1
| |
* | Remove trailing line breakColin Bartlett2013-05-161-1/+1
| | | | | | | | | | | | If you generate a fresh app without ActiverRecord, this template exhibited a lone trailing line break. My watchful pre-commit hook told me about it so I've fixed it here.
* | Removed incorrect warning from application.js templates and replaced it with ↵Nick2013-05-152-4/+2
| | | | | | | | stub command description
* | Updated comment to Rails 4AJ Acevedo2013-05-121-1/+1
| |
* | better error message when app name is not passed in `rails new`Hrvoje Šimić2013-05-121-1/+9
| | | | | | | | | | | | | | | | | | | | Prior to this change, for the following command: $ rails new we received "Options should be given after the application name" as an error message. This is outdated and should be "Application name should be provided in arguments".
* | Merge pull request #10560 from jkutner/masterRafael Mendonça França2013-05-121-2/+0
|\ \ | |/ |/| Remove jruby-openssl from default Gemfile
| * Removed jruby-openssl gem from default template GemfileJoe Kutner2013-05-101-2/+0
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-05-121-5/+5
|\ \ | |/ |/| | | | | Conflicts: activesupport/lib/active_support/callbacks.rb
| * Improve model generator USAGE grammarMatthew Michihara2013-05-051-5/+5
| |
* | "rails" -> "Rails" [ci skip]Xavier Noria2013-05-091-2/+2
| |
* | Updated link to to GitHub article about ignoring files [ci skip]Prathamesh Sonpatki2013-05-051-1/+1
| | | | | | | | - http://help.github.com/ignore-files redirects to https://help.github.com/articles/ignoring-files
* | Use Ruby 1.9 syntaxRafael Mendonça França2013-05-041-2/+2
| |
* | Fixes Scaffold generator with --assets=falseArun Agrawal2013-05-041-0/+2
| | | | | | | | | | | | Scaffold generator with --assets=false option outputs an error See #9525
* | Merge pull request #10436 from NARKOZ/keep-imagesRafael Mendonça França2013-05-042-0/+1
|\ \ | | | | | | generate 'app/assets/images' directory when creating new rails app. Fixes #10434
| * | generate 'app/assets/images' directory when creating new rails appNihad Abbasov2013-05-042-0/+1
| |/
* | Merge pull request #10461 from rwz/masterRafael Mendonça França2013-05-041-1/+1
|\ \ | |/ |/| Relaxed jbuilder dependency in Gemfile template
| * Relaxed jbuilder dependency in Gemfile templatePavel Pravosud2013-05-041-1/+1
| |
* | Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-05-011-0/+7
|\ \
| * | routes.rb should teach how to use concernsThiago Pinto2013-05-011-0/+7
| | |
| * | Revert "Merge pull request #10194 from ↵Carlos Antonio da Silva2013-04-121-3/+1
| | | | | | | | | | | | | | | | | | | | | pabloh/extract_regexp_at_generators_testing_assertion" This reverts commit 81f243375b9d3cfd431c1ca904c5c1efc9a41ae8, reversing changes made to c7673b0981d961e5510c85d958c944876d543314.
| * | Merge pull request #10194 from ↵Carlos Antonio da Silva2013-04-121-1/+3
| |\ \ | | | | | | | | | | | | | | | | pabloh/extract_regexp_at_generators_testing_assertion Extract method declaration regexp for assert_method into a constant
| | * | Extract method declaration regexp into a constantPablo Herrero2013-04-121-1/+3
| | | |
* | | | Removing the app constant and replacing it with Rails.applicationwangjohn2013-04-309-9/+9
| | | | | | | | | | | | | | | | | | | | syntax. This helps removing the class level abstraction of an application.
* | | | Minor code duplication removedArun Agrawal2013-04-291-6/+6
| | | |
* | | | ActiveRecord -> Active RecordXavier Noria2013-04-221-1/+1
| | | |
* | | | Merge branch 'master' of github.com:rails/railsDavid Heinemeier Hansson2013-04-191-2/+2
|\ \ \ \
| * | | | Unindent attributes iteration in scaffold index templateCarlos Antonio da Silva2013-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise we get extra indent for the <td> elements due to the extra spaces at the beginning of the lines, like this: <tr> <td><%= author.name %></td> <td><%= link_to 'Show', author %></td> <td><%= link_to 'Edit', edit_author_path(author) %></td>
* | | | | AlignmentDavid Heinemeier Hansson2013-04-181-1/+1
|/ / / /
* | | | Indent around the scaffold loopDavid Heinemeier Hansson2013-04-181-8/+8
| | | |
* | | | HTML5 breaksDavid Heinemeier Hansson2013-04-182-4/+4
| | | |
* | | | Better orderingDavid Heinemeier Hansson2013-04-181-3/+3
| | | |
* | | | Use sass-rails 4.0.0.rc1Rafael Mendonça França2013-04-181-1/+1
| | | |
* | | | Use latest coffee-rails releaseRafael Mendonça França2013-04-181-1/+1
| | | |
* | | | Revert "sprockets 2.9.x doesn't work with uglifier 2.0 yet."Rafael Mendonça França2013-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 575838795019f7402992e3bfa83a0c5048cf143d. Conflicts: railties/lib/rails/generators/app_base.rb Reason: sprockets 2.9.1 fixes this issue
* | | | Don't need to add activerecord-deprecated_finders on edge and devRafael Mendonça França2013-04-171-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | applications This gem will not change often to explain it be included in the application Gemfile
* | | | Use strip_heredoc where possibleSam Ruby2013-04-111-14/+12
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following up on an observation by @rafaelfranca https://github.com/rails/rails/pull/10170/files#r3753963 Reduce the number of gsub calls to the two cases where inputs are concatenated from various sources and with inconsistent indentation. Also zap extraneous spacing from the sass-rails line... presumably this is a holdover from a previous time where this aligned the version string with an adjacent line.
* / / Editorial pass over generated GemfileSam Ruby2013-04-102-7/+11
|/ / | | | | | | | | | | * When run with default options, no repeated blank lines * Every gem has a comment, perhaps a generic one, but a comment nonetheless * Most comments used to start with "Use", some with "To use" => made consistent
* | sprockets 2.9.x doesn't work with uglifier 2.0 yet.Rafael Mendonça França2013-04-061-2/+2
| | | | | | | | | | | | See https://travis-ci.org/rails/rails/jobs/6110543#L1285 for the failure cc @josh
* | Merge branch 'master' into railstestAaron Patterson2013-04-052-11/+17
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (44 commits) Improve the changelog entry [ci skip] Fix explicit names on multiple file fields Correctly parse bigint defaults in PostgreSQL Move changelog to the top [ci skip] Fix indent and remove extra white spaces Fix scope chaining + STI failing test for #9869 Improve `belongs_to touch: true` timestamp test Sort modules in alphabetical order. Avoid an attempt to fetch old record when id was not present in touch callback Use the correct pk field from the reflected class to find the old record Refactor mail_to to not generate intermediate hashes when adding href Ensure mail_to helper does not modify the given html options hash Use inspect when writing the foreign key from the reflection Use a space after the comment sign when showing the result of commands Exclude template files for rdoc API [ci skip] template should have generic name use | to have more intent revealing code Revert "Merge pull request #10034 from benofsky/fix_skipping_object_callback_filters" stop depending on callbacks ... Conflicts: railties/test/application/rake_test.rb
| * | Model generator USAGE doc improvedJason King2013-04-041-10/+16
| | | | | | | | | | | | | | | | | | * Added information about syntax for precision/scale of decimals * Removed incorrect information about being able to set `default` * Added more examples of usage
| * | add require to suppress warning; remove variableVipul A M2013-04-041-1/+1
| | |
* | | apps that depend on active record should load fixturesAaron Patterson2013-04-031-3/+2
|/ /
* | Avoid running bundler on tests that don't need itSam Ruby2013-04-031-1/+4
| |
* | Getting rid of a few other vestiges of rails.png.Steve Klabnik2013-04-021-1/+0
| | | | | | | | | | | | | | | | | | | | We don't actually need a rails.png in the AP fixtures, the tests that use it don't actually try to load the file. We also don't need to get rid of it with the dummy reset either. Finally, it's not needed in the sample application that's included with the Rails Guides.