Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

sunil sunny's Profile

GitHub User: sunil1293

Comments by sunil sunny

Avatar

hi i am using rails 4.1.2, ruby 2.0.0
I upgraded the application form rails 3.2.14 to rails 4.1.2

ActiveModel::ForbiddenAttributesError in AAAAAImportsController#create
ActiveModel::ForbiddenAttributesError

ruby
  def import_params
    params.require(:aaaaa_import).permit(:file)
  end
ruby
@aaaaa_import = AaaaaImport.new(import_params)

in my controller and removed attr_accessible in model