Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created January 22, 2014 22:13
Show Gist options
  • Save knowuh/8568500 to your computer and use it in GitHub Desktop.
Save knowuh/8568500 to your computer and use it in GitHub Desktop.
xhtml fails validation when being copied in LARA
irb(main):049:0> xhtml.duplicate
=> #<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>
irb(main):050:0> dup = _
=> #<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>
irb(main):051:0> dup.save
(1.0ms) BEGIN
(0.8ms) ROLLBACK
=> false
irb(main):052:0> dup.errors
=> #<ActiveModel::Errors:0x000000059c3380 @base=#<Embeddable::Xhtml id: nil, name: "", content: "<p><p>Volatile organic compounds (VOCs) include man...", created_at: nil, updated_at: nil>, @messages={:content=>["Unexpected end tag : p"]}>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment