Darn it Rob, you stole my line! ;) I think I should release my TextMate bundle with all the goodies I use. (scaffolding for Specs, views etc...) Actually, maybe we should make an official SDRuby textmate bundle. (sorry Linux/Windows users)
Ohh and if you switch to Rails 2.0 you HAVE to use REST, actually even if you stick to 1.2.x you should be using REST. Btw, for those interested, Rails 2.1 might have i18n/l10n - TzTime builtin - potential new ActiveRecord SQL generation/tables relationships and much more. ooohh and Rails is already almost functional with Ruby 1.9 !!! -Matt On 1/8/08, Rob Kaufman <[EMAIL PROTECTED]> wrote: > > > To emphasize on of Patrick's points: if you do "ruby script/generate > scaffold Model name:string content:text price:decimal" then your views > come out with all the column known (and very ugly <b> labels ;-) > > To beat Matt Aimonetti to the punch: it really should read "ruby > script/generate rspec_scaffold Model name:string content:text > price:decimal" > > Rob > > On Jan 7, 2008 9:52 PM, Patrick Crowley <[EMAIL PROTECTED]> wrote: > > > > > One issue specifically that I've noticed is that "script/generate > > > scaffold" doesn't have the same "wow" factor that it had in 1.x. > > > Since the form isn't generated, it makes it a little harder for the > > > Rails novice and takes away one of Rails big selling points. > > > > As a community, we've really moved away from scaffolding. > > > > While scaffolding made for a sexy demo, it wasn't very useful. > > Inevitably, you'd need to rip out the scaffold code and replace it > > with your own stuff. > > > > The new scaffolding style may be confusing for newbies, or those who > > want to build a blog app in 15 minutes, but it's very helpful if you > > wish to build REST-based applications. > > > > 1. Run script/generate scaffold Model. (Pass the fields you want as > > extra parameters to the scaffold command.) > > > > 2. If you didn't specify your fields above, add them to your database > > migration and new/edit action views. > > > > 3. Run rake db:migrate. > > > > -- Patrick > > > > > > > > > > > > > -- -------- http://railsontherun.com --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list sdruby@googlegroups.com http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---