Changed code language to rails for the view.