I was attempting to rebuild a Rails form in Ember. The form requires a select for an association, in this case a project belongs to client, so the select needs to present an options list of clients, with a selected option based on the project model...
I’ve been attempting to learn Ember.js recently, and couldn’t find any existing solutions for advanced search. My aim, to be more specific was to utilize in my Ember application the Ransack search capabilities available in my Rails API.
I made various...
I’m thrilled to have just shipped my first Ember.js app.
Mindlist a facile...
Add this line to application.js:
//= require rapscallion/validations
Change class of error message div
Set a class on field with error
SASS 3.3, released March 2014, came with an amazing new feature – maps aka hashes aka key/value lists. These worked beautifully to clean up a CSS file that was repeating the same code ad infinitum to provide a different background image for all of...
Is the server running locally and accepting connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
I’ve received this error on a few occasions while attempting to run Rails server or run spec suite on an old seldom touched Rails application:
This has its ups and downs. There are times when you make a back end change and don’t want a reload, but especially for fast loading sites, it is a boon to have the page reloaded in the background before you switch into your browser preview...
I was recently pleased to discover how easy it was to test a PDF generation service built on top of Prawn in a Rails app.
First I added the pdf-inspector gem to Gemfile:
gem 'pdf-inspector', require: "pdf/inspector", group: :test
Next, a spec:
Rails 4 introduces a nice new feature for dealing with non-ActiveRecord models. These kinds of models can be useful in a situation where you have a class that you want to function like a typical ActiveRecord model, but you have no need to persist it...
title: Cantook gem
I’ve done a number of projects for book publishers in recent years, and on a few occasions have needed to take a look at integration with the Cantook digital distribution platform.
In my experience, Cantook...