Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Evgeniy.S.Semenchuk's Profile

GitHub User: evgenii

Comments by Evgeniy.S.Semenchuk

Avatar

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

Maximum that I have been to achieve is this:

ruby
# v1.json.jbuilder - layout
json.request do |json|
  json.url "https://api.storyful.com/stories.json"
  json.status 200
end
json.data JSON.parse(yield)

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