Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
form
<div class="row-fluid">
<div class="services_pro col-md-6 col-md-offset-1 ">
<div class="well well large">
<p><h3>Envia un mensaje a <%= @lawyer.name %></h3></p>
<p><%= form_tag({controller: "messages", action: "create"}, method: :post) do %></p>
<%= label_tag :Asunto %>
<p><%= text_field_tag :subject %></p>
<%= label :body, "Mensaje" %>
<p><%= text_area_tag :body %></p>
<%= hidden_field_tag(:lawyer, "#{@lawyer.id}") %>
<%= submit_tag 'Enviar Mensaje', class: "btn btn-primary" %>
<% end %>
</div>
</div>
</div>
@jtansley

This comment has been minimized.

Copy link

jtansley commented May 14, 2015

Is this /app/views/messages/new.html.erb?

@marcfuentes

This comment has been minimized.

Copy link
Owner Author

marcfuentes commented May 14, 2015

No, is not the same structure as your example, I put this code in /app/views/lawyers/message.html.erb
heres the full repo https://github.com/marcfuentes/abogado

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.