Skip to content

Instantly share code, notes, and snippets.

@domagude
Last active October 24, 2018 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domagude/a1127bfc73a6d31c6696c05301600248 to your computer and use it in GitHub Desktop.
Save domagude/a1127bfc73a6d31c6696c05301600248 to your computer and use it in GitHub Desktop.
<%= bootstrap_form_for(@post) do |f| %>
<%= f.text_field :title,
maxlength: 100,
placeholder: 'Title',
class: 'form-control',
required: true,
minlength: 5,
maxlength: 100 %>
<%= f.hidden_field :branch, :value => @branch %>
<%= f.text_area :content,
rows: 6,
required: true,
minlength: 20,
maxlength: 1000,
placeholder: 'Describe what you are looking for. E.g. specific interests, expertise level, etc.',
class: 'form-control' %>
<%= f.collection_select :category_id, @categories, :id, :name, class: 'form-control' %>
<%= f.submit "Create a post", class: 'form-control' %>
<% end %>
@Gabrui
Copy link

Gabrui commented Oct 24, 2018

maxlength: 100, is repeated twice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment