Ruby, Ruby on Rails, Ember, Elm, Phoenix, Elixir, React, Vue
-
Ember.js Select for association with selected option
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...
-
Ember.js, Rails and Ransack –– Advanced Search
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...
-
Our first Ember.js app has shipped
Inspiring talks at RailsConf earlier this year prompted me to start looking beyond Rails to the single-page javascript application style that is all the rage these days.
I’m thrilled to have just shipped my first Ember.js app.
Mindlist a facile...
-
Rapscallion - Ruby on Rails Client Side Validations Gem
Add this line to application.js:
//= require rapscallion/validations
Activate with Javascript:
$('.validate_me').rapscallion();
Options:
Change class of error message div
errormessagecontainerclass: “errormessages”Set a class on field with error
-
Sweet SASS Maps – SASS 3.3 introduces hashes
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:
/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize...
-
Our Favourite Mac Tools
LiveReload
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...
-
Testing Prawn PDF generation using Rspec
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:
-
Easier Non ActiveRecord models in Rails 4
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
date: 2014-05-07
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...
- Page 5 of 11
- Next page
- Previous page