Rails has always included a scaffold script that generates a default controller implementation for you. Unfortunately that generated controller is...

So you client has asked you to implement a row of buttons to like the URL on Facebook, Twitter and...

The default configuration of Rails disables CSRF protection in tests. If you accidentally forget to send the CSRF token for...

Copy the attached file to features/support. This gets you a convenience method: Capybara.javascript_test? Is true for Selenium, capybara-webkit...

Working with lists in Javascript is painful because the native Array class is so poorly designed. One way to reduce...

makandra dev
docs.google.com

Presentation about awesome changes we can look forward to.

angular-tips.com

Angular comes with different types of services. Each one with its own use cases. All of these services are singletons...

github.com

The asset pipeline (which is actually backed by sprockets) has a nice feature where templates ending in .jst are compiled...

gaslight.co

We’ve been working on one of our first Angular projects with a Rails backend. It’s been a great...

When two classes implement the same behavior (methods, callbacks, etc.), you should extract that behavior into a trait or module...

github.com

Extends the Chrome WebInspector so you can debug AngularJS applications and hunt down performance issues. It's really, really good...

For websites that don't do JavaScript rendering on the client, it's best practice to put script tags at...

Ruby 1.9 brings a shorter way to define lambdas using the -> operator: twice = -> (x) { 2 * x } twice.call(5) # => 10

Use the click method on the DOM element: let link = document.querySelector('a') link.click()

Set the hash to a dummy hash which doesn't hit any id at your page, for example: window.location.hash = "_";

blog.bigbinary.com

Remember why preloading associations "randomly" uses joined tables or multiple queries? If you don't like the cleverness of this...

This card shows how to upgrade a Rails 2 application from Rails 2.3.8 through every single patch level up to...

linuxsa.org.au

Here is a good explanation for zombie processes. Quote: If you have zombie processes it means those zombies have not...

Coffeescript allows you to create classes whose methods are automatically bound to the correct this. You can do this by...

Our development process makes us deploy very often. As the number of releases grows, junk clogs up the hard drive...

If you want a widget for awesome that runs a command regularly (every X seconds) and puts the output into...

Getting a regular expression from a string in JavaScript is quite simple: new RegExp('Hello Universe'); # => /Hello Universe/

This trick might be useful to implement more complicated directives in AngularJS. I needed it to do drag'n'drop...