% settings = Setting.plugin_extended_profile %> <% projects = Project.all_public.active(:order => 'name') %> <% project_id = params[:user] ? params[:user][:project_id].to_i : nil %>
<%= select_tag('user[project_id]', (settings[:require_project] ? '' : content_tag(:option)) + options_from_collection_for_select(projects, :id, :name, project_id)) %>