Skip to content

Instantly share code, notes, and snippets.

@t-oginogin
Last active August 29, 2015 14:06
Show Gist options
  • Save t-oginogin/0f30e7c3e94a40c3fefe to your computer and use it in GitHub Desktop.
Save t-oginogin/0f30e7c3e94a40c3fefe to your computer and use it in GitHub Desktop.
Rails date_selectをBootstrapを使っていい感じにする ref: http://qiita.com/t_oginogin/items/519fb52e1708e26a8b73
@import "bootstrap-sprockets";
@import "bootstrap";
.bootstrap-date {
display: inline-block;
width: auto;
}
<div class="row">
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
stylesheet display設定を追加:
</div>
<div class="col-xs-3 col-sm-3 col-md-3 col-lg-3">
<%= date_select 'date-with-stylesheet-inline', '', {use_month_numbers: true}, {class: "form-control bootstrap-date"} %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment