fixed wrong params for write_attribute
added method_missing for field model