Well, index_for_campaign is the view I needed to override. I never saw
this mentioned anywhere.

I only "guessed" this by looking at the URL that was hit:

InventoriesController#index_for_campaign

My other question still stands: where shall I send patches?

Thanks!
François

On 6 déc, 10:49, François Beausoleil <[email protected]>
wrote:
> Ah, I was missing auto_actions :all in InventoriesController. That
> explains why show/edit/update/destroy weren't present.
>
> Still, not being able to overwrite the collection on index is a
> bummer...
>
> Bye!
> François
>
> On 6 déc, 10:46, François Beausoleil <[email protected]>
> wrote:
>
>
>
> > Hi,
>
> > I've 
> > foundhttp://groups.google.com/group/hobousers/browse_thread/thread/42a10a3...
>
> > All great, but I'm still fighting. This is the entirety of app/views/
> > inventories/index.dryml
>
> > <index-page>
>
> >   <collection: replace>
> >     <table-plus fields="this, quantity, updated_at"/>
> >   </collection:>
>
> > </index-page>
>
> > But on render, I still get cards. The Hobo Agility Tutorial has 3-4
> > paragraphs on nested routes, but nothing on how to override the view.
> > The Rapid Rails with Hobo book has no mention of "nested routes",
> > either in the index or in the full text.
>
> > Notwithstanding that, the show link on the card isn't rendered - it
> > only renders the name, not a link to show/edit the inventory model.
> > For reference, here's the InventoriesController as well:
>
> > class InventoriesController < ApplicationController
>
> >   hobo_model_controller
>
> >   auto_actions_for :campaign, [:index, :new, :create]
>
> >   def create
> >     hobo_create do
> >       redirect_to inventories_for_campaign(@campaign) if valid?
> >     end
> >   end
>
> > end
>
> > Where am I going wrong? Where shall I send patches to remedy the
> > missing documentation?
>
> > Thanks,
> > François

-- 
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.

Reply via email to