A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you'd like to hire me, drop me a line. I'm also the author of Rails Rescue Handbook and Rails Freelancing Handbook.

Navigation
« Double Shot #921 | Main | Double Shot #920 »
Tuesday
Jul242012

What's New in Edge Rails #30

Week of July 16 - July 22, 2012

Big changes to associations internals landed this week, along with various other odds and ends.

  • There's now a migrator specifically for join tables, keyed on the migration name: rails g migration create_clients_join_table doctors patients., as of 211d88b7.
  • More tidying on the JavaScript front: fb8a830a removes :confirm in favor of :data => { :confirm => 'Are you sure?' } in various tag helpers.
  • e1cfa6e0 shows off the new association macro syntax, with declarations like has_many :popular_grouped_posts, -> { includes(:comments).group("type").having("SUM(comments_count) > 1").select("type") }, :class_name => "Post"
  • 3803fcce drops support for the :finder_sql, :counter_sql, :insert_sql, and :delete_sql in declaring associations.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>