Sign in through GitHub

RailsCasts Pro episodes are now free!

Learn more or hide this

Evgeniy.S.Semenchuk's Profile

GitHub User: evgenii

Comments by Evgeniy.S.Semenchuk


Goog question from Brandon Williams. Can Jbuilder templates be used inside of layouts?

Maximum that I have been to achieve is this:

# v1.json.jbuilder - layout
json.request do |json|
  json.url ""
  json.status 200
end JSON.parse(yield)

# show.json.jbuilder - action view
json.test 'test form show'