Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created April 14, 2009 03:23
Show Gist options
  • Select an option

  • Save ukstudio/94935 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/94935 to your computer and use it in GitHub Desktop.
u = User.new
u.entries.build
u.valid?
u.errors.full_messages
#=> ["名前を入力してください。", "Entries bodyを入力してください。", "Entries titleを入力してください。", "Eメールを入力してください。"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment