我有一个成功的闪存通知,用于用户输入电子邮件时,以及出现故障时的闪存通知失败。两者都有功能,但通知下有一些数字。当我推送到heroku而不只是一个数字时,整个html代码行显示在flash下 - <div class='background'> <div class='alert alert-success'>Thanks for staying up to date.</div>
haml视图:
%body
= if flash[:notice]
.alert.alert-success= flash[:notice]
= if flash[:alert]
.alert.alert-danger= flash[:alert]
控制器:
respond_to do |format|
if @lead.save
format.html { redirect_to :back, :notice => 'Thanks for staying up to date.' }
else
format.html { redirect_to :back, :alert => 'Uh oh, there was a problem.'}
end
end
提前致谢〜!
答案 0 :(得分:0)
您需要将Dim ExcelObj As Object
Dim ExcelBook As Object
Dim ExcelSheet As Object
Set ExcelObj = CreateObject("Excel.Application")
Set ExcelBook = ExcelObj.Workbooks.Open(strPathToExcelFile)
Set ExcelSheet = ExcelBook.Worksheets(1)
ExcelSheet.Cells(1, 1) = MyForm.Text1.Text
ExcelSheet.Cells(1, 2) = MyForm.Text2.Text
ExcelBook.Close (True)
ExcelObj.Quit
Set ExcelObj = Nothing
替换为=
当您需要在html视图中显示/渲染输出时,请使用-
。
当您只需要评估某些内容或指定类似内容时使用=
-