Shiva Kumar 's Blog

Start small,Think Big

May, 2013

Journey gem error while setting up rails source

So i recently i forked and cloned the rails repository and was following these steps So when i was is doing bundle install –without db i was getting this error Could not find gem ‘journey (~> 1.0.1) ruby’, which is required by gem ‘rails (>= 0) ruby’, in any of the sources if you […]

Rails 4 new features

In this post will be explaining some new stuffs ,changes and deprecation in rails 4 Lets start with concerns.In Rails 3, as you can see comments and tags are nested routes for coupons and posts which has a quite of lot duplication in code resources :coupons do resources :comments resources :tags end resources :posts do […]

, ,

Struct in Ruby

Struct is a simple way to create a class with number of attributes without explicitly creating a class Syntax to create a class using struct 1.9.2p290 :004 >“User”,:name,:email) Where User is the class name.Name and email are the attributes of the class where passing it on the fly. So when you want to create […]

, , , , ,