I was also looking for a way to do an auto_actions_for :show. I ended up with this solution: (rendered_form is my auto_actions_for :show) show_action :rendered_form and then add rendered_form.dryml to your model views folder and call <rendered-form/> which I defined in the taglib. Not perfect, but it gets the job done. For what its worth, I thought auto_actions_for could also handle :index.
On Thu, Jul 8, 2010 at 8:50 AM, Spiralis <[email protected]> wrote: > Hi all, > > I am working on a project where I have a customer and a project model/ > controller setup hobo-style. > > The relations are so that a company has many projects, and a project > belongs to a company. > > This means that I get the routes /companies and /projects 'for free'. > > However, I want to access projects via the url like this: > > * List of projects for a given company: > /companies/1-ACME/projects > * Project details for a given company: > /companies/1-ACME/projects/1-Mickey Mouse - SteamBoat Willie 2 > > Hobo already have auto_actions_for, but it seems to be limited to :new > and :create. > > Does anybody have a suggestion on what would be the best way to > approach this? > > Regards, > Ronny > > -- > 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]<hobousers%[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.
