From 3e79304c5a751c325873c78310243e7caa4d2f9a Mon Sep 17 00:00:00 2001 From: wvengen Date: Mon, 27 Jan 2014 14:58:39 +0100 Subject: [PATCH] typo --- app/controllers/orders_controller.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/orders_controller.rb b/app/controllers/orders_controller.rb index 72507567..d3c1590d 100644 --- a/app/controllers/orders_controller.rb +++ b/app/controllers/orders_controller.rb @@ -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