2019 Notes
Easy Sortable Lists with 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
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
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
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
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
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
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
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...