Skip to content

Commit 15cf956

Browse files
Lar Van Der Jagthashrocketeer
authored andcommitted
Shows #to_partial_path breakage with a namespace
1 parent 3cc6054 commit 15cf956

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
require 'objects'
2+
3+
module Admin
4+
class FeedController < ::ApplicationController
5+
6+
expose(:things) do
7+
[Post.new, Video.new, Photo.new]
8+
end
9+
10+
end
11+
end

app/views/admin/feed/index.html.haml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
%ul#items
2+
= render things

config/routes.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
ViewResolverExample::Application.routes.draw do
22
match '/ui(/:action)', controller: 'ui'
3+
namespace :admin do
4+
root to: 'feed#index'
5+
end
36
root to: 'feed#index'
47
end

0 commit comments

Comments
 (0)