diff --git a/.gitignore b/.gitignore index cc2d865..e4ca844 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,6 @@ public/* Gemfile.lock .rvmrc .ruby-version +.ruby-gemset /.sass-cache coverage/ diff --git a/app/views/comfy/admin/blog/blogs/_form.html.haml b/app/views/comfy/admin/blog/blogs/_form.html.haml index 6f0ec8d..749e7fd 100644 --- a/app/views/comfy/admin/blog/blogs/_form.html.haml +++ b/app/views/comfy/admin/blog/blogs/_form.html.haml @@ -2,11 +2,12 @@ = form.text_field :identifier, :data => {:slug => true} = form.text_field :path -- if (options = Comfy::Cms::Layout.app_layouts_for_select).present? +- if (options = Comfy::Cms::Layout.app_layouts_for_select(lookup_context.view_paths)).present? = form.select :app_layout, options = form.text_area :description, :class => 'short' = form.form_group :class => 'form-actions' do = form.submit :class => 'btn btn-primary' - = link_to t('.cancel'), comfy_admin_blogs_path(@site), :class => 'btn btn-link' \ No newline at end of file + = link_to t('.cancel'), comfy_admin_blogs_path(@site), :class => 'btn btn-link' +