Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Show object ids in scaffold pages when displaying referenced objects | Rasesh Patel | 2018-10-14 | 2 | -2/+2 |
| | | | | | | | | | | | | Resolve Issue#29200 When scaffolding a model that references another model the generated show and index html pages display the object directly on the page. Basically, it just shows a memory address. That is not very helpful. In this commit we show the object's id rather than the memory address. This updates the scaffold templates and the json builder files. | ||||
* | Strip duplicated suffixes more strictly | Ryuta Kamizono | 2018-04-22 | 1 | -1/+1 |
| | | | | In the previous code incorrectly removes intermediate words. | ||||
* | Remove field ids from scaffold form | yuuji.yaginuma | 2017-11-26 | 1 | -3/+3 |
| | | | | | | This was added with 27f103fc7e3260efe0b8dde66bf5354f2202ee32 for link labels and fields. However, `form_with` changed to generates ids by default with d3893ec38ec61282c2598b01a298124356d6b35a. So I think that adding an explicit ids is unnecessary. | ||||
* | Use .tt extension to all the template files | Rafael Mendonça França | 2017-11-13 | 8 | -0/+0 |
| | | | | | | | | Make clear that the files are not to be run for interpreters. Fixes #23847. Fixes #30690. Closes #23878. | ||||
* | [Railties] require_relative => require | Akira Matsuda | 2017-10-21 | 3 | -4/+4 |
| | | | | This basically reverts 618268b4b9382f4bcf004a945fe2d85c0bd03e32 | ||||
* | scaffold nested name controller should be fine. | yalab | 2017-09-27 | 2 | -5/+5 |
| | |||||
* | Adding frozen_string_literal pragma to Railties. | Pat Allan | 2017-08-14 | 3 | -0/+6 |
| | |||||
* | [Railties] require => require_relative | Akira Matsuda | 2017-07-01 | 3 | -4/+4 |
| | |||||
* | add field ids when generating a scaffold form. | Yves Senn | 2017-03-26 | 1 | -3/+3 |
| | | | | | | This is a follow up to a6d065e. When using `form_with` you must supply field ids manually. Since the scaffold generator is using labels we need to make sure that they are linked up properly. | ||||
* | Default to yielding a `form` variable. | Kasper Timm Hansen | 2017-03-20 | 1 | -8/+8 |
| | | | | More intention revealing and means `f` can go F itself 😋 | ||||
* | disable remote submits | Ivan Velasquez | 2017-03-14 | 1 | -1/+1 |
| | |||||
* | user form with instead of form for in scaffold generator | Ivan Velasquez | 2017-03-13 | 1 | -1/+1 |
| | |||||
* | generate mailer layout files only when it does not exist | yuuji.yaginuma | 2017-02-02 | 1 | -1/+1 |
| | | | | If already have layout files, in many cases use it. | ||||
* | `self.` is not needed when calling its own instance method | Akira Matsuda | 2017-01-05 | 1 | -1/+1 |
| | | | | Actually, private methods cannot be called with `self.`, so it's not just redundant, it's a bad habit in Ruby | ||||
* | Privatize unneededly protected methods in Railties | Akira Matsuda | 2016-12-25 | 2 | -2/+2 |
| | |||||
* | normalizes indentation and whitespace across the project | Xavier Noria | 2016-08-06 | 1 | -6/+6 |
| | |||||
* | applies new string literal convention in railties/lib | Xavier Noria | 2016-08-06 | 3 | -7/+7 |
| | | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default. | ||||
* | generate mailer layout files if it does not already exist | yuuji.yaginuma | 2016-05-15 | 3 | -0/+21 |
| | | | | | | | | | Currently, if `ApplicationMailer` does not exist, it is generated when run the mailer generator, but layouts files does not generate. However, because it uses the layouts in `ApplicationMailer`, layouts are required. Follow up to #24161 | ||||
* | Remove redundant regexp escapes in generators | Gadzhi Gadzhiev | 2016-03-08 | 1 | -1/+1 |
| | |||||
* | ApplicationMailer should be generated by default just like every other ↵ | David Heinemeier Hansson | 2015-12-17 | 3 | -13/+0 |
| | | | | Application* parent | ||||
* | Remove <br> from scaffold, in favor of using CSS | Sean Collins | 2015-11-25 | 1 | -3/+3 |
| | |||||
* | titleizing the New Link | Thiago Pinto | 2015-07-20 | 1 | -1/+1 |
| | |||||
* | Add blank lines between divs in form scaffolding | Sean Collins | 2015-04-20 | 1 | -0/+2 |
| | |||||
* | Merge pull request #18393 from y-yagi/fix_mailer | Rafael Mendonça França | 2015-02-18 | 1 | -1/+5 |
|\ | | | | | follow up to #18074 | ||||
| * | follow up to #18074 | yuuji.yaginuma | 2015-01-08 | 1 | -1/+5 |
| | | | | | | | | | | * ignore mailer suffix when generate test files * add mailer suffix to view files | ||||
* | | Clean up grammar in scaffold index view, by removing the word 'Listing' from ↵ | Adrien Lamothe | 2015-01-12 | 1 | -1/+1 |
|/ | | | | list title. | ||||
* | Merge pull request #13434 from tanraya/local_variables | Carlos Antonio da Silva | 2015-01-03 | 3 | -6/+6 |
|\ | | | | | | | | | | | | | Use local variables in _form.html.erb generated by scaffold. Conflicts: railties/CHANGELOG.md | ||||
| * | Use local variables in _form.html.erb generated by scaffold generator. | tanraya | 2014-07-26 | 3 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | It seems a good idea to use local variables in generated partials instead of using instance variables. Before <%= render 'form' %> After <%= render 'form', product: @product %> | ||||
* | | Don't remove mailer layouts files | yuuji.yaginuma | 2014-11-27 | 1 | -3/+5 |
| | | |||||
* | | Generate mailer layouts even if no action is given. | Guo Xiang Tan | 2014-11-25 | 1 | -4/+4 |
| | | |||||
* | | MailerGenerator should inherit from Base. | Guo Xiang Tan | 2014-11-25 | 1 | -3/+4 |
| | | |||||
* | | Add tests which were incorrectly removed. | Guo Xiang Tan | 2014-11-25 | 1 | -4/+4 |
| | | |||||
* | | Removing unnecessary File.join calls | Andy Jeffries | 2014-11-24 | 1 | -1/+1 |
| | | |||||
* | | Creates an ApplicationMailer and layout by default, including html and body ↵ | Andy Jeffries | 2014-11-21 | 3 | -0/+26 |
| | | | | | | | | tags to reduce spam score | ||||
* | | Give password_confirmation div the "field" class in erb form template | noinkling | 2014-07-29 | 1 | -1/+1 |
|/ | |||||
* | Display notice in index.html pages in scaffolded generated views | Arun Agrawal | 2014-07-04 | 1 | -0/+2 |
| | | | | | | | | | 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 | ||||
* | Titling the model name in views generated by scaffold. | Amit Suryavanshi | 2014-06-18 | 3 | -3/+3 |
| | | | | | eg. rails g scaffold UserProfile will have in index.html.erb "Listing User Profiles" rather than Listing user_profiles. | ||||
* | Avoid unnecessary conditional block | Giovanni Cappellotto | 2014-05-01 | 1 | -5/+0 |
| | | | | | GeneratedAttribute#column_name checks already for reference? on the attribute returning the right name to use as symbol for label and field. | ||||
* | Dont abbreviate that which needs no abbreviation | David Heinemeier Hansson | 2014-04-08 | 1 | -2/+2 |
| | |||||
* | Always return an array from formats so there is no need to wrap it when calling | Carlos Antonio da Silva | 2014-03-04 | 2 | -2/+2 |
| | |||||
* | fix path shown in mailer's templates | Kassio Borges | 2014-02-14 | 2 | -2/+2 |
| | |||||
* | `html` and `text` templates for mailers by default | Kassio Borges | 2013-12-20 | 4 | -6/+15 |
| | |||||
* | Fix the indentation on the from template of the scaffold generator | Rafael Mendonça França | 2013-08-19 | 1 | -3/+3 |
| | |||||
* | Use GeneratedAttribute#column_name if #reference? scaffold_generator in ↵ | Zachary Scott | 2013-07-23 | 1 | -0/+5 |
| | | | | _form view [Fixes #11573] | ||||
* | Use Colspan in th Tags | Sıtkı Bağdat | 2013-06-17 | 1 | -3/+1 |
| | | | | | | | | | | Is it more suitable that using ```<th colspan="3">``` instead of three empty ```<th>```? It is simple, but what i am missing about it? Change repetitive th tags to use colspan attribute Update CHANGELOG.md Update CHANGELOG.md | ||||
* | Unindent attributes iteration in scaffold index template | Carlos Antonio da Silva | 2013-04-18 | 1 | -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> | ||||
* | Indent around the scaffold loop | David Heinemeier Hansson | 2013-04-18 | 1 | -8/+8 |
| | |||||
* | HTML5 breaks | David Heinemeier Hansson | 2013-04-18 | 2 | -4/+4 |
| | |||||
* | Add support for generate scaffold password:digest | Sam Ruby | 2013-03-13 | 3 | -3/+12 |
| | | | | | | | | | | * adds password_digest attribute to the migration * adds has_secure_password to the model * adds password and password_confirmation password_fields to _form.html * omits password entirely from index.html and show.html * adds password and password_confirmation to the controller * adds unencrypted password and password_confirmation to the controller test * adds encrypted password_digest to the fixture | ||||
* | :scissors: extra blank line | Akira Matsuda | 2013-03-02 | 1 | -1/+0 |
| |