I actually already tried that Kevin ... in user.rb I have ...

has_many :contacts, :class_name => "Contact", :foreign_key =>
"owner_id", :dependent => :destroy

And in contact.rb I have ...

belongs_to :owner, :class_name => "User", :creator => true
never_show :owner

And yet the creator/owner link shows up everywhere it normally
does ... here is the HTML I get on the page ..

<a class="creator-link owner-link" href="/users/2-my-user"><span
class="view user-name ">My User</span></a>

On Oct 24, 2:52 pm, kevinpfromnm <[email protected]> wrote:
> Add:
>
> never_show :owner
>
> to your model, assuming owner is the association name to not show.  This
> will remove it from all views and forms so make sure it's being set properly
> by a :creator => true or before_create callback.

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