Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- partial _form_turno original -->
- <% form_for ( :visita,
- :url => { :action => 'create_turno'},
- :html=> {:method => :post}) do |f| %>
- <label for="">Cliente:
- <%= f.select :cliente_id, Cliente.find(:all).map{|x|[x.apellido_y_nombre, x.id]} %>
- </label>
- <label for="">Abogado:
- <%= f.select :abogado_id, Abogado.find(:all).map{|x|[x.apellido_y_nombre, x.id]} %>
- </label><br/><br/>
- <label for="">Horario:
- <%= f.datetime_select :visita_at %>
- </label><br/><br/>
- <p>
- <%= submit_tag "Agregar Turno"%>
- </p>
- <% end %>
- <!-- partial _form_turno corrección -->
- <% remote_form_for ( @visita, :visita, :url => { :action => 'create_turno'} ) do |f| %>
- <label for="">Cliente:
- <%= f.select :cliente_id, Cliente.find(:all).map{|x|[x.apellido_y_nombre, x.id]} %>
- </label>
- <label for="">Abogado:
- <%= f.select :abogado_id, Abogado.find(:all).map{|x|[x.apellido_y_nombre, x.id]} %>
- </label><br/><br/>
- <label for="">Horario:
- <%= f.datetime_select :visita_at %>
- </label><br/><br/>
- <p>
- <%= submit_tag "Agregar Turno"%>
- </p>
- <% end %>
Add Comment
Please, Sign In to add comment