Open bdhohn opened 9 years ago
when I try to view the page after completing the Survey Form exercise, I'm getting an error . . . undefined method
undefined method `type_cast_from_database' for "string":String
Extracted source (around line #47):
<div class="row"> <div class="col-md-4 col-md-offset-4"> <%= f.input :favorite, :collection => Visitor::IMAGE_LABELS, label: false, as: :select, prompt: 'Select a favorite...' %> </div> </div>
I double-checked that I had the visitor.rb, visitors_controller.rb and the routes.rb files exactly as written
Not sure what to try next
I have this similar problem and don't know what to do!
when I try to view the page after completing the Survey Form exercise, I'm getting an error . . . undefined method
undefined method `type_cast_from_database' for "string":String
Extracted source (around line #47):
I double-checked that I had the visitor.rb, visitors_controller.rb and the routes.rb files exactly as written
Not sure what to try next