Thanks, Bryan... On Wed, Nov 23, 2011 at 2:43 PM, Bryan Larsen <[email protected]> wrote:
> In fact, the manual says this: "There is a similar hobo_* method for > each of the basic actions: hobo_new, hobo_index, etc." > > So it was lying to you. It seems to me that in this case it's better > to change the code than the manual, so I did this: > > > https://github.com/tablatom/hobo/commit/fb95a84b4bae7a5ad923955ed92fc6272d63cc33 > > It's off in a development branch, so it won't help you yet, but it > should help the next guy to encounter the problem. > > Bryan > > On Wed, Nov 23, 2011 at 1:43 PM, Donald R. Ziesig <[email protected]> > wrote: > > 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. > > > > -- > 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. > > -- -Owen Owen Dall, Chief Systems Architect Barquin International www.barquin.com Cell: 410-991-0811 -- 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.
