Sha256: 3f071ad91517a72d17e7788c02e94e261f9c265b23a5823d9fca8af9ed98c4ca
Contents?: true
Size: 609 Bytes
Versions: 31
Compression:
Stored size: 609 Bytes
Contents
<% if @bar_code.force_show %> location = "<%= bar_code_path({:id => @bar_code.bar_code_tag, :bar_code => {:force_show => true}}) %>"; <% else %> <% if @bar_code.errors.empty? %> <% unless @bar_code.assigned_to_object.primary_link.blank? %> console.log("primary link not blank"); location = "<%= @bar_code.assigned_to_object.primary_link %>"; <% else %> console.log("primary link is blank"); location = "<%= bar_code_path(@bar_code.bar_code_tag) %>"; <% end %> <% else %> console.log("bar code has errors on it."); alert("<%= @bar_code.errors.full_messages %>"); <% end %> <% end %>
Version data entries
31 entries across 31 versions & 1 rubygems