These two addons will change your life: Search as list : This will always open search results in the list views...

dev.mysql.com

Directly from the MySql docs: There are three likely causes for this error message. Usually it indicates network connectivity trouble...

In Cucumber, scenario outlines help avoiding tests that are basically the same, except for a few variables (such as different...

blog.arkency.com

Amazing guide how to divide a ball of Javascript spaghetti distinct separate layers (model, view, controller, backend adapter).

While RSpec 1 and 2 decided that specs inside spec/model are model specs, and those inside spec/features are feature specs...

Code snippet tested with Rails 2.3 def index # ... if request.xhr? html = render_to_string(:partial => "list", :layout => false) respond_to...

makandra dev
linux.die.net

When connecting to multiple (i.e. > 4) servers to dive into logfiles or do security updates, terminator is what you want...

makandra dev
plugins.jquery.com

SudoSlider is a simple yet powerful content slider that makes no (or very few) assumptions about your markup and is...

When you cannot make Selenium trigger events you rely on (e.g. a "change" event when filling in a form field...

github.com

Using this gem, whenever a Capybara test in Cucumber, Rspec or Minitest fails, the HTML for the failed page and...

SimpleForm is a great approach to simplifying your forms, and it comes with lots of well-defined input types. However...

When your Rails controller action responds with only a simple text, render text: 'Hello' may not be what you want...

Since version 34, Chromium/Chrome ignores the autocomplete="off" attribute on forms or input fields. Recent versions of other browser do...

When using @media CSS queries, Internet Explorer 8 and below will fail to respect them. Though there are several options...

Edge Rider gives your relations a method #origin_class that returns the class the relation is based on.

makandra dev
menuetos.net

MenuetOS is an Operating System in development for the PC written entirely in 32/64 bit assembly language. Menuet64 is released...

Programatically invoke Rails generators : Require the generator, instantiate it and invoke it (because generators are Thor::Groups, you need...

If you regularly get ActionView::MissingTemplate exceptions, maybe some bot visits your site requesting silly formats like: http://www.rails-app.com/makandra.html-username-2000...

If you are using Angular and want something like Rails' simple_format which HTML-formats a plain-text input into...

If you come across an (older) application that is using Prototype instead of jQuery, you may often see events bound...

makandra dev
github.com

We now have a gem that supports our form model approach.

stackoverflow.com

Check out the jsFiddle Demo. CSS .absoluteCenterWrapper { position: relative; /* Declare this element as the anchor point for centering */ } /* Positioning */ .absoluteCenter...

gist.github.com

How to remove/disable the automatic XSS protection helper html escaping for Rails 3. This is probably a horrible idea.

twitter.com

Alternatives to drop-down menus to consider in form design.