Last time I briefly introduced the CMS engine for Ruby on Rails. I hope you have started building your site or planning your new project around this. It’s a powerful and fully customizable CMS. In my last article, I have talked about the features and how it could integrate with your existing application. Now I want to show you some more advanced customization that you may find it useful should you want more control.
If you have not read my last article, you should read it first.
There are several things that you can modify the CMS Admin and I…
I have done numerous web-based projects. Whenever it is customer facing, most of them requires some kind of customized content that needs to be changed from time to time. For simple pages, you may just be tempted to create a few using
pages_controller to handle the static pages. For more complicated and required more frequently changed contents, a proper CMS is always a necessity.
I have been in love with LocomotiveCMS for sometime, but recently I have been using ComfortableMexicanSofa for several projects. …
With the COVID-19, we are forced to stay home. In my part of the world, we are no different. I have been working from home for almost 3 months. Working from home was never a stranger to me with my line of work. And over the years, I have been doing several upgrades to my office at home to make me working more efficiently and productively. Very recently I have been implementing 4 new upgrades.
Before I purchased my chair that I am sitting on, I was having a Renberget chair from Ikea. It has been serving me really well…
When developing your apps, a lot of times you have to create different types of forms for your users to fill in. There could be a simple form where it only involves one model, or there could be many more that involves a chain of models. In this article, I am going to show you how to deal with different types of situations.
All my UI components are based on Fomantic-UI. You can refer to my previous article for reference if you are interested.
Starting from Rails…
In Part 1 of the series, we talked about the RESTful API and token authentication. We will continue to extend our Travel Planning application.
Before Rails 6 if we are to use WYSIWYG editor, there are a number of options like CKEditor or TinyMCE. Now in Rails 6, it comes with Trix Editor that is developed by the people creating Ruby on Rails and Basecamp.
To install it is very simple, you run
rails action_text:install. Once it’s done, you will see
When I am building my app, I need to add a calendar to show a list of events to remind me of the appointments and schedules. Recently I have been exploring with a JQuery plugin called CLNDR. Unlike many other calendar libraries, this library provides the data and you are responsible for the HTML template with an optional template engine of your choice. I chose the Mustache.js for my project. Here is what I do:
CLNDR is a jQuery plugin. It requires only 2 dependencies:
In this many parts of this series, we will be creating a Rails 6 application using many of its newly introduced features to show you how it works in a real life example.
For how to setup your environment on a Ubuntu, you can refer to my article “How to install Ruby On Rails and MySQL on Ubuntu 18.04”.
To install Rails 6.0, do
gem install rails -v 6.0.0after you do the
gem install bundler.
Now it’s time to create a new…
You may have heard of VPN or have used it before. If you do not know what it is, here is a quote from Wikipedia,
A virtual private network (VPN) extends a private network across a public network, and enables users to send and receive data across shared or public network as if their computing devices were directly connected to the private network.
Why do I need VPN? One reason is your company want you to continue your work while you are at home or anywhere in the world. Once you establish a VPN connection and your computer would be…
For web development projects, you must have experienced using different open sourced plugins and frontend frameworks. While Ruby on Rails is always my primary choice of web framework, you also need a frontend framework to cater your responsive HTML layout and standard components.
Every project you created, whether it’s a side project or your project at work, would eventually deploy to a server. I wrote this guide to show you how this process is done.
Your first step is to have your rails application set up. I do all my development on Mac OS. You will need to install Homebrew first. Open your Terminal
ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
Then install Rails 5.2.3 and create a…
Share my tips and codes on my work with Ruby on Rails — Hong Kong