A web developer's blog. PHP, MySQL, CakePHP, Zend Framework, Wordpress, Code Igniter, Django, Python, CSS, Javascript, jQuery, Knockout.js, and other web development topics.

Monthly Archives: February 2012

Ruby on Rails: Multiple file attachments with Carrierwave and Nested_form

First, I would like to thank Luca for this post. Add in Gemfile gem "nested_form", :git => ‘https://github.com/ryanb/nested_form.git’ Then run bundle install and rails g nested_form:install In my “parent” model: class Allergy < ActiveRecord::Base validates :name, :presence => true has_many … Continue reading

Posted in Uncategorized | Leave a comment