Created
March 3, 2012 04:20
-
-
Save deJaVisions/1964328 to your computer and use it in GitHub Desktop.
error: Can't mass-assign protected attributes: {:name=>%22material
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/materials/edit.haml | |
| = form_for @material, :url => admin_material_path do |f| | |
| = f.file_field name: 'material[image_ids]' | |
| #material.rb model | |
| attr_accessible :title, :description, :material_type_id, :finish_ids, | |
| :application_ids, :image_ids |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment