我收到以下错误:
意外的 $end,期待 kEND
rescue
需要吗end
?怎么样begin
?我错过了end
某个地方吗?
class AdAssistedController < CommonController
def initialize
super
@pageJs = ['ad_assisted']
@pageCSS = ['ad_creator', 'fbx_launcher', 'score_dashboard',
'slider_dashboard_new', 'score-dashboard_new',
'jquery-ui']
end
def index
begin
@feed_names = FbxLauncher::Feed.find(:all)
rescue Exception => e
log_error(e.message)
log_error(e.backtrace)
end
respond_to do |format|
format.js { render :partial => 'index'}
format.html { render :partial => 'index'}
end
end