I have the following in my model:

belongs_to :tester, :class_name => "User", :conditions =>
{:administrator => true}

and this correctly limits the drop down list of 'tester' in the edit
page to just administrators however I wanted in place editing of this
tester within the show page, so in my show.dryml I have:

<% if current_user.administrator? -%>
<field-list: fields="status, tester" tag="editor" />
<% else %>
<field-list: fields="status"/>
<% end -%>

and in this scenario this lists all Users, ignoring the condition of
'tester', do I also have to apply a condition to this editor tag, if
so how do I do this I can't find any examples?

Thanks

Mark

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