これは私のhtml.erbファイルです..私は、このエラーにテンプレートが欠落している - レール
Template is missing Missing template pages/verify, application/verify with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: * "/home/spritle/web-beerboard-menu/app/views" * "/var/lib/gems/2.3.0/gems/devise-4.2.0/app/views"
<%= form_tag({:controller=>"pages", :action=>"verify"}, method: :get) do %>
<div class="row">
<div class=" col-lg-4 col-xs-4 col-sm-4 " >
<label for="q">Enter date of Birth</label>
</div>
</div>
<div class="row">
<div class=" col-lg-4 col-xs-4 col-sm-4" >
<input id="dob" name="dob" type="date" class="form-control" required /> </div>
</div>
<div class="row">
<div class=" col-lg-4 col-xs-4 col-sm-4" >
<%= submit_tag 'Go', name: nil %> </div>
</div>
<% end %>
を取得しています、これは私のコントローラファイル
def verify
currentdate = Time.now.strftime("%Y-%m-%d")
dateofb = Date.parse(params[:dob]).strftime("%Y-%m-%d")
date = (currentdate.to_date - dateofb.to_date).to_i
end
どのラインが正確にエラーを投げていますか?コントローラからのスタックトレースを表示してください –