...icon-sprite) no-repeat 0 offset-to-cross-icon You can also have compass include the height and width of the original image, by using +buttons-sprite("blue-button", true...
Lightweight Angular JS directive to upload files Includes polyfills for old IEs. Unfortunately, their auto-loading mechanism may not work properly on your Rails application due to the asset pipeline...
...They use FileAPI, so you could just include it manually for old browsers, or when you want to use FileAPI's toolkit anyway...
...s matching strategy globally to :prefer_exact. This will positively affect all you steps (including those of gems like Spreewald) as it prevents the Capybara::Ambiguous error in the edge...
...case when two fields are matching the given name, but one of the matches includes the name only as a substring, Capybara.match = :prefer_exact
...see it in action. Note that if you have a vertical scrollbar, 100vw will include the scrollbar width, effectively causing a horizontal scrollbar. To cover clickable areas, it's often...
...do with EWS, with accompanying Viewpoint code. Connecting to an exchange server require 'viewpoint' include Viewpoint::EWS endpoint = 'https://your.exchange.server/ews/Exchange.asmx' user = 'your-user' pass = 'your-password' client = Viewpoint::EWSClient.new...
...does not matter if an application is idle for a while. The gem also includes a command line utility to extract useful information from the raw dumps. You can run...
...on top of the stack trace. Both values correspond roughly to "time spent", either including or excluding children. You can get more detailed information on a method by running
...the call to exception notifier triggers the correct kind of mail. If foreground_sections include request (which is the case for default configuration) and your call leads to a foreground...
...are always the first column, so we can check against "VALUES (\d+,"). If it includes any mention of schema_migrations we also print it (because we want them all).
...for 15 minutes. Do not mix protocols. On an https page, you have to include your stylesheet over SSL, and all absolute paths within that stylesheet need to use SSL...
Carrierwave includes some handy helper methods you can use to resize your images. Here is a quick summary of them, if you need more details read the docs. You can...
...Compatible changes Improved documentation; README now includes command options. Improvement #90: geordi console, geordi deploy, geordi rake and geordi shell now work correctly if the project hasn't been bundled...
...cucumber you are able to run features in whatever directory you like. This also includes executing features in subdirectories. There are only some things you have to take care of...
...a separate query to preload associations. Here is some special case, where a simple includes is not possible. For the diagram below we want to sort the rides by the...
...experience by applying a few classes via the styles setting. You still need to include rome/dist/rome.css for its basic positioning styles. rome(element, { weekStart: 1, // Monday weekdayFormat: 'short', // Mon
...steps below, you will drop and recreate your cluster. You will lose all data (including roles). Instructions below include a procedure for dumping and restoring all cluster data (including roles...
When using GROUP BY, MySQL now complains if the SELECT includes columns which are not part of the GROUP BY. Reason: There could be multiple values for those columns per...
...implementation of LESS that’s run by your web browser. As any JavaScript, you include a link to the script in your HTML, and…that’s that. LESS is now...
...going to process LESS code so instead of including a link to a CSS file, you’ll include a link directly to your LESS code. That’s right, no CSS...
end class Party < ActiveRecord::Base has_many :invitations has_many :users, through: :invitations, include: :user, order: 'users.name' end class Invitation < ActiveRecord::Base belongs_to :party belongs_to :user
When accessing users, they are loaded from the database (probably because of the include/order combination), so you may be missing User records that have not yet been saved.
...limits in how we can extend the chain. For example, any additional joins or includes on the user association may raise an error or modify your query in unexpected ways...
...every incoming request that refreshes the cookie's expiration date: class ApplicationController < ActionController::Base include Clearance::Authentication before_filter :refresh_authentication def refresh_authentication sign_in(current_user) end
...Use it by adding it to your project and requiring Sass files as follows. // Include your custom Bootstrap variables instead, if you have some. @import ~bootstrap/scss/bootstrap/variables @import ~bootstrap/scss/bootstrap/mixins
...will raise an exception! On the other hand the select method allows you to include additional data in your models such as the results of MySQL functions. Those function resulst...
...posts.*, MAX(comments.created_at) AS latest_comment_at").joins(:comments).group("posts.id") Here we included the date of the latest comment of each post using the MySQL MAX function combined...
Having your site run on SSL is worthless when you include content over an unsafe connection (HTTP). Here is how to hunt down mixed content with Firefox.
...data for AWSAccessKeyId and Signature being used within the URL. So you should not include those links within views but only when the document is requested, i.e. link to attachments...