我的情况:
ReportsController < ApplicationController
layout false
但这是错误的:(对于所有的行为)
def view
@report = Report.new(params[:report])
unless @report.valid?
render :action => 'new' and return
else
render :layout => false
end
end
我该怎么办?