When you develop a gem and you have a Gemfile in your project directory, you might be surprised that your...

makandra dev

Consul 0.4.0 comes with some new features. Dependencies Consul no longer requires assignable_values, it's optional for when you...

makandra dev
build.phonegap.com

Write your app using HTML, CSS or JavaScript, upload it to the PhoneGap Build service and get back app-store...

When deploying, Capistrano puts a REVISION file into your application's release directory. It contains the hash of the commit...

You can say this in helpers like link_to and content_tag: = link_to 'Label', root_url, :data => { :foo => 'bar...

The step definition below lets you write: When I click on "Foo" This is useful in Selenium features where the...

stackoverflow.com

Rack has a limit for how many form parameters it will parse. This limit is 65536 by default.

In a nutshell: Capybara's find will not work properly on nodes from a list. Don't find on elements...

CSS is a lot easier to write and read than clumsy XPath expressions. So when you need to use XPath...

Note that this seems to affect only recent Rails 2 versions. You will not encounter this until you are writing...

ask.libreoffice.org

Upgade to LibreOffice 3.5.3+ or disable hardware accelleration in Tools → Options → LibreOffice → View → Graphic output.

makandra dev

To have your text input field pre-filled in with some text that disappears as soon as the user selects...

jsfiddle.net

Consider this HTML: Click me! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe! Hello Universe!

In large forms (30+ controls) new Capybara version become [extremely slow] when filling out fields. It takes several seconds per...

makandracards.com

The amount helper now retrieves the decimal separator from your I18n dictionary (number.format.separator) instead of hardcoding it to a comma...

When using the asset pipeline your assets (images, javascripts, stylesheets, fonts) live in folders inside app: app/assets/fonts app/assets/images...

makandra dev
github.com

Geoffrey Grosenbach has created Gruff for easily plotting graphs. It is written in pure Ruby and integrates with Rails applications...

ruby-toolbox.com

If you need a gem for a certain purpose, be sure to check this site. The rankings are determined by...

makandra dev

Consider the following HTML & CSS: ^ img { background-color: red; } div { border: 1px solid black; } This will leave a margin of...

Localizing a non-trivial application can be a huge undertaking. This card will give you an overview over the many...

stackoverflow.com

%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...