Browse files

Quick Start fixes for Rail 3.2.3 compat

  • Loading branch information...
1 parent 029fe02 commit c309fbbdc353229b6a35c3965f9195598e7b6b1d @oppegard oppegard committed Jul 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.md
View
3 README.md
@@ -89,6 +89,7 @@ Quick Start
In your model:
class User < ActiveRecord::Base
+ attr_accessible :avatar
has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" }
end
@@ -110,7 +111,7 @@ In your migrations:
In your edit and new views:
- <%= form_for :user, @user, :url => user_path, :html => { :multipart => true } do |form| %>
+ <%= form_for @user, :url => user_path, :html => { :multipart => true } do |form| %>
<%= form.file_field :avatar %>
<% end %>

0 comments on commit c309fbb

Please sign in to comment.