diff --git a/app/views/box_organizer/_article_block.rhtml b/app/views/box_organizer/_article_block.rhtml index bb54766..d388aa3 100644 --- a/app/views/box_organizer/_article_block.rhtml +++ b/app/views/box_organizer/_article_block.rhtml @@ -1 +1,2 @@ -<%= select('block', 'article_id', @block.box.owner.articles.map {|item| [ item.path, item.id]}) %> +<% articles = @block.box.owner.articles.select {|article| !article.folder? } %> +<%= select('block', 'article_id', articles.map {|item| [ item.path, item.id]}) %> -- libgit2 0.21.2