Сотрудник: <%= select_tag(:filter_empl, options_for_select(if (@boss || @topologist) then @employees.collect{ |c| [c.login, c.id]}.insert(0, ['--- Все ---', ""]) else (@current_user.to_a.collect{ |c| [c.login, c.id]}) end, params[:filter_empl].to_i)) %> <% if @boss%> <%= check_box_tag :show, "true", (true if params[:show] == "checked" || params[:show] == "true"), :onChange => remote_function(:url => {:controller => 'private', :action => 'employees'}, :with => "'show=' + $(this).prop('checked')", :method => :get) %>Все сотрудники <% end %>