Hello im trying to add some barcode generation funcionality to my app,
all via barby gem.

I'm building a custom helper, but i cant include barby module to load,
when i write

module BarcodeHelper
include Barby
end

i receive error:
Routing Error
uninitialized constant BarcodeHelper::Barby
Try running rake routes for more information on available routes.

and i change it to:
module BarcodeHelper
#include Barby
require 'barby'
end

i receive:
Missing helper file helpers/barby.rb

how it should be done?
im using rails 3.2

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedMar 13, '12 at 10:04a
activeMar 13, '12 at 10:04a
posts1
users1
websiterubyonrails.org
irc#RubyOnRails

1 user in discussion

Marcin S: 1 post

People

Translate

site design / logo © 2022 Grokbase