Rob Biedenharn wrote: > On Feb 17, 2009, at 5:52 PM, Guillaume Loader wrote: > >> <% > <%= > ^ > 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
I did this : <% if(current_user.admin?) then %> <%= collection_select(:user, :role_id, Role.find(:all, :order => "name desc"), :id, :name) %> <% end %> And now it displays something. Thx! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

