Goodbits logo black in white circle

This week in Rails

Past issues
Jul 18 Aug 1

Jul 25 2014

Issue #17


Logo for This week in Rails

Issue #17

Welcome to This week in Rails – #RailsTurns10 Edition!

As mentioned last week, the first public version of Rails was unvealed to the world 10 years ago today. Its a great time to reflect on the things Rails taught us along the way – join the discussion on Twitter and Hacker News!

Featured

Looking Backward: Ten Years on Rails

Looking Backward: Ten Years on Rails

If you were curious about the milestones along the way of this 10-year journey, Luke Francl did a great writeup for that. If you prefer, you can always watch his presentation at this year's RailsConf instead.

New Stuff

Rails::Application#config_for

Rails::Application#config_for

This was added a little while ago, but I don't think we have covered it yet. This handy utility method makes it easy to load custom configurations for the current environment, much like how database.yml works.

Add support for Postgresql JSONB

Add support for Postgresql JSONB

Active Record master now supports the "jsonb" data type on PostgreSQL with this pull request. This is a new feature on PostgreSQL 9.4+, enabling more efficient and sophisticated indexing and querying on JSON data. You can read more about it here.

New `type` option for `references` in migrations

New `type` option for `references` in migrations

t.references now takes a type option, handy when the table being referenced has a non-integer primary key column type (e.g. UUID).

Fixed

Copy the default proc in `Hash#with_indifferent_access`

Copy the default proc in `Hash#with_indifferent_access`

This pull request addresses a bug where calling with_indifferent_access on a hash does not copy over its default Proc.

Document the `digest` option in the scaffold generator

Document the `digest` option in the scaffold generator

Did you know that you can use the digest option with the scaffold/model generator and have it add the appropriate database column, add has_secure_password in the model and so on?

Wrapping up

And that's it for this issue of This week in Rails. As always, there are way too many changes on Rails to cover in this newsletter, so I encourage you to check them out!

If you have any feedback for me, please feel free to email me or let me know on twitter! Thank you for reading! <3 <3 <3

P.S. Feel free to share this newsletter with your Rails friends!











Previous Issues

  • Sep 27

    Autumn is here, and so is Rails 7 Alpha 2! 🍂

  • Sep 17

    Rails 7 alpha released

  • Sep 12

    Bye-bye Byebug, Hello jsbundling and cssbundling!

  • Aug 28

    Remove default reliance on Sass and more!

  • Aug 21

    Good-bye classic mode, --skip-puma, --skip-gemfile.. hello weekday_options_for_select!

  • Aug 13

    ESM importmap and Marginalia

  • Aug 8

    Active Record goodies and more!

  • Jul 31

    Favicons, InvalidAuthenticityToken message gains, Journey optimizations and more!

  • Jul 23

    Active record improvements and much more

  • Jul 19

    Performance and parallel testing improvements and more!

Load More

© 2014-2025 This week in Rails.

Goodbits logo square wrapper Published on Goodbits