Ok, so, I’m trying to write my first gem to learn how it all works.
Basically the gem would just be an extra view helper, so I want any
methods in my module to be accessible in a rails app view.
I want my method to call render, and render a partial I have in my gem’s
app/views/shared folder. When I call “render”, and run my rspec test I
get an undefined method render for the rspec stuff. I’ve tried including
ActionView::Base, and requiring it, and even tried just calling
ActionView::Base.new.render :partial => ‘shared/my_partial’. Calling it
directly will call the render method, but I get a Missing partial error.
Same thing happens if I call the full path to that partial.
My gem is structured like