Closed danil-z closed 11 years ago
my User model looks like:
class User < ActiveRecord::Base
rolify
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable
attr_accessible :role_ids, :as => :admin
attr_accessible :name, :email, :password, :password_confirmation, :remember_me
acts_as_avatarable
end
config/initializers/avatars_for_rails.rb
AvatarsForRails.setup do |config|
config.controller_filters = [ :authenticate_user! ]
config.controller_avatarable = :current_user
config.avatarable_styles = { small: '50x50',
medium: '120x120' }
end
Hi @blackbumer you need to pass the avatarable object. I have improved the documentation with an example on how to achieve it
Hello, I was wondering if this gem was still active. It doesn't come up at RubyGems at all nor when I run bundle install.
Hello. i'm wondering why do i get this error when i try render 'avatars/form' partial?