Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Survey Form problem #24

Open
bdhohn opened this issue May 4, 2015 · 1 comment
Open

Survey Form problem #24

bdhohn opened this issue May 4, 2015 · 1 comment

Comments

@bdhohn
Copy link

bdhohn commented May 4, 2015

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

@romenigld
Copy link

I have this similar problem and don't know what to do!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants