blogging engine based on angularjs and rails4