Hi Don,
I just tried and "index_for_agenda" should work. What does "rake routes"
day?
In my example, adding "auto_actions_for :caja, [:index, :new, :create]"
to Movimientos controller, I get these routes:
new_caja_movimiento GET
/cajas/:caja_id/movimientos/new(.:format)
movimientos#new_for_caja
caja_movimientos GET
/cajas/:caja_id/movimientos(.:format)
movimientos#index_for_caja
POST
/cajas/:caja_id/movimientos(.:format)
movimientos#create_for_caja
And then I can redefine "index_for_agenda" correctly.
Regards,
Ignacio
El 22/09/14 a las #4, Donald Ziesig escribió:
> Hi All!
>
> This may be a dumb question, but I would like to override the index tag
> produced by:
>
> hobo_model_controller
>
> auto_actions :all, :except => :index
>
> auto_actions_for :agenda, [ :index, :new, :create ]
>
>
> but I don't know what to call it (nor how to figure out what to call
> it). I've tried:
>
> def index_for_agenda ...
>
> def index_for_agenda_page...
>
> both of which are silently ignored (as would be expected if they are
> named wrong).
>
> Thanks,
>
> Don Ziesig
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.