0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

引数と中身の処理内容の不一致

Posted at

スクリーンショット 2021-07-03 10.28.42.png

<修正前>

form_presenter.rb

def date_field_block(name, label_field , options = {})
    markup(:div ,class: "input-block") do |m|
    m << decorated_label(name , label_text  , options )
    m << date_field(name ,options)
    m << error_messages_for(name)
    end
  end

<修正後>

form_presenter.rb

def date_field_block(name, label_text , options = {})      #<=ここを修正
    markup(:div ,class: "input-block") do |m|
    m << decorated_label(name , label_text  , options )
    m << date_field(name ,options)    
    m << error_messages_for(name)
    end
  end

引数と処理の内容が一致していませんでした。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?