On 13 Sep 2008, at 11:25, Mozmonkey <[EMAIL PROTECTED]> wrote:

>
> For some reason that is not working.  Here's the load_paths line in
> the environment file:
>
> config.load_paths += %W( #{RAILS_ROOT}/widgets )
>
What's happening?

Fred
> And the main widget model (widget.rb):
>
> class Widget < ActiveRecord::Base
>  set_table_name :widget
>
>  #
>  # Get a list of widgets
>  #
>  def self.get_widgets
>      logger.debug(HelloWorld)
>  end
>
> end
>
> And the actual widget which lives in widgets/HelloWorld.rb
>
> class HelloWorld < Widget
>
>   # Create a serialized hash of default options
>   def install
>   end
>
>   # Will be called by the system automatically to execute this plugin
>   def run
>      say "Hello World"
>   end
>
> end
>
> Any ideas?  Thanks.
> >

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to