Haml 3.1.2 displays single quotes in FormBuilder#text_ field html escaped. You may see something like that: David's Chapter Looking at the page's HTML, your field's...

...ApplicationController skip_before_action :verify_authenticity_token def not_found render :status => 404, :formats => [:html] end def server_error render :status => 500, :formats => [:html] end end Add the corresponding views...

...see in this order: """ Alpha Group Augsburg Berlin Beta Group """ The step ignores all HTML tags and only tests on plain text...

gist.github.com

How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea...

robots.thoughtbot.com

...useful not just for upgrading suites from Webrat, but really anywhere you have an HTML fragment or string that you’d like to use Capybara’s matchers on...

fortawesome.github.io

A list of FontAwesome icons in the form of copyable Unicode characters or HTML entities. You might prefer to use FontAwesome by simply typing out these characters instead of using...

hacks.mozilla.org

Since Firefox 8 it is possible to define custom context menus (right clicking) with HTML markup...

makandra dev
github.com

"one & two".convert_miscellaneous_characters # => "one and two" "my words".convert_miscellaneous_html_entities # => "my words" I18n.locale = :da "one & two".convert_miscellaneous_characters # => "one og two"

...words".convert_miscellaneous_html_entities # => "my mellemrum words...

makandra dev

...you should never do this (notice the whitespace in front of #): <% # my comment %> my html This leads to strange html output. To avoid long debugging sessions, you should never have...

web.archive.org

This step tests whether a given select option comes preselected in the HTML. There is another step to test that an option is available at all. Capybara Then /^"([^"]*)" should be...

...This is only possible with the {} attribute syntax, not with the () attribute syntax. Example: HTML5 data attributes HTML5 allows you to use arbitrary attributes like data-method and data-confirm...

schema.org

...Cameron (born August 16, 1954) Science fiction Trailer Further reading: How to Create an HTML5 Microdata Powered Resume

When you print (or print preview) and elements are cut off (e.g. after 1st page, or "randomly") you should check...

makandra dev

...scrolling by default. You can address this by disabling smooth scrolling in tests: body, html { scroll-behavior: auto !important; } If you have other scrolling elements with overflow-y: scroll or...

tinyMCE.activeEditor.getContent()

imperavi.com

New WYSIWYG editor that claims to be lighter and prettier than TinyMCE and CKEditor. Has some Rails integration, too.

...between smooth and instant scrolling. Preferring instant scrolling CSS can prefer instant scrolling behavior: html { scroll-behavior: auto; /* the default */ } An auto behavior causes the browser to instantly jump to...

...smooth scrolling CSS can prefer a smooth scrolling animation: @media not (prefers-reduced-motion) { html { scroll-behavior: smooth; } } An smooth behavior causes the browser to animate scrolling in these situations...

As you may know, HAML expands data attributes that are given as a hash: %div{ data: { count: 3 } }

makandra dev
github.com

Clamps (ie. cuts off) an HTML element's content by adding ellipsis to it if the content inside is too long. While you can only truncate single lines with CSS...

When you replace parts of the DOM with new HTML, using .innerHTML = newHtml is usually the simplest and fastest option. It comes at the price of your DOM elements losing...

...will try to do the minimum DOM changes required to arrive at the target HTML. Idiomorph seems to be a bit smarter when your DOM structure changes, and you can...

...it's set to ActionDispatch::PublicExceptions (documentation) called from the ActionDispath::ShowExceptions middleware. For HTML requests, ActionDispatch::PublicExceptions will render html files public/ .html. For other content types, it will...

...be overwritten per controller when consider_all_requests_local is set to false. For HTML requests, DebugExceptions will respond with the default red Rails error page that everyone knows.

...breaking spaces are hard to distinguish for a human. Instead of using the &nbsp; HTML entity or code like " " # this is an nbsp, use a well-named helper method instead...

The Javascript code below is a rough equivalent to the simple_format helper that ships with Rails: function simpleFormat(str...

A haml angular 1 template with .thing(class="is-{{:: item.type }}") will be compiled (by haml) to which is not what...