ruby - Rails undefined method `Graphic_Store' for Graphic:Module -


i have 3 files, 2 class files , 1 module file, module containing classes inherit other files, way can 'require "graphic"' it's not working.

the code module

require 'gstore' require 'grender' require 'chunky_png' module graphic     class graphic_store < gstore    end     class graphic_render < grender    end  end 

i'm not sure if that's how you're supposed use i'm getting undefined method error in browser. doesn't matter if 'graphic_store' or graphic::graphic_store' in controller, same error, difference on second 1 errors on graphic file rather controller.

the reason i'm doing way becuase saying 'undefined method' on them way, @ least way it's on 1 file, , gives me name space.

i keep getting 'unable load file -chunky_png' when put the require in other files. doing 'gems' show chunky_png gem installed.

i able working removing module , nesting 2 classes inside class called graphic.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -