If you mean the foreign key such as license_id you could just use <view:license_id /> and make sure your view permissions only grant view rights for administrators. Not sure though if that would affect using the association as normal. If so, you could make a method in the model that returns the value if current user has rights and just use that instead.
Or you can do what I do and just hover over a link to the item and get the id from the link path. On Dec 3, 6:34 pm, Hobo_Fan <[EMAIL PROTECTED]> wrote: > Hi, > > Is there a way to allow only the Admin to view the key field, such as > License Key? How would like code it in the show page or one of the > controller? > > Thanks, > Sean --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
