Skip to content

Instantly share code, notes, and snippets.

@marzdgzmn
Created June 21, 2019 16:08
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 marzdgzmn/1a7311bd5ab6009e53c348ffa78522e0 to your computer and use it in GitHub Desktop.
Save marzdgzmn/1a7311bd5ab6009e53c348ffa78522e0 to your computer and use it in GitHub Desktop.
<%= form_with(model: study, url: yield(:url), local: true) do |f| %>
...
<%= form_with model: Study.new, url: edit_admin_study_path(:title), local: true do |f| %>
<div class="row gtr-uniform gtr-50">
<div class="col-9 col-12-mobilep">
<%= f.text_field :title %>
<% unless flash.now[:no_record].blank? %>
<%= content_tag(:div, flash.now[:no_record], class: 'errorMessage') %>
<% end %>
<%#<%= f.text_field :tag_list_token, data: {load: @study_tags}, placeholder: "Search Study Title Field" <]%>
</div>
<div class="col-3 col-12-mobilep">
<%= f.submit 'Search', class: 'button-special' %>
</div>
</div>
<% end %>
</section>
</div>
</div>
<section class="box">
<% if @study %>
<%= render 'form', study: @study %>
<% end %>
</section>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment