...visible or hidden, we always expect the given text to be contained in the HTML. The test is about whether or not it is hidden via CSS.

makandra dev

SiteDomain="yourdomain.de" DirData="." DNSLookup=0 Run the following to build a simple HTML page: awstats -staticlinks -config="yourdomain.de" -LogFile=your-logfile.log -output > report.html This might take a second (it...

Under certain (unknown) circumstances, Rails will give localized files an invalid content-type in the Response header. For me, after...

The step definition below allows you to write: Then I should see an HTML redirect to "http://www.makandracards.com" in the page head Capybara Then /^I should see an HTML redirect...

Simplecov is a code coverage tool. This helps you to find out which parts of your application are not tested...

In Rails, you can very easily send emails with HTML and plaintext bodies. However, if you're trying to debug those using your normal email account, you might be out...

...will simply throw away the plaintext part of your mail, and just save the html part...

makandra dev

.../tmp/github.html Paste your markdown Press Ctrl-D to finalize your input Open the generated HTML file and print it.

makandra dev

db/schema.rb db/structure.sql public/system .project .idea/ public/javascripts/all* public/stylesheets/all* public/stylesheets/*.css config/database.yml *~ *#* .#* .DS_Store webrat-*.html capybara-*.html rerun.txt coverage.data coverage/* dump_for_download.dump .~lock.* .*.swp C:\\nppdf32Log\\debuglog.txt

...our applications. There are many ways to achieve this, from SVGs inlined into the HTML, SVGs inlined in CSS, JavaScript-based solutions, to icon fonts. Out of all these options...

...produces the desired result. vertical-align: text-bottom margin-bottom: -.1em Now, in your HTML, you can add an icon with Icon names are simply the file names of the...

makandra dev
select2.org

...select2 input, you can populate it via AJAX in order to not pollute your HTML with lots of elements. All you have to do is to provide the collection in...

blog.plataformatec.com.br

It is common in Rails 3.0 applications that you want to provide default views for a group of controllers. Let...

campaignmonitor.com

...what you will not be able to use across all clients. See also Designing HTML emails

makandra dev

Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use this: $ while(true) do haml index.haml index.html; sleep 1.5; done

Simple: Tell the application controller how to handle exceptions, here a RecordNotFound error. Do this with the following line: # application_controller.rb...

...plain-text response, and can cause trouble. \ For example, consider a middleware that transforms HTML responses; it would also touch such wannabe-plain-text responses sent with the incorrect content...

...response.content_type # => "text/plain" Latest Rails Rails 4.1 deprecates render :text. You should use render :html or render :plain instead. render html: 'Hello' response.body # => "Hello" response.content_type # => "text/html" render plain: 'Hello...

makandra dev

...chain function calls to the promise using .then(), without needing to wait for the HTML request to actually return. The promise will collect all functions passed to then() and invoke...

makandra dev
semaphoreci.com

Capistrano 3 is a major rework of the framework and requires several adjustments to your deploy configuration files. The biggest...

...into a helper called patiently do, like this: Then /^I should see "([^\"]*)" in the HTML$/ do |text| patiently do body = page.body expect(body).to have_content(text) end end

...together. For instance, the following might not work: Then /^I should see "([^\"]*)" in the HTML$/ do |text| body = page.body patiently do expect(body).to have_content(text) end end

makandra dev

+buttons-sprite("blue-button", false, x-offset, y-offset) Spacing When your HTML element is larger than the image you're using, other images in the same sprite...

for(let key of stylesheetsContext.keys()) { stylesheetsContext(key) } // webpack_source_path/application/stylesheets/main.sass @import 'font_faces' html font-family: MyFont, Arial // webpack_source_path/application/stylesheets/_font_faces.sass @font-face font-family: 'MyFont' src: url('../fonts/my_font.ttf...

...text, you can use it with regular rails form like this: - form_for @signature, :html => { :class => 'signature_form' } do |form| %dl %dt = form.label :name %dd = form.text_field :name %dt = form.label...

...option was removed so that in development everything is rendered ugly, too. Problem When HTML is rendered from HAML in production or staging environment, whitespace is removed to reduce the...

...app01-prod: Processing by Users::SessionsController#new as HTML 01 app01-prod: Rendering devise/sessions/new.haml within layouts/signed_out 01 app01-prod: Rendered devise/sessions/new.haml within layouts/signed_out (4.8ms) 01 app01-prod: Rendered layouts/shared/_head.haml...

makandra dev
blog.getbootstrap.com

...they do nearly everything wells, thumbnails, and panels did, only better. Consolidated all our HTML resets into a new module, Reboot. Reboot steps in where Normalize.css stops, giving you more...