You cannot use Array#join on an array of strings where some strings are html_safe and others are not...
If you want your application to display properly on iPad, iPhone or Android there are two things to do:
In January this year (2010), Gmail switched to using HTTPS for everything by default. Previously it had been introduced as...
The following Sass will do the trick: button, input[type="reset"], input[type="button"], input[type="submit"], input[type="file...
Our collection of the most useful Cucumber steps, Spreewald, now supports exact matching of form fields and lets you use...
When you need to see the content of a page (i.e. not all the HTML but the relevant text body...
Using this step definition you can check if any form field (text field, checkbox, etc) or button is disabled:
Use the htmlentities gem. Encoding works like this: require 'htmlentities' coder = HTMLEntities.new string = "<élan>" coder.encode(string) # => "<élan>"
When a has_many association basically serves to store a list of associated strings (tags, categories, ...), it can be convenient...
Note that this card is very old. You might want to use ActiveType for your auto-coerced virtual attributes instead...
E.g. when you're using a tagging gem, you have seen virtual attributes that get and set a string array...
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.
There is a problem with AJAX response handling for Rails 3 remote links and forms in Internet Explorer. This problem...
The following initializer provides an :alias => "my_route_name" option to restful routes in your route.rb. This simply makes the...
If you need to revert only parts of one or several commits the following workflow can help:
Regular spaces and non-breaking spaces are hard to distinguish for a human. Instead of using the HTML entity...
Thanks to habits engrained by Rails 2’s link_to_remote and remote_form_for, we expect that Rails 3...
If a controller action responds to other formats than HTML (XML, PDF, Excel, JSON, ...), you can reach that code in...
This returns the name (including path) of your current layout: response.layout => "layouts/admin" # inside views that are using the 'admin' layout...
In rare cases you might need something like form_for (for using form builder methods on the resulting block element...
When using form_for you can give the form's target URL either as a string or an array:
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...