By default, Rails views escape HTML in any strings you insert. If you want to insert HTML verbatim, you need...

If you want to distribute a 's width equally over its columns, you can use the following CSS property:

Clearfix is a hack to clear floating elements without additional HTML markup. If you only need to support IE8 and...

danhixon.github.com

If you encounter the error message above when running cucumber, just execute... rm rerun.txt ...in the Rails directory.

When using the screen tool you may be unable to start a screen session but instead encounter an error:

To show the MySQL default character set you have to login to the MySQL console and execute SHOW VARIABLES LIKE...

stackoverflow.com

The solution in this card is based on a stack overflow post by Leventix. If you need to make request...

rubyinside.com

While 2.0 will include a number of syntax changes, new features and general improvements, mentioned below, it is anticipated to...

If you specify different ports, you can run multiple local webricks with rails server --port=300X at the same time...

First keep in mind that :dependent => :destroy hooks into before_destroy. So when you use other before_destroy callbacks the...

ckeditor.com

Using the jQuery adapter breaks the built-in save function of CKEditor. Phenomenon: The page is submitted correctly, but the...

makandra dev

You can use the attached script to do so: # ./log_parser.rb 2011-10-04 27 hits on /rss.xml 36 hits on /stylesheets/fonts/slkscr-webfont.woff 37 hits on /stylesheets/fonts/slkscrb-webfont.woff

Please note that you can break your system with this! This is not recommended. Sometimes the package repository has errors...

The buffer where text is put into when you double-click on text within X is called X selection.

You need to restart Eclipse.

The most common use case for Ruby's #collect is to call a method on each list element and collect...

makandra dev

In order to monitor a Rake task using God your Rake file must write a file with its process ID...

...check if the test travels in time like here: Given the date is 2017-10-20 When I sign in Then I should see "Welcome!" What happens here is that...

RSpec lets you define the arguments with which you expect a method to be invoked: subject.should_receive(:say).with('hello...

Capybara will match elements outside of a page's tag. For example, the step definitions below match nodes in a...

makandra dev

If you want to stop getting notified about new messages in a Skype chat (but not leave it altogether), you...

github.com

Looks simpler than inaction_mailer: gem install mailcatcher mailcatcher Setup Rails to send mails to 127.0.0.1:1025. Usually you want...

grep -r doesn't work on Solaris. You can only grep on files in the current directory. A workaround is...

When you require the Ruby debugger to be available from your Rails console (e.g. you want to inspect a method...