DEV Community

Discussion on: Build great views fast - Custom view scaffolding in rails with bootstrap 4

Collapse
 
kylelaw profile image
Kyle-Law

Got error
/lib/templates/erb/scaffold/show.html.erb.tt:14:in block in template': undefined methodfield_id' for #Erb::Generators::ScaffoldGenerator... (NoMethodError)

Collapse
 
x1wins profile image
Chang-Woo Rhee

hello, i did check field_id method in github and apidock.com.
there is field_in method in NamedBase class, but that is 5.1 version only. i don't know why they removed field_in method.
and then we can't more use field_in. if you want still, you can make helper for field_in method that is simple code. you can check field_in method in below link.

apidock.com/rails/v5.1.7/Rails/Gen...
github.com/rails/rails/blob/5-1-st...