I am new to Ruby on Rails.
I am using Rails 4.0.3, Ruby 1.9.3.
I tried to import CSV file from the sample "396-importing-csv-and-excel-master"
But it is throwing error.
Error:
attr_accessible is no longer in use
and suggests to use Strong parameter. Can any one help me to import CSV using strong parameter?
attr_accessible is no longer use in rails 4. In rails4 just like
params.require(:person).permit(:name, :age)I think this can help you