added card model, view and controller

use resources routes http://guides.rubyonrails.org/routing.html