irb(main):001:0> puts brain.inspect
  • Delayed Jobs in Heroku
    There are instances where your application needs to process jobs on the background in order to give a quick response to the user. An example of which is when you are sending emails or accessing 3rd party APIs. Read more

  • formvalidation-rails-gem
    In any modern application, one of the requirement is to have a form that has seamless validation, formvalidation.io is for you. Read more

  • google_places gem
    Does your startup involve searching for and retrieving rich information about local businesses and points of interest? Read more

  • Geocoder Gem
    If you are building a property rental application or a transportation startup and using maps heavily, then the Geocoder gem would be your bestfriend. Read more

  • Authentication with Devise and AngularJS
    Goal: Integrate Devise with AngularJS. Demo App on Github: https://github.com/iamademar/railsangulardevise_demo Read more

  • Setup MongoDB with Rails
    This a tutorial to help you setup MongoDB as the database for Rails. Let's start with a bit of info on MongoDB. Read more

  • Setup AngularJS with Rails
    There tons of tutorials out there that teaches you how to integrate angular.js with rails. This post will teach how integrate angular.js with rails using Bower. Step 1 Assuming that you have already installed rails, create a new rails app: rails new app_name Read more

  • Syncing PostgreSQL database from heroku
    I was working on Rails project that aims to greatly improve the productivity lawyers in handling their email. In the alpha phase of the project, it had a bug that I could not replicate locally. My only option was to copy data from the testing server Read more

  • Refactoring
    NWhat is refactoring? Refactoring has two definition depending on context: 1) Refactoring (noun): A change made to the internal structure of software to make it easier to understand and cheaper to modify with- out changing its observable behavior. Read more

  • Dynamic radio buttons with AngularJS
    I needed to create a form that requires a dynamic list of radio buttons. To implement this I used ng-repeat. Read more

  • Redirecting with AngularJS
    I needed a way to redirect to another page inside an AngularJS controller, specifically after successfully submitting a form to the server. There are lots of ways to do this, one way is to call window.location Read more

  • Freelance Blend: Successful Freelancing and Entrepreneurship
    I needed a way to redirect to another page inside an AngularJS controller, specifically after successfully submitting a form to the server. There are lots of ways to do this, one way is to call window.location Read more

  • Rails Decorators for Views
    What are Decorators? Decorators help extract view-specific business logic from models into decorator class. Here is an example code that puts view-specific business logic in the model: app/models/user.rb class User include Mongoid::Document def is_top_twenty? User.desc(:points).limit(20).include? Read more

  • Thinner Models in Rails
    The Rails convention is to put your business logic should be on the models. Here’s a typical example: app/controllers/users_controller.rb class UsersController < ApplicationController def suspend @user = User.where(user_id: params[:id]).first @user.suspend! redirect_to @users, notice: 'Successfully suspended user!' end end Read more

  • ETags in Rails 4
    What are ETags? ETag or entity tag is part of HTTP that is assigned by a web server to a specific version of a resource found at URL. In other words, ETAG is a key we use to determine whether a page has changed. Read more