compoundjs / guides

Everything you have to know about compound
http://compoundjs.github.com/guides
134 stars 29 forks source link

Made some minor changes to text. #10

Closed dlochrie closed 11 years ago

dlochrie commented 11 years ago

Wondering if the following addition I added is true: "By convention, the layout called will share the same name as the controller."

1602 commented 11 years ago

Thanks for reading and fixing this. This guides highly required some help. Don't hesistate to ask me any questions regarding to compoundjs internals and I will try to explain.

Re: layout selection. You are right, convention works as follows: when layout with the same name as controller exists, it used by default for that controller, otherwise application_controller used. In case when both controllername_layout and appliaction_layout are missing view rendered without layout.