Lessons learned: migrating Ruby on Rails app to a private server

I needed to migrate a ruby on rails app from amazon web services to a privately owned hosting service. AWS has it's own method of building and provisioning rails app (basically by using their in house tool called "beanstalk"), so provisioning and migrating the data to a normal, private server meant I took some quick notes … Continue reading Lessons learned: migrating Ruby on Rails app to a private server

Rails : of select_tags and options_from_collection_for_select

A bit difficult to get this information... Rails' helper when building select elements for a form is the well-known select_tag. If you are populating the options within a select form with data from your database through a model, you would use the options_from_collection_for_select helper. An example  is in fact quite straightforward: options_from_collection_for_select(@extensions, 'ext', 'name') Meaning if your … Continue reading Rails : of select_tags and options_from_collection_for_select