On Jun 20, 10:35 pm, Wer Sie <[email protected]> wrote:
> Ok, in my example I just forgot to instantiate Test ;-)
>
> t = Test.new
> t.methods.include? 'load_widget'
>  # also results to true
>
> But why I cannot call the method from withing the controller? :-/

How are you calling things ? My guess is you're trying

class Test< ActionController::Base
  some_method_from_your_plugin
end

For this to work   some_method_from_your_plugin needs to be a class
method (since you are calling it on Test itself, not an instance of
it) but it looks like you're only adding instance methods.

Fred
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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