Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> m = Message.create
- => #<Message id: nil, text: nil, user_id: nil, created_at: nil, updated_at: nil, sound_file_name: nil, sound_content_type: nil, sound_file_size: nil, sound_updated_at: nil, title: nil, moderate: nil, image_file_name: nil, image_content_type: nil, image_file_size: nil>
- >> m.check_for_message
- => ["Please add content (text, mp3, image' )"]
- >> m.errors.full_messages
- => ["Tag list can't be blank", "Please add content (text, mp3, image' )"]
- >> m.save
- => false
- >> m.errors.full_messages
- => ["Tag list can't be blank"]
- >> m.check_for_message
- => ["Please add content (text, mp3, image' )"]
Add Comment
Please, Sign In to add comment