This commit is contained in:
wvengen 2014-01-27 14:58:39 +01:00
parent 8db516c5f0
commit 3e79304c5a

View file

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