Commit c309fbbd by Glenn Oppegard

Quick Start fixes for Rail 3.2.3 compat

parent 029fe02f
...@@ -89,6 +89,7 @@ Quick Start ...@@ -89,6 +89,7 @@ Quick Start
In your model: In your model:
class User < ActiveRecord::Base class User < ActiveRecord::Base
attr_accessible :avatar
has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" } has_attached_file :avatar, :styles => { :medium => "300x300>", :thumb => "100x100>" }
end end
...@@ -110,7 +111,7 @@ In your migrations: ...@@ -110,7 +111,7 @@ In your migrations:
In your edit and new views: 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 %> <%= form.file_field :avatar %>
<% end %> <% end %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment