From a758a840226127e0e8d8eeea68175f4c01e35450 Mon Sep 17 00:00:00 2001 From: tscurrie Date: Fri, 5 Feb 2016 14:40:11 -0800 Subject: [PATCH] fixed raw html displaying on forms --- Gemfile | 1 + app/views/devise/sessions/new.html.erb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 563515183..449843378 100644 --- a/Gemfile +++ b/Gemfile @@ -87,6 +87,7 @@ group :development, :test do end group :development do + gem 'meta_request' # Access an IRB console on exception pages or by using <%= console %> in views gem 'web-console', '~> 2.0' diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 7e46ab0ba..bc9c29d4d 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -5,11 +5,11 @@ <%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
- <%= f.text_field :login, class: 'form-control', placeholder: t('.login'), autofocus: true %> + <%= f.text_field :login, class: 'form-control', placeholder: 'Login', autofocus: true %>
- <%= f.password_field :password, class: 'form-control', placeholder: t('.password'), autocomplete: 'off' %> + <%= f.password_field :password, class: 'form-control', placeholder: 'Password', autocomplete: 'off' %>