When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Styling button tags across all major browsers is not easy. Many times you should be fine by using the native...
Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "<élan>"
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...
This collection of Sass mixins enables cross-browser styling (including IE with CSS3PIE) with less lines of code.
This is non-trivial because you need to fake event objects and require different code for different browsers. Luckily, there...
When using an odd value for line-height in CSS the result will vary across all major browsers.\
Fixes all Flash elements on a page so that they heed DOM stacking order
Regular spaces and non-breaking spaces are hard to distinguish for a human. Instead of using the HTML entity...
This note describes a Cucumber step definition that lets you test whether or not a CSS selector is present on...
If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...
I’m going to list assumptions your systems probably make about names. All of these assumptions are wrong. Try to...
Lately, we’ve been exploring ways to offer web apps that perform like native apps on mobile devices. For this...
Sometimes the order in which strings appear on a page matters to you. Spreewald gives you steps like these:
If you have several submit elements (inputs or buttons with type="submit") that each cause different things to happen (e.g...
You don't need a Rails application to use Sass. Even when you're working on a static site you...
Because they are vector, it would make sense if we could do things that other vector programs (e.g. Adobe Illustrator...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
The CSS Emoticons plugin is a simple jQuery plugin (and stylesheet) that allows you to turn any text emoticons on...
You can use the whatlanguage gem to detect the language of a Ruby string. Note that it also has not...
This gem is designed to provide CSS views to Rails, and a process to concatenate and minify these files to...
WMD is a simple, lightweight HTML editor for blog comments, forum posts, and basic content management. You can add WMD...
There are two distinct ways of commenting Haml markup: HTML and Ruby. HTML comments This will create an HTML comment...
To return non-HTML responses (like XLS spreadsheets), we usually use the respond_to do |format| format.xls do # send spreadsheet...