This commit is contained in:
wvengen 2014-01-27 14:58:39 +01:00
parent 8db516c5f0
commit 3e79304c5a
1 changed files with 6 additions and 6 deletions

View File

@ -29,14 +29,14 @@ class OrdersController < ApplicationController
def show
@order= Order.find(params[:id])
@view = (params[:view] or 'default').gsub(/[^-_a-zA-Z0-9]/, '')
@partial = case @view
when 'default' then 'articles'
when 'groups'then 'shared/articles_by_groups'
when 'articles'then 'shared/articles_by_articles'
else 'articles'
end
respond_to do |format|
@partial = case @view
when 'default' then "articles"
when 'groups'then 'shared/articles_by_groups'
when 'articles'then 'shared/articles_by_articles'
else 'articles'
end
format.html
format.js do
render :layout => false