On Wed, Sep 11, 2013 at 7:00 PM, jmcguckin <
mcgu...@gmail.com> wrote:
> In a controller action for 'show' is the following:
>
> render :layout => 'edit'
>
> Ok, there a layout for edit, basically it is the standard javascript
> includes, anti csfr stuff and 'yield'.
>
> Hmm, what's it yielding to? Which template is it yielding to? There are both
> 'edit.html.erb' and 'show.html.erb' templates.
It would be yielding to whatever template the controller action would
be using. In this case, that would be show.html.erb, since you're in
the show action.
-Dave
--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at
http://www.Codosaur.us/.