title: THE SUBMIT BUTTON
body: <p>Udemy: Bootcamp course: section: 8 Lecture: 122: SAVING TO THE DATABSE: In the "Contact Us" page I filled in the info, Name: test1, Email: test1@example.com, Comments: test1, as a test, pressed submit, but the button do not submit the info and gives no error message. Where am I going wrong? Any expert advice? Here is my code:</p>
  
  <pre><code>    class ContactsController &lt; ApplicationController
        def new
          @contact = Contact.new
        end
  
        def create
          @contact = Contact.new(contact_params)
  
           if @contact.save
             flash[:success] = 'Message sent.'
             redirect_to new_contact_path
           else
             flash[:danger] = 'Error occured, message has not been sent.'
             redirect_to new_contact_path 
           end
        end
     end
       private
       def contact_params
        params.require(:contact).permit(:name, :email, :comments)
       end
  
      &lt;div class="row"&gt;
        &lt;div class="col-md-4 col-md-offset-4"&gt;
           &lt;div class="well"
             &lt;%= form_for @contact do |f| %&gt;
               &lt;div class="form-group"&gt;
                 &lt;%= f.label :name %&gt;
                 &lt;%= f.text_field :name, class: 'form-control' %&gt;
               &lt;/div&gt;
  
               &lt;div class="form-group"&gt;
                 &lt;%= f.label :email %&gt;
                 &lt;%= f.email_field :email, class: 'form-control' %&gt;
               &lt;/div&gt;
  
               &lt;div class="form-group"&gt;
                 &lt;%= f.label :comments %&gt;
                 &lt;%= f.text_area :comments, class: 'form-control' %&gt;
               &lt;/div&gt;
             &lt;%= f.submit 'Submit', class: 'btn btn-default' %&gt;
          &lt;% end %&gt;
         &lt;/div&gt;
        &lt;/div&gt;
       &lt;/div&gt;
  </code></pre>