addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcredit-cardcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

Re: [ruby-112] Rails 2.0 Preview Now Out - What's New In Rails 2.0

From: Simon W.
Sent on: Monday, October 1, 2007 6:04 PM
I'm on rails edge with a couple projects - one in beta and one in late 
stages of development.

"sexy migrations"
=================
t.column :name, :string
-- becomes --
t.string :name

It should be sexier, but for some reason my brain just can't be wrapped 
around the datatype being on the left. Perhaps it's just a matter of time.

t.column :updated_at, :datetime
t.column :created_at, :datetime
-- becomes --
t.timestamps

+1 dead sexy.

Par of "much more"
==================

wants.json {
   render(:json => @artists.to_json(
     {:only => [:id, :name]}
   ))
}

+1 replaces json hackery and plugins.


"HTTP Love"
===========

 From the release:
Mime.register_alias "text/html", :iphone

more importantly to me:
Mime.register_alias "text/html", :fbml

+1 - need I say more?

"Action Pack: Exception handling"
====================­=============

rescue_from User::NotAuthorized,­ :with => :deny_access

+1 - So needed

Problems
========

The only problems I'm running into are various plugins that dip a bit 
too deep into core rails were breaking on things like no_method errors. 
  (Geokit as an example)

I've been waiting for the official 2.0 to submit any patches, looks like 
I waited a few days too long.

Cheers, Simon


Gerald Bauer wrote:
> Hello,
> 
>    David Heinemeier Hansson (DHH) - the creator and project lead of 
> Rails - reports on the Riding Rails blogs that Rails 2.0 - the preview 
> version - is now out including hundreds of new features:
> 
>   o Action Pack: RESTful Resources, Multiview, HTTP Loving, and much more
>   o Active Record: Sexy migrations, gazillion fixes and small tweaks for 
> better performance
>   o ActionWebService out, ActiveResource in
>   o and much more
> 
>    Source: 
> http://weblog.rub...­
> 
>    Let us know what you think about the upcoming changes. Anyone already 
> living on the edge?
> 
>    Cheers.
> 
>      Gerald
> 
> ____________________­____________________­_________
> Rails Designers/Developers­ Wanted @ E-xact Transactions
> More @ http://jobs.vanrb...­
> 
> 
> 
> 
> 
> -- 
> Please Note: If you hit "REPLY", your message will be sent to everyone 
> on this mailing list ([address removed])
> This message was sent by Gerald Bauer ([address removed]) from The 
> Vancouver Ruby/Rails Meetup Group.
> To learn more about Gerald Bauer, visit his/her member profile: 
> http://ruby.meetu...­
> To unsubscribe or to update your mailing list settings, click here: 
> http://www.meetup...­
> 
> Meetup.com Customer Service: [address removed]
> 632 Broadway New York NY 10012 USA
> 

-- 
Simon C. Wex

email:  [address removed]
mobile:[masked]
web:    http://simonwex.c...­

Our Sponsors

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy