Topic: problem while writing plugin
I am trying to develop a basic acts_as plugin of myown. I have generated myplugin as
"ruby script/generate plugin acts_as_myplugin" in my vendor/plugins dir.
in init.rb I have the following code:
in vendor/plugins/acts_as_myplugin/lib/acts_as_myplugin.rb, I have the following code:
module Myplugin #:nodoc:
# declare the class level helper methods which
# will load the relevant instance methods
# defined below when invoked
# Adds instance methods.
in my model class user.rb, I have the following code:
class User < ActiveRecord::Base
In both the cases where I was calling acts_as_myplugin, I was unable to see the output "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" on the console. I could not figure out the problem.
Any help appreciated.....