Displaying 1 result from an estimated 1 matches for "fsdfgdsg".
Did you mean:
fdfgdfg
2009 Jun 21
1
cannot do mass_assignment when inherited class ?
...brary])
RuntimeError Exception: Declare either attr_protected or
attr_accessible for Elibrary, but not both.
params : "elibrary"=>{"title"=>"bingo three",
"short_description"=>"something new", "description"=>"<p>fsdfgdsg</
p>"}
Elibrary is declared as inherited from MediaItem, and attr are
declared accessible in MediaItem....
class MediaItem < ActiveRecord::Base
belongs_to :media_container
# Behaviours
acts_as_nested_set
attr_accessible :title, :short_description, :description
...
class E...