"Wallaby" is the codename for an experimental technology that converts the artwork and animation contained in Adobe® Flash® Professional (FLA...
If you have content inside a page that is hidden by CSS, the following will work with Selenium, but not...
If you use a form (or form fields) multiple times inside one view, Rails will generate the same id attributes...
Flash movies (.swf files) can talk with Javascript code embedded in the same HTML page. There are two ways to...
Sometimes you want to run a command forever, e.g. to compile a haml to html file on the console. Use...
Javascript that implements client-side hyphenation of HTML-Documents.
You know Firebug as a Firefox extension but there is also a "Lite" version which runs purely off JavaScript.
If you want your application to display properly on iPad, iPhone or Android there are two things to do:
When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "<élan>"
When rendering a partial with the :collection option, you are automatically provided with a counter variable inside the partial template...
This step tests whether a given select option comes preselected in the HTML. There is another step to test that...
Regular spaces and non-breaking spaces are hard to distinguish for a human. Instead of using the HTML entity...
If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...
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...
This will show you how to create a RSS feed that the Feed Validator considers valid. Note that RSS is...
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...
One option is to use partials. Or you can set the @template field to the name of another action:
Sometimes files attain executable-flags that they do not need, e.g. when your Windows VM copies them over a Samba...
You can write regular expressions some different ways, e.g. /regex/ and %r{regex}. For examples, look here. Remember that it...
jamesgolick / resource_controller at Github module ResourceController module Actions def index load_collection before :index response_for :index end