05 Jan '14, 12am

@brunoluiz é do grails, mas se aplica ao rails

/* * The value of the indexes 0 and 1 in albums[0] and albums[1] are arbitrary * values that can be anything as long as they are unique within the Map. * They do not correspond to the order of elements in albums because albums * is a Set. */ def bindingMap = ['albums[0]': [id: 9, title: 'The Lamb Lies Down On Broadway'] 'albums[1]': [id: 4, title: 'Selling England By The Pound']] def band = Band.get(someBandId) /* * This will find the Album in albums that has an id of 9 and will set its title * to 'The Lamb Lies Down On Broadway' and will find the Album in albums that has * an id of 4 and set its title to 'Selling England By The Pound'. In both * cases if the Album cannot be found in albums then the album will be retrieved * from the database by id, the Album will be added to albums and will be updated * with the values described above. If a Album with the specified id can...

Full article: http://grails.org/doc/latest/guide/theWebLayer.html#under...

Tweets

D​ is for Dependency Report -

grails.org 05 Jan '14, 2pm

command generates Ivy reports showing JAR dependencies required by the application. Examples grails dependency-report grai...

"#415 Upgrading to Rails 4 - RailsCasts"

railscasts.com 05 Jan '14, 7pm

The first step is to ensure that we’re running the latest version of Rails 3.2 and that all the application’s gems are up ...

Grails 2.0.0.M1 now available!

grails.org 02 Jan '14, 2pm

Download Grails now and follow the simple installation instructions to start writing amazing web applications in minutes.

@robpatrick @burtbeckwith there's a grails plug...

grails.org 03 Jan '14, 10pm

Grails 2.0 Login Create Account Pivotal Home Learn Products & Services Groovy/Grails Tool Suite (IDE) Other Products Consu...

Grails plugin to package Coda Hale's metrics ja...

grails.org 03 Jan '14, 10pm

Grails 2.0 Login Create Account Pivotal Home Learn Products & Services Groovy/Grails Tool Suite (IDE) Other Products Consu...

Vaadin 7 Plugin 7.1.9.1 released:

grails.org 02 Jan '14, 7pm

Grails 2.0 Login Create Account Pivotal Home Learn Products & Services Groovy/Grails Tool Suite (IDE) Other Products Consu...