2019 Notes

Easy Sortable Lists with Rails

27th November 2019
2 minutes.
Rails
What’s more fun than dragging and dropping to order stuff? Nothing that this blog will cover anyway. Draggable lists is easy-peasy with Rails 6, some gems, jquery-ui and webpacker. Here...

Rich Text with Trix and Action Text on Rails

11th November 2019
2 minutes.
rails cms
Most web applications I work on require a content editing feature that includes formatting, adding images etc. Now Rails comes with that bundled as ActionText. It’s awesome. Rails version 6...

Date And Time Formats With Rails

1st November 2019
1 minute.
Ruby, Rails
Rails comes with some default date and time formats. There are good docs for them here: Rails Date Class Rails DateTime Class Unfortunately, I don’t like the default formats! Or...

Using RBenv for Ruby Version Management Cheatsheet

20th October 2019
1 minute.
Ruby
Ruby versions on your development machine need to be carefully managed so you can work on different projects with the right ruby version. With Rbenv, that’s easy. Installation brew install...

Maps on Rails

4th October 2019
2 minutes.
Ruby Rails GIS
In a recent project we needed a map. Not just any map though. We needed to be able to add topo and satellite layers, add feature overlays from json feeds...

Ruby On Rails Geographical Tools

2nd August 2019
3 minutes.
Ruby, Rails, GIS
There is nothing quite like a geographicly aware web application. The data, the maps. It’s all very nice. With Ruby, some gems and Rails, it is all very easy too....

Testing With Rails ActiveStorage

1st August 2019
1 minute.
Rails
In an app I have been working on recently, I have a report model, with an attachment image, “overview”. This is an image uploaded to the app via the ActiveStorage...

Setting up Web Hosting with Ubuntu and Apache

7th June 2019
1 minute.
Hosting
Setting up hosting on a linux VPS with Ubuntu and apache is not too hard, as long as you stay on the path. Grab a box at DO and choose...