Skip to content

Instantly share code, notes, and snippets.

@tjackiw
Created June 22, 2012 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tjackiw/2970886 to your computer and use it in GitHub Desktop.
Save tjackiw/2970886 to your computer and use it in GitHub Desktop.
Adding SMS capabilities to your Rails Application
<h1>User Registration</h1>
<%= form_for @user do |f| %>
<% if @user.errors.any? %>
<ul>
<% @user.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
<% end %>
<p><%= f.label :name %><br>
<%= f.text_field :name%></p>
<p><%= f.label :email %><br>
<%= f.text_field :email%></p>
<p><%= f.label :phone %><br>
<%= f.text_field :phone%></p>
<%= f.submit %>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment