Prem Sichanugrist
67ee6c38b9
Remove the --singeleton option from scaffold generator.
...
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>
2010-06-24 20:17:59 +02:00
Mohammed Siddick.E
7008911222
Patch for Namespace problem in Scaffold. [ #4763 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-23 09:30:55 +02:00
Andrew White
ed3f042e99
Make polymorphic_url and scaffolding work with uncountable resources [ #3930 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-20 00:15:41 +02:00
Jeremy Kemper
72a3e4b77b
Rename fieldWithErrors style to field_with_errors. Remove unused alert style.
2010-04-24 15:02:12 -07:00
David Heinemeier Hansson
8116a2b981
Cleanup indention and spacing and turn errorExplanation into error_explanation now that nobody depends on it anymore
2010-04-13 12:33:34 -07:00
José Valim
944637648c
Use pluralize to properly inflect the number of errors.
2010-04-10 12:45:28 +02:00
José Valim
26e05efdb6
Remove error_messages_for from scaffold.
2010-04-10 11:18:20 +02:00
David Heinemeier Hansson
00ff3ba56f
Need a double escape there
2010-04-09 10:52:28 -07:00
David Heinemeier Hansson
915a0ac420
Notice/alert are out of the layout, so notice has to go back into show to make it work for scaffolding
2010-04-09 10:48:51 -07:00
José Valim
77b238d169
Remove :layout option from generators.
2010-04-06 11:51:30 +02:00
José Valim
ea2c5fa804
A new application now comes with a layout and a stylesheet.
2010-04-06 00:18:35 +02:00
José Valim
b61f6f5980
Load generators from both lib/rails/generators and lib/generators. Using the former since it's less obstrusive.
2010-03-23 13:40:41 +01:00
José Valim
9fffdc5cdb
Generators load path now will be Ruby load path. If you want to use rspec:install generator, you need generators/rspec/install_generator in your load path.
2010-01-18 16:21:11 +01:00
José Valim
9038a4af35
Add documentation to f.submit and make scaffold generators use the new shortcut.
2010-01-14 02:02:07 +01:00
Dan Croak
38f669766c
Rails layouts, error pages, and public/index now use HTML5.
...
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>
2010-01-05 10:13:29 -06:00
David Heinemeier Hansson
fa575973b1
Added alert/notice from 2-3-stable and refactored redirect_to into just living in Redirector [DHH]
2009-12-17 16:37:11 -08:00
Michael Koziarski
28bd0873ff
Don't need h in there now that XSS protection is on by default
2009-10-08 14:34:15 +13:00
Yehuda Katz + Carl Lerche
f0dd77c6be
Move railties/lib/* into railties/lib/*
2009-09-24 16:11:41 -07:00