Thanks Bryan, It works just like it should now.
Shouldn't this show up in the docs somewhere (I searched for hours) since it is not quite obvious ;-) ?
Don Z. On 11/23/2011 1:01 PM, Bryan Larsen wrote:
edit uses 'hobo_show'. cheers, Bryan On Wed, Nov 23, 2011 at 12:01 PM, Donald R. Ziesig<[email protected]> wrote:Hi All! I am trying to populate a header on all pages by using application_controller methods as in: def show populate_header end def new populate_header end def create populate_header end and the following methods in the various model controllers: def create super hobo_create end def new super hobo_new end def show super hobo_show end The above work properly. When I try to do the same for the edit page, I get various errors application_controller: def edit populate_header end model controller: def edit super hobo_edit ### doesn't exist end or def edit super ### renders empty page (goes to application_controller's edit) end What am I missing? I need to intercept the edit invocation before the page is rendered, just like the show, create, new and index pages. Is that possible? Something must be populating @this from the record being edited, where is that done? Thanks, Don Z. -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
-- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
