Skip to content

Instantly share code, notes, and snippets.

@chewmanfoo
Created February 19, 2011 05:02
Show Gist options
  • Select an option

  • Save chewmanfoo/834837 to your computer and use it in GitHub Desktop.

Select an option

Save chewmanfoo/834837 to your computer and use it in GitHub Desktop.
## the css
.side_by_side {
}
.sbs_rightmost {
float: right;
}
.sbs_left {
float: left;
}
## the html
<div class="side_by_side">
<div class="sbs_rightmost">
<p>
<%= f.label :second_engineer_id %><br />
<%= collection_select(:scheduled_change, :second_engineer_id, @engineers, :id, :name, {:prompt => true}) %>
</p>
</div>
<div class="sbs_left">
<p>
<%= f.label :engineer_id %><br />
<%= collection_select(:scheduled_change, :engineer_id, @engineers, :id, :name, {:prompt => true}) %>
</p>
</div>
</div>
<p>
<%= f.label :software_release_id %><br />
<%= collection_select(:scheduled_change, :software_release_id, @software_releases, :id, :name, {:prompt => true}) %>
</p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment