Add the :accessible => true to the association

On Jan 21, 3:01 pm, Me <[email protected]> wrote:
> Greetings.  I built an app sometime back with Hobo 0.8.3 and rails
> 2.1.1 on Ubuntu Hardy.  That machine is now defunct.  I'm trying to re-
> deploy it with  0.9.103 on an Ubuntu Jaunty machine with rails 2.3.5.
> I've overcome a few gotchas, but this one has me stumped:
>
> model_router.rb:176:in `owner_routes': Hob routing error -- can't find
> reverse association for Archive#workspace (e.g. the :has_many that
> corresponds to a :belongs_to) (HoboError)
>
> From searching the archives, the solution each time was to correct
> errors in the association itself.  In my case, I can't find what I did
> wrong.  At the same time, it used to work.  This is the association
> that used to be valid:
>
> archive.rb
> belongs_to :workspace
>
> workspace.rb
> has_many   :archives,                       :foreign_key  =>
> "workspace_id"
>
> In archive_controller.rb :
>   auto_actions :all, :except => :index
>   auto_actions_for :workspace,  [:new]
>
> I tried adding the FK to the archive.rb belongs_to half, but it didn't
> help. I also tried downgrading to rails 2.2.2, but got the same error.
> Does anyone know what I did wrong?
>
> Thanks!

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