I tried more things. I had binary fields in the model, I removed
them, but it didn't help. I am able to display that model's form in
other places (like on the edit page), but I can't do the form on it's
child. I tried assigning to a local variable and using with=, that
didn't work, but it did work correctly with other tags, view & edit.
Finally just out of playing with it, this worked:
<form:project action="test"/>
Without the action= it doesn't render anything and no error message.
Is this intended behavior?
The projects_controller has nothing special, purely the default, so I
don't know why hobo can't figure out what which URL to use for the
form target.
This is relevant from the model:
belongs_to :owner, :class_name => "User", :creator => true
has_many :videos
has_one :project_data
never_show :owner, :boundary, :video_frame, :roadway
children :videos
def create_permitted?
owner_is?(acting_user)
end
def update_permitted?
acting_user.administrator? || (owner_is?(acting_user) && !
owner_changed?)
end
def destroy_permitted?
acting_user.administrator? || owner_is?(acting_user)
end
def view_permitted?(field)
owner_is?(acting_user)
end
Is the acting_user portion interfering with the form creation? The
user DOES have permission to this model instance.
--
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.