{"action":"opened","issue":{"url":"https://api.github.com/repos/airbnb/enzyme/issues/624","repository_url":"https://api.github.com/repos/airbnb/enzyme","labels_url":"https://api.github.com/repos/airbnb/enzyme/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/enzyme/issues/624/comments","events_url":"https://api.github.com/repos/airbnb/enzyme/issues/624/events","html_url":"https://github.com/airbnb/enzyme/issues/624","id":181709104,"number":624,"title":"Submit button not submitting: no error message","user":{"login":"mywebmagic","id":22073862,"avatar_url":"https://avatars.githubusercontent.com/u/22073862?v=3","gravatar_id":"","url":"https://api.github.com/users/mywebmagic","html_url":"https://github.com/mywebmagic","followers_url":"https://api.github.com/users/mywebmagic/followers","following_url":"https://api.github.com/users/mywebmagic/following{/other_user}","gists_url":"https://api.github.com/users/mywebmagic/gists{/gist_id}","starred_url":"https://api.github.com/users/mywebmagic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mywebmagic/subscriptions","organizations_url":"https://api.github.com/users/mywebmagic/orgs","repos_url":"https://api.github.com/users/mywebmagic/repos","events_url":"https://api.github.com/users/mywebmagic/events{/privacy}","received_events_url":"https://api.github.com/users/mywebmagic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-07T16:10:15Z","updated_at":"2016-10-07T16:10:15Z","closed_at":null,"body":"I.m working in  a rails application in cloud9. I enter info in the fields in the Contact Us page for a test as follows: Name: test1, Email: test1@example.com, Comments: test1, clicked Submit, nothing happens and there is no error message. Need expert advice, I am stuck at this juncture: Here is my code:\r\n\r\ncontacts_controller.rb (file)\r\n\r\nclass ContactsController < ApplicationController\r\n    def new\r\n        @contact = Contact.new\r\n    end\r\n    \r\n    def create\r\n        @contact = Contact.new(contact_params)\r\n        \r\n        if @contact.save\r\n            flash[:success] = \"Message sent.\"\r\n            redirect_to new_contact_path\r\n        else\r\n            flash[:danger] = \"Error occured, message has not been sent.\"\r\n            redirect_to new_contact_path\r\n        end\r\n    end\r\n    \r\n    private\r\n        def contact_params\r\n        params.require(:contact).permit(:name, :email, :comments)\r\n        end\r\nend\r\n\r\nnew.html.erb (file)\r\n\r\n<div class=\"row\">\r\n    <div class=\"col-md-4 col-md-offset-4\">\r\n        <div class=\"well\"\r\n            <%= form_for @contact do |f| %>\r\n                <div class=\"form-group\">\r\n                    <%= f.label :name %>\r\n                    <%= f.text_field :name, class: 'form-control' %>\r\n                </div>\r\n                    \r\n                <div class=\"form-group\">\r\n                    <%= f.label :email %>\r\n                    <%= f.email_field :email, class: 'form-control' %>\r\n                </div>\r\n                    \r\n                <div class=\"form-group\">\r\n                    <%= f.label :comments %>\r\n                    <%= f.text_area :comments, class: 'form-control' %>\r\n                </div>\r\n                    <%= f.submit \"Submit\", class: \"btn btn-default\" %>\r\n              <% end %>\r\n        </div>\r\n    </div>\r\n</div>\r\n\r\nroutes.rb (file)\r\n\r\nRails.application.routes.draw do\r\n  resources :contacts\r\n  get '/about' => 'pages#about'\r\n  root 'pages#home'\r\n\r\napplication.html.erb (file)\r\n\r\n<div class=\"container\">\r\n  <% flash.each do |key, value| %>\r\n    <div class=\"alert alert-<% key %> alert-dismissable\">\r\n      <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden= \"true\"></span>&times;></span></button>\r\n      <%= value %>\r\n    </div>\r\n  <% end %>\r\n  \r\n  <%= yield %>\r\n</div>\r\n\r\n</body>\r\n</html>\r\n\r\ncontact.rb (file)\r\n\r\nclass Contact < ActiveRecord::Base\r\n    validates :name, presence: true\r\n    validates :email, presence: true\r\nend\r\n\r\n"}}
{"actor":{"display_login":"mywebmagic"}}