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
|
||||
@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
|
||||
|
|
Loading…
Reference in a new issue