Thanks Bryan, I've actually figured that out. I'm just not sure which controller/ view CE is using to populate the front page. It is pulling the most recent from all categories of posts, and not sure where that code is coming from.
Thanks for replying. garrett On Aug 28, 1:00 pm, Bryan Kearney <[EMAIL PROTECTED]> wrote: > This is a rails thing. If you think of model-view-controller, there are > parts of the view which are unique to the contoller (i.e. show users > probably displays a username, where show spaceships talks about engines) > and some which are unique across all the views (header, footer, etc). > > So.. rails lets you specify a layout to contain the general parts > (header, footer, etc), and that layout can have "callbacks" into general > potions. > > You can specify a layout to use when rendering a view controller. The > layout is called, and provides "callbacks" into the controllers view. > Look at vendor/plugins/community_engine/app/controllers/post.controller. > The show method renders a single post. This corresponds to the view > which is in > vendor/plugins/community_engine/app/views/posts/show.html.haml. The > latter is made the contents of hte @contents_for_layout. > > -- bk > > [EMAIL PROTECTED] wrote: > > Hi guys, > > > This plugin is amazing. Thanks so much for putting this out there. > > > I'm very new to Rails, actually a designer trying to figure the code > > world out with a programmer friend. But I've been working on rails for > > a few months now. > > > I can't seem to find where the @content_for_layout comes from on the > > front page > > I know this is elementary but any help would be appreciated. > > > thx > > garrett --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/communityengine?hl=en -~----------~----~----~----~------~----~------~--~---
