I'm looking at someone else's code and I'm not sure what this does.

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.

Thanks,

Joe

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/544cfda1-92bf-4625-8c7a-4968a319bd32%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to