title: NoMethodError - undefined method `type' for "string":String:
body: <p>Anyone reading "Learn Ruby on Rails" by Daniel Kehoe? If not, then please skip the next paragraph and see the stack directly. </p>
  
  <p>I just finished building the "Rails Way" app with the Contact page for the "new" and "create" routes using the model approach. Author just introduced how cool the validation is with the "Rails Way". However, when I click on the Contact link in the Menu, it throws an error that I'm not able to comprehend so far. I'm providing the details of the error below. Any insight you could provide would be very helpful. </p>
  
  <p>Anyone encountered the error below dealing with ActiveRecord?</p>
  
  <p>Error: </p>
  
  <pre><code>NoMethodError - undefined method `type' for "string":String:
  </code></pre>
  
  <p>STACK:</p>
  
  <pre><code>Started GET "/contacts/new" for ::1 at 2015-08-05 00:22:18 -0700
  Processing by ContactsController#new as HTML
    Rendered contacts/new.html.erb within layouts/application (1.7ms)
  Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)
  
  NoMethodError - undefined method `type' for "string":String:
    activerecord (4.2.2) lib/active_record/connection_adapters/column.rb:18:in `type'
    activesupport (4.2.2) lib/active_support/core_ext/object/try.rb:77:in `public_send'
    activesupport (4.2.2) lib/active_support/core_ext/object/try.rb:77:in `try!'
    activesupport (4.2.2) lib/active_support/core_ext/object/try.rb:63:in `try'
    simple_form (3.1.0) lib/simple_form/form_builder.rb:514:in `default_input_type'
    simple_form (3.1.0) lib/simple_form/form_builder.rb:497:in `find_input'
    simple_form (3.1.0) lib/simple_form/form_builder.rb:112:in `input'
    app/views/contacts/new.html.erb:6:in `block in _app_views_contacts_new_html_erb___1021484279056782038_70328966650640'
    actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
    actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:200:in `with_output_buffer'
    actionview (4.2.2) lib/action_view/helpers/capture_helper.rb:38:in `capture'
    actionview (4.2.2) lib/action_view/helpers/form_helper.rb:444:in `form_for'
  ...
  </code></pre>
  
  <p>Contents of new.html.erb</p>
  
  <p>&lt;% content_for :title do %>Contact&lt;% end %> <h3>Contact</h3>  &lt;%= simple_form_for @contact do |form| %> &lt;%= form.error_notification %> &lt;%= form.input :name, autofocus: true %> &lt;%= form.input :email %> &lt;%= form.input :content, as: :text %> &lt;%= form.button :submit, 'Submit', class: 'submit' %> &lt;% end %>  </p>