Hi Arun,
did you permitted the "avatar" field in the strong parameters?
If you are using Devise, edit your application_controller.rb to something
like this:
class ApplicationController < ActionController::Base
before_filter :configure_permitted_parameters, if: :devise_controller?
protected
def configure_permitted_parameters
devise_parameter_sanitizer.for(:sign_up) << :avatar
end
end
--
Daniel Loureiro
http://www.learnwithdaniel.com
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/05a04530-6fd5-4376-84fe-b497b824533e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.