add attr_accessible in galleries