rilla/refinerycms-page_templates — Issue #2: generator does not work
Author: stabenfeldt
Created: 2011-11-06 19:24:13+00:00
State: open

Hi,

I´ve installed refinerycms-page_templates into vendor/engines.

$ rails generate
/Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:26:in `': undefined local variable or method `refinery' for Refinery::PageTemplates::Engine:Class (NameError)
from /Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:5:in `'
from /Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:4:in `'
from /Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:3:in `'

$ cat Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.10'
gem 'sqlite3'
gem 'haml'
gem 'refinerycms', '~> 1.0.8'
gem 'refinerycms-page_templates', :path => 'vendor/engines'

$ cd vendor/engines/refinerycms-page_templates
$ refinerycms-page_templates git:(master) rake --trace
rake aborted!
undefined local variable or method `refinery' for Refinery::PageTemplates::Engine:Class
/Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:26:in `'
/Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:5:in `'
/Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:4:in `'
/Users/martins/Work/martinstabenfeldt.no/vendor/engines/refinerycms-page_templates/lib/refinerycms-page_templates.rb:3:in `'

Am I doing something wrong?
Any clue one how to get the engine working? :)

Regards,
Martin Stabenfeldt