json jbuilder working for index and show