typo
This commit is contained in:
parent
8db516c5f0
commit
3e79304c5a
1 changed files with 6 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue