2 auto_actions_for on different models

11 views
Skip to first unread message

Drammy

unread,
Dec 20, 2011, 2:56:32 PM12/20/11
to Hobo Users
Hi all,

I have a model that I'd like to allow creation of from 2 other models
so I tried by simply having 2 auto_actions_for in my model. This
doesn't work though - only the first is rendered.

Is there any way i can make this work?


class RecognitionInstancesController < ApplicationController

hobo_model_controller

auto_actions :all, :except => :index

auto_actions_for :recognition, [:create]
auto_actions_for :people, [:create]

end


Thanks,
Drammy

Drammy

unread,
Dec 27, 2011, 7:35:53 AM12/27/11
to Hobo Users
Perhaps it isn't possible?

Nothing strikes me as why not though - perhaps for version 1.4?

Bob Sleys

unread,
Dec 27, 2011, 9:16:46 AM12/27/11
to hobo...@googlegroups.com
I have to admit I've not tried it but you should be able to copy the code in the auto generated tags and create your own in the second models page with some minor tweaking.

Bob
Reply all
Reply to author
Forward
0 new messages