Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
[stbenjam@foreman-dev foreman]$ rails c test
For some operations a user must be set, try User.current = User.first
Loading test environment (Rails 3.2.16)
1.9.3-p448 :001 > host = :name => "myfullhost", :managed => true
1.9.3-p448 :003 > host.valid?
=> false
1.9.3-p448 :004 > host.errors[:root_pass].any?
=> true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.