Created
September 26, 2016 18:04
-
-
Save emanoelopes/0e3b028fd5994f3e3f4795788de92c22 to your computer and use it in GitHub Desktop.
SyntaxError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% if @restaurante.errors.any? %> | |
<ul> | |
<% @restaurante.errors.full_messages.each do |msg| %> | |
<li><%= msg %></li> | |
<% end %> | |
</ul> | |
<% end %> | |
<%= form_for @restaurantes, html: {multipart: true} do |f| %> | |
Nome: <%= f.text_field :nome %> <br> | |
Endereço: <%= f.text_field :endereco %><br> | |
Especialidade: <%= f.text_field :especialidade %><br> | |
<%= f.file_field :foto %><br> | |
<% end %> | |
<%= f.submit%><br> | |
<% end %> |
baweaver
commented
Sep 26, 2016
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment