Arel and Nested Queries 02 Jun 2015 Ruby on Rails Arel SQL Arel and Nested Queries Arel is good at facilitating conditional clauses. This post mainly focuses on how to write nested queries with Arel. Let's look at a
Exclude Some Stylesheets in Rails 4 18 Nov 2014 Ruby on Rails CSS Exclude Some Stylesheets in Rails 4 Rails 4 uses asset pipeline to concatenate and minify or compress JavaScript and CSS assets. It creates a default app/assets/stylesheets/application.css file
Button Behavior Inside a Form 10 Sep 2014 Ruby on Rails HTML Button Behavior Inside a Form A form is usually associated with a submit button. In Rails, you typically have a form specified as following: (if use form_for helper) <
Set Up Cron Jobs in Rails 22 Aug 2014 Ruby on Rails Set Up Cron Jobs in Rails Recently I came to a situation where I need to take an action based on time. For example, a web application helps organizing an event
Write a Helper Extension 01 Aug 2014 Ruby on Rails Write a Helper Extension In Rails development, it comes often that you want to add/remove certain function that Rails pre-defined. For example, if you use Bootstrap 3, to