I have been setting up many servers for several clients using the combination of Nginx + Passenger or Nginx + Unicorn. And one of the most common issues I see when installing
ElasticBeanstalk could be an easy tool for you to deploy your Ruby on Rails application. But if you want to customize your application further, it is not easy at all.
One of common mistakes I see with new (and some experienced) Ruby on Rails programmers is that they do not commit Gemfile.lock and schema.rb very often to source
Update If you are having this issue with CloudFront and you have access to Nginx or Apache server, you should read this post: Correct configuration to fix CORS issue with
One of the most popular programs to convert HTML to PDF is wkhtmltopdf. And in this post, I am going to show you how to use wicked_pdf gem to
In Rails, you can define a model as polymorphic like the following: class Post has_many :comments, as: :commentable end class NewsItem has_many :comments, as: :commentable end class Comment
In this post, I am going to show you how to make use of serialize option in Ruby on Rails so that you can store information in your database more
When working with elements in jQuery, you might need to get width/height of certain invisible DOM elements. By default, jQuery would return 0 in this case because it can
In this post, I am going to show you how to create a long polling server with Puma, ActionController::Live in Rails 4 and Server Side Events in modern browsers.
Today, when trying to install wkhtmltopdf package to my Mac via brew, I got the following error: Error: No available formula for wkhtmltopdf I have searched on the Internet and
AWS provides ElasticBeanstalk (EB) as a quick and easy way to deploy your RoR application through a tool called EB Command Line Tool (http://aws.amazon.com/code/6752709412171743). When
Note: I only refer to Github in this post but this method can be applied to any Git servers (such as Bitbucket, Heroku, etc) If you work with Github for