Added attr_accessible to snippet