Created
January 22, 2014 22:13
-
-
Save knowuh/8568500 to your computer and use it in GitHub Desktop.
xhtml fails validation when being copied in LARA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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