diff options
author | Grant Hutchins <nertzy@gmail.com> | 2012-03-28 20:05:26 -0400 |
---|---|---|
committer | Grant Hutchins <nertzy@gmail.com> | 2012-03-28 20:21:46 -0400 |
commit | 18d275ada1b23bf07cc51a815385afac6bb2b8cb (patch) | |
tree | becc415730a060480e027c2ef4fabfb33df84b51 /actionpack/test/fixtures | |
parent | a0e83d5af7385317fdcc91390e1b3a02b0cf56b8 (diff) | |
download | rails-18d275ada1b23bf07cc51a815385afac6bb2b8cb.tar.gz rails-18d275ada1b23bf07cc51a815385afac6bb2b8cb.tar.bz2 rails-18d275ada1b23bf07cc51a815385afac6bb2b8cb.zip |
Make controller namespace partial prefix optional
config.action_view.prefix_partial_path_with_controller_namespace
This allows you to choose to render @post using
/posts/_post.erb instead of /admin/posts/_post.erb
inside Admin::PostsController.
Diffstat (limited to 'actionpack/test/fixtures')
-rw-r--r-- | actionpack/test/fixtures/fun/games/_game.erb | 2 | ||||
-rw-r--r-- | actionpack/test/fixtures/fun/serious/games/_game.erb | 2 | ||||
-rw-r--r-- | actionpack/test/fixtures/games/_game.erb | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/test/fixtures/fun/games/_game.erb b/actionpack/test/fixtures/fun/games/_game.erb index d51b7b3ebc..f0f542ff92 100644 --- a/actionpack/test/fixtures/fun/games/_game.erb +++ b/actionpack/test/fixtures/fun/games/_game.erb @@ -1 +1 @@ -<%= game.name %>
\ No newline at end of file +Fun <%= game.name %> diff --git a/actionpack/test/fixtures/fun/serious/games/_game.erb b/actionpack/test/fixtures/fun/serious/games/_game.erb index d51b7b3ebc..523bc55bd7 100644 --- a/actionpack/test/fixtures/fun/serious/games/_game.erb +++ b/actionpack/test/fixtures/fun/serious/games/_game.erb @@ -1 +1 @@ -<%= game.name %>
\ No newline at end of file +Serious <%= game.name %> diff --git a/actionpack/test/fixtures/games/_game.erb b/actionpack/test/fixtures/games/_game.erb new file mode 100644 index 0000000000..1aeb81fcba --- /dev/null +++ b/actionpack/test/fixtures/games/_game.erb @@ -0,0 +1 @@ +Just <%= game.name %> |