I created a rather simple app with projects has_many logs (dependant
destroy) / log belongs_to project.  Hobo displays this correctly -- it
shows a list of logs on the project show page.

So I thought I'd make it possible to create logs from the project
pages.  I read http://hobocentral.net/agility-tutorial/ (part 2).
This is my projects controller:

class ProjectsController < ApplicationController
  hobo_model_controller
  auto_actions :all
  auto_actions_for :log, :create
end

Now I can't even start the server without hitting an error:
http://www.friendpaste.com/9QnUcgz5
I have tried replacing :create with :new, [:new,:create], etc, and it
still gives me the error.

I tried experimenting with the other parameter, and found this error
comes up for `auto_actions_for :bogus`, but it does not for
`auto_actions_for :logs`.  So it seems the first parameter needs to be
pluralized.  However, this still has no effect.  I changed it to
`auto_actions_for :logs, :new` and it did not create a new log link,
nor did it create a route to match /projects/1-myproject/logs/new

I have tried this with the 8.3 gem and also with edge freshly checked
out of git today.  Both do exactly the same thing.

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