{"action":"created","issue":{"url":"https://api.github.com/repos/crismali/magic_lamp/issues/35","labels_url":"https://api.github.com/repos/crismali/magic_lamp/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/crismali/magic_lamp/issues/35/comments","events_url":"https://api.github.com/repos/crismali/magic_lamp/issues/35/events","html_url":"https://github.com/crismali/magic_lamp/issues/35","id":120120408,"number":35,"title":"Rendering Layouts?","user":{"login":"eliotc1986","id":6524512,"avatar_url":"https://avatars.githubusercontent.com/u/6524512?v=3","gravatar_id":"","url":"https://api.github.com/users/eliotc1986","html_url":"https://github.com/eliotc1986","followers_url":"https://api.github.com/users/eliotc1986/followers","following_url":"https://api.github.com/users/eliotc1986/following{/other_user}","gists_url":"https://api.github.com/users/eliotc1986/gists{/gist_id}","starred_url":"https://api.github.com/users/eliotc1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliotc1986/subscriptions","organizations_url":"https://api.github.com/users/eliotc1986/orgs","repos_url":"https://api.github.com/users/eliotc1986/repos","events_url":"https://api.github.com/users/eliotc1986/events{/privacy}","received_events_url":"https://api.github.com/users/eliotc1986/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/crismali/magic_lamp/labels/documentation","name":"documentation","color":"bfdadc"},{"url":"https://api.github.com/repos/crismali/magic_lamp/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-03T08:50:37Z","updated_at":"2015-12-04T05:34:33Z","closed_at":null,"body":"```ruby\r\nMagicLamp.register_fixture(name: \"homepage\", controller: HomeController) do\r\n  render template: \"home/index\"\r\nend\r\n```\r\n\r\nIs only rendering the `<% yield %>` section of the template, how do we get it to render the entire layout?"},"comment":{"url":"https://api.github.com/repos/crismali/magic_lamp/issues/comments/161881237","html_url":"https://github.com/crismali/magic_lamp/issues/35#issuecomment-161881237","issue_url":"https://api.github.com/repos/crismali/magic_lamp/issues/35","id":161881237,"user":{"login":"crismali","id":3209502,"avatar_url":"https://avatars.githubusercontent.com/u/3209502?v=3","gravatar_id":"","url":"https://api.github.com/users/crismali","html_url":"https://github.com/crismali","followers_url":"https://api.github.com/users/crismali/followers","following_url":"https://api.github.com/users/crismali/following{/other_user}","gists_url":"https://api.github.com/users/crismali/gists{/gist_id}","starred_url":"https://api.github.com/users/crismali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crismali/subscriptions","organizations_url":"https://api.github.com/users/crismali/orgs","repos_url":"https://api.github.com/users/crismali/repos","events_url":"https://api.github.com/users/crismali/events{/privacy}","received_events_url":"https://api.github.com/users/crismali/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T05:34:33Z","updated_at":"2015-12-04T05:34:33Z","body":"@eliotc1986 when you say it doesn't render the template, do you mean that it's only rendering the layout, rendering nothing, or that it raises an error?\r\n\r\nI was able to get a template rendering with the layout in the MagicLamp test suite by adjusting the fixture at the top of [`a_lamp_file_with_a_different_name_lamp.rb`](https://github.com/crismali/magic_lamp/blob/master/spec/dummy/spec/magical/a_lamp_file_with_a_different_name_lamp.rb#L1-L3) like so:\r\n\r\n```ruby\r\nMagicLamp.register_fixture(name: \"custom_name\") do\r\n  render template: \"orders/foo\", layout: \"application\"\r\nend\r\n```\r\n\r\nWithout doing some seriously weird metaprogramming there isn't a way to globally set the `layout` option to `true`.\r\n"}}