I am having some very strange behaviour with Capybara. It stubbornly refuses to fill in the fields of my login form.
you can do find("#user_email").set "foo@example.com". See answer https://stackoverflow.com/a/8544650/3163914
find("#user_email").set "foo@example.com"