moves Sms model to Verification namespace

This commit is contained in:
Juanjo Bazán
2015-08-29 12:17:27 +02:00
parent 50dcbcdf9b
commit e6fd62189b
8 changed files with 13 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
<%= form_for sms, url: sms_path do |f| %>
<%= form_for sms, as: "sms", url: sms_path do |f| %>
<%= render 'shared/errors', resource: sms %>
<%= f.hidden_field :phone %>
<%= f.submit t('verification.sms.form.submit_button') %>

View File

@@ -3,7 +3,7 @@
<h1 class="inline-block"><%= t('verification.sms.edit.title') %></h1>
<%= form_for @sms, url: sms_path, method: :put do |f| %>
<%= form_for @sms, as: "sms", url: sms_path, method: :put do |f| %>
<p><%= @error %></p>
<%= f.text_field :confirmation_code %>

View File

@@ -3,7 +3,7 @@
<h1 class="inline-block"><%= t('verification.sms.new.title') %></h1>
<%= form_for @sms, url: sms_path do |f| %>
<%= form_for @sms, as: "sms", url: sms_path do |f| %>
<%= render 'shared/errors', resource: @sms %>
<%= f.text_field :phone %>