@@ -32,7 +32,6 class BoardsController < ApplicationController | |||||
32 | if @boards.size == 1 |
|
32 | if @boards.size == 1 | |
33 | @board = @boards.first |
|
33 | @board = @boards.first | |
34 | show |
|
34 | show | |
35 | render :action => 'show' |
|
|||
36 | end |
|
35 | end | |
37 | end |
|
36 | end | |
38 |
|
37 | |||
@@ -46,7 +45,7 class BoardsController < ApplicationController | |||||
46 | :include => [:author, {:last_reply => :author}], |
|
45 | :include => [:author, {:last_reply => :author}], | |
47 | :limit => @topic_pages.items_per_page, |
|
46 | :limit => @topic_pages.items_per_page, | |
48 | :offset => @topic_pages.current.offset |
|
47 | :offset => @topic_pages.current.offset | |
49 |
render :action => 'show', :layout => |
|
48 | render :action => 'show', :layout => !request.xhr? | |
50 | end |
|
49 | end | |
51 |
|
50 | |||
52 | verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } |
|
51 | verify :method => :post, :only => [ :destroy ], :redirect_to => { :action => :index } |
General Comments 0
You need to be logged in to leave comments.
Login now