Rails 8 Multiple Databases on Heroku

Rails 8 introduced support for multiple databases, and by default, it wants to create separate database instances for your primary data, cache, queue, and ActionCable connections. If you’re deploying to Heroku and you just follow the defaults, you’ll end up with four separate Postgres databases, which means four separate billable databases instances. I’m using a … Read more

The Simple Guide to Rails Pluralization

This is probably one of the simplest things, but something that I have to stop and ask myself over and over again:  when do I use singular or plural when using Rails generators?  I’ve been a long time fan and user of Ruby on Rails.  I’m also not a developer, so working with proper coding … Read more

Nice Flash messages in Rails 2 and Rails 3

I’ve been doing some Rails work recently and one of the things that I’ve found to be a nice aesthetic add-on is putting some nicer flash messages in. Over at dzone.com there is an example which I’ve worked off of – http://snippets.dzone.com/posts/show/3145 The example is as follows. Add this section to your application_helper.rb def show_flash … Read more

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.