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

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -