Dynamic select box

Hi everyone,

I have a problem. I want to display a different select box wether the current user is an admin or an user.

So I thought I could do this in my view where my form is displayed :

<p class="form-input">    <%= f.label(:role_id, 'Role:') %> <%

<%=    ^   if you want output, you generally need <%= (if you get to the point
that you know to generate output from <% %>, then you will KNOW when
to use them)

-Rob

Rob Biedenharn wrote: