For many years, Ruby on Rails has been the go-to framework for startups, micropreneurs, SMBs, and really for anyone who needed to build and launch a tool quickly. With its opinionated, convention over configuration approach, and Heroku’s brilliant git push to deploy feature, Ruby on Rails made every other solution look barbaric by comparison. But … Continue reading Embracing Change: Rails 5.1 Adopts Yarn, Webpack, and the JS Ecosystem
What is the use of Gemfile in Rails?
During your development in Rails, there will be times where you will want to provide some functionality which is required by you, but either you don't know how to do or you don't want to implement it on your own since a lot of work has been put into its development by talented developers. These … Continue reading What is the use of Gemfile in Rails?
Why Rails 4 Live Streaming is a big deal
TLDR: Rails Live Streaming allows Rails to compete with Node.js in the streaming arena. Streaming requires application servers to support either multi-threaded or evented I/O. Most Ruby application servers are not up for the job. Phusion Passenger Enterprise 4.0 (a Ruby app server) is to become hybrid multi-processed, multi-threaded and evented. This allows seamless support … Continue reading Why Rails 4 Live Streaming is a big deal
Cron Jobs and Rails
Cron If you’re reading this article, it’s probably because you’ve heard of cron jobs, cron tasks, or crontab. Cron is a piece of software written for *nix-type operating systems to help with the scheduling of recurring tasks. You may want to use cron to schedule certain recurring actions in your Rails application, such as checking … Continue reading Cron Jobs and Rails
How to access Ruby web server such as WEBrick or Puma (Rails framework) from other computers on LAN
Alright, so you are familiar with rails s -b IP_ADDRESS -p PORT To run the server on the localhost is simple (The default binding IP is 0.0.0.0) rails s To make it accessible from another computer on the LAN, you will need to specify your IP address and the port (normally port 80). If your … Continue reading How to access Ruby web server such as WEBrick or Puma (Rails framework) from other computers on LAN
Authentication with Warden, without Devise
For most of us, using warden means using devise. Devise served me well but it's big and there's a lot of convention that you need to abide by. Getting up & running with devise is fairly simple. Warden needs a little bit more to get started and I'm going to show you how to implement … Continue reading Authentication with Warden, without Devise