Added to Gemfile
gem 'render_component_vho'
gem 'active_scaffold_vho'
gem 'kaminari'
gem 'carrierwave'
Run the following commands
bundle install
bundle exec rake db:create
rails generate uploader Avatar
rails g active_scaffold Team name:string avatar:string
bundle exec rake db:migrate
Add the following line to app/assets/javascripts/application.js
//= require active_scaffold
Add the following line to /app/assets/stylesheets/application.css
*= require active_scaffold
Add the following line to /app/models/team.rb
mount_uploader :avatar, AvatarUploader
Run the app and visit localhost:3000/teams
Unfortunately with rails 3.1.11, active_scaffold_vho 3.1.6 & carrierwave 0.5.8 I'm currently getting an error when trying to do the upload:
NoMethodError (undefined method `strip' for #<ActionDispatch::Http::UploadedFile:0xb5f8f81c>):