Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if @object.save
- Post.method_name(@object)
- end
- def self.method_name(object)
- post_id = 1
- p = Post.new
- p.post_id = post_id
- p.save
- end
- Validation failed: Post type is not included in the list
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement