Barcode-generator -matsimitsu - NoMethodError

I’m using Matsimitsu’s Barcode Generator:

and have installed: gbarcode (0.98.16), rmagick (2.12.2) and have
installed the files to: Vendor/Plugins/ directory and successfully ran
the rake barcode_setup command to create the public/images/barcodes
dir.

I Tried using the sample code: <%= barcode ‘FJJ4JD’%> in one of my
html.erb files, with the returned message:


NoMethodError in Inventories#show
undefined method `barcode’ for #ActionView::Base:0x105bb8838
Extracted source (around line #41):

38: <%=h @inventory.campus %>
39:


40:
41: <%= barcode ‘TEST1234’%>
42:
43:
44: <%= link_to ‘Edit’, edit_inventory_path(@inventory) %> |
RAILS_ROOT: /Users/justinz/barcode

Application Trace | Framework Trace | Full Trace
app/views/inventories/show.html.erb:41:in
_run_erb_47app47views47inventories47show46html46erb' app/controllers/inventories_controller.rb:26:inshow’


Did I install this incorrectly? Am I using this incorrectly?

Any help would be GREATLY Appreciated

Thank you in advance Google Ruby on Rails Talk Folks!

JZ

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs