ruby - Action not being called on page load -
in ruby volt project, getting following error:
attributebinding error: #<nomethoderror: 'undefined method `name' nil'> i know coming trying access name attribute on model while nil. routes file following:
client '/practices/new', component: 'admin', controller: 'offices', action: 'new' the method 'new' assigns model buffer not being called on page load. know why?
my guess you're referring {{ name }} rather {{ _name }} in view. try underscore notation or define offices model name field. docs on here.
i attributebinding error if don't use underscore notation on attribute that's not defined on model.
Comments
Post a Comment