Sha256: e30501e6efcc54c61c3d5ed59dc13c925abc9cf9764ff75e6ea66db3808460c7

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

<%
  if current_user.role.upcase.split(',').include?("A")
    article = Article.all.desc(:created_at)
  else
    article = Article.where(user: current_user).desc(:created_at)
  end
%>
<div class="field" data-role="fieldcontain">
  <%= label_tag :title, 'Article title' %>
  <%= select_tag :title, options_from_collection_for_select(article, :id, :title), "data-native-menu"=>"false" %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mindapp2-0.1.1.3 lib/generators/mindapp/templates/app/views/articles/edit_article/select_article.html.erb
mindapp2-0.1.1.2 lib/generators/mindapp/templates/app/views/articles/edit_article/select_article.html.erb
mindapp2-0.1.1.1 lib/generators/mindapp/templates/app/views/articles/edit_article/select_article.html.erb
mindapp2-0.1.0 lib/generators/mindapp/templates/app/views/articles/edit_article/select_article.html.erb