%p #{link_to "label", "url"}! Haml is a great engine for writing shorter, readable HTML. However, there is...
When requests arrive at the application servers simultaneously, weird things can happen. Sometimes, this can also happen if a user...
Say you want to vertically align a div box inside a div container. This is how you do it:
Today, this line made me trouble. Can you spot the mistake? match 'sitemap.xml' => 'feeds#sitemap', :constraints => { :format => 'xml' }, :as => 'sitemap...
Slides presenting ways to integrate the ideas of Aspect-Oriented Programming in Ruby. Outline Why Aspect-Oriented Programming?
# Generate paths and URLs > app.project_path(Project.last) => "/projects/34" # Make requests > app.get '/projects/34' => 200 > app.response.body => " ..." # Use helpers helper.truncate("Foobar", length: 5...
DTAUS & DTAZV are formats for German bank transfers and is short for "Datenträgeraustausch". The format itself totally sucks because it...
When you add a linear gradient to an element, IE9 removes all border-radius and inset box-shadows. This is...
File upload with nice UI, progress bar and preview, allowing multiple files and supports drag & drop. Its default is built...
When you want to test how an web-application reacts in a specific resolution, you can set up a specific...
The DOM window object provides access to the browser's history through the history object. It exposes useful methods and...
The closest is probably Nimbus Sans L, which is released under the GPL, AFPL, LPPL licenses. However, I couldn't...
Note that you are not allowed to embed any font in a website. You need to check the license first...
Basic box shadow support is available in all browsers today, but you need to check to which extend they are...
All our projects have enum-like requirements like this: An attribute value must be included in a given set of...
Controller responses often include Javascript code that contains values from Ruby variables. E.g. you want to call a Javascript function...
By default, Google Analytics tracks the current URL for every request. Sometimes you will want to track another URL instead...
So you probably see the following error trace within your Passenger log file if you got here:
You can change which branches will be pushed when saying git push. Our recommendation is to set it to current...
You can define what will be printed by checking View -> Preview Page Breaks and then moving around the blue borders...
validates_acceptance_of :terms only works if terms is set to a value. The validation is skipped silently when terms...
When you create a new branch and push it to origin, you won't be tracking it. This means a...
You won't usually have to do this. It's OK to route all formats to a controller, and let...
The following two hints are taken from Github's Ruby style guide: If your regular expression mentions a lot of...