Created
November 11, 2018 07:53
-
-
Save Haguilar91/edf0257a9f50fe078d39c60e5cea037d to your computer and use it in GitHub Desktop.
Show Public Item
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
<% @producto= Item.all.where(:id => params[:item])%> | |
<div class=bg-primary> | |
<h1>Debugging</h1> | |
<hr> | |
<% @vendedor=User.all.where(:email=>@producto.pluck(:usuario_actual)).map(&:id)%> | |
<p>Vendedor: <%=@vendedor.inspect%> </p> | |
<p>Producto: <%= @producto.inspect%></p> | |
<p>Articulo: <%=params[:item].inspect %></p> | |
</div> | |
<%= form.hidden_field :id_item, :value => "#{params[:item]}" %> | |
<%= form.hidden_field :id_comp, :value => "#{current_user.id}" %> | |
<%= form.hidden_field :id_vend, :value => @vendedor %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment