aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/erb/scaffold/templates/_form.html.erb
Commit message (Collapse)AuthorAgeFilesLines
* Add blank lines between divs in form scaffoldingSean Collins2015-04-201-0/+2
|
* Merge pull request #13434 from tanraya/local_variablesCarlos Antonio da Silva2015-01-031-4/+4
|\ | | | | | | | | | | | | 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.tanraya2014-07-261-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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 %>
* | Give password_confirmation div the "field" class in erb form templatenoinkling2014-07-291-1/+1
|/
* Avoid unnecessary conditional blockGiovanni Cappellotto2014-05-011-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 abbreviationDavid Heinemeier Hansson2014-04-081-2/+2
|
* Fix the indentation on the from template of the scaffold generatorRafael Mendonça França2013-08-191-3/+3
|
* Use GeneratedAttribute#column_name if #reference? scaffold_generator in ↵Zachary Scott2013-07-231-0/+5
| | | | _form view [Fixes #11573]
* HTML5 breaksDavid Heinemeier Hansson2013-04-181-3/+3
|
* Add support for generate scaffold password:digestSam Ruby2013-03-131-0/+9
| | | | | | | | | | * 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
* for ... in => .eachAkira Matsuda2011-05-181-1/+1
| | | | I believe this is more modern way
* Change inside_namespace method to inside_template and use it in all ↵Piotr Sarnacki2010-11-161-2/+0
| | | | | | | | | | templates by default The initial implementation of namespacing was based on wrong assumptions. Namespacing path and class names in templates should be based on current namespace and skip_namespace attribute, but it should be not necessary to wrap content on all the templates into additional block methods.
* Fix scaffold generator to be aware of namespace in isolated enginePiotr Sarnacki2010-11-031-0/+2
|
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-231-4/+4
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Cleanup indention and spacing and turn errorExplanation into ↵David Heinemeier Hansson2010-04-131-8/+9
| | | | error_explanation now that nobody depends on it anymore
* Use pluralize to properly inflect the number of errors.José Valim2010-04-101-1/+1
|
* Remove error_messages_for from scaffold.José Valim2010-04-101-1/+10
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-231-0/+13
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-181-13/+0
| | | | rspec:install generator, you need generators/rspec/install_generator in your load path.
* Add documentation to f.submit and make scaffold generators use the new shortcut.José Valim2010-01-141-5/+1
|
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-241-0/+17