So the thing is, you want to use it from irb
where you would want to use the rails console
.
If you need to use it from irb
you will have to require the right path:
require "action_view"
=> true
require "action_view/vendor/html-scanner"
=> true
HTML::Selector.new "form.login[action=/login]"
=> #<HTML::Selector:0x007f8b5c0fb268 @source="form.login[action='/login']", @tag_name="form", @attributes=[["class", /(^| )login($| )/], ["action", /^\/login$/]], @pseudo=[], @negation=[], @alternates=[], @depends=nil>