aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators/erb
Commit message (Collapse)AuthorAgeFilesLines
* Use `:data => { :confirm => "Text" }` syntax instead of `:confirm` atRafael Mendonça França2012-08-021-1/+1
| | | | | | | the ERB scaffold generator. We are trying to teach the data attributes as best practices and `:confirm` will be deprecated in 4.0.
* Revert "Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` ↵Rafael Mendonça França2012-08-011-1/+1
| | | | | | | | | | | option" Revert "Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers." This reverts commit fc092a9cba5fceec38358072e50e09250cf58840. This reverts commit e9051e20aeb2c666db06b6217954737665878db7. This reverts commit d47d6e7eda3aa3e6aa28d0c17ac6801234bb97d1. This reverts commit 21141e777bdce8534e3755c8de7268324b3d8714.
* Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` optionCarlos Galdino2012-06-051-1/+1
| | | | | | | | | | | | This deprecation applies to: `button_to` `button_tag` `image_submit_tag` `link_to` `submit_tag` As :confirm is an UI specific option is better to use the data attributes, teaching users about unobtrusive JavaScript and how Rails works with it.
* for ... in => .eachAkira Matsuda2011-05-183-4/+4
| | | | I believe this is more modern way
* Rails will now generate Ruby 1.9 style hash when running scaffold_controller ↵Prem Sichanugrist2011-04-101-1/+1
| | | | | | | | 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.
* Change inside_namespace method to inside_template and use it in all ↵Piotr Sarnacki2010-11-165-10/+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-035-0/+10
|
* Remove the --singeleton option from scaffold generator.Prem Sichanugrist2010-06-241-6/+1
| | | | | | | | 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>
* Patch for Namespace problem in Scaffold. [#4763 state:resolved]Mohammed Siddick.E2010-06-235-16/+16
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Make polymorphic_url and scaffolding work with uncountable resources [#3930 ↵Andrew White2010-06-203-3/+3
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Rename fieldWithErrors style to field_with_errors. Remove unused alert style.Jeremy Kemper2010-04-241-1/+1
|
* 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
|
* Need a double escape thereDavid Heinemeier Hansson2010-04-091-1/+1
|
* Notice/alert are out of the layout, so notice has to go back into show to ↵David Heinemeier Hansson2010-04-091-0/+2
| | | | make it work for scaffolding
* Remove :layout option from generators.José Valim2010-04-061-1/+0
|
* A new application now comes with a layout and a stylesheet.José Valim2010-04-062-23/+0
|
* Load generators from both lib/rails/generators and lib/generators. Using the ↵José Valim2010-03-2311-0/+157
| | | | former since it's less obstrusive.
* Generators load path now will be Ruby load path. If you want to use ↵José Valim2010-01-1811-174/+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
|
* Rails layouts, error pages, and public/index now use HTML5.Dan Croak2010-01-051-1/+0
| | | | | | | | | | The specification allows the character encoding meta tag to be removed if character encoding is set at the transport level (Content-Type), which Rails is doing. http://dev.w3.org/html5/html4-differences/#character-encoding Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added alert/notice from 2-3-stable and refactored redirect_to into just ↵David Heinemeier Hansson2009-12-171-1/+1
| | | | living in Redirector [DHH]
* Don't need h in there now that XSS protection is on by defaultMichael Koziarski2009-10-082-2/+2
|
* Move railties/lib/* into railties/lib/*Yehuda Katz + Carl Lerche2009-09-2411-0/+179