search for: my_class_method

Displaying 2 results from an estimated 2 matches for "my_class_method".

2006 Jul 28
0
How to call a controller class method via HTTP
Hi, did someone achieve in calling a Controller class method through HTTP request? ...without workarounds like: def call_my_class_method self.class.my_class_method end Marco -- Posted via http://www.ruby-forum.com/.
2006 Aug 18
9
Rails is doing what I want - but I don''t understand how.
Hi guys, I have the strangest thing happening. The funny part is its doing exactly what I want to do, I just don''t understand how. Basically here is my model. class Role < ActiveRecord::Base has_and_belongs_to_many :users has_and_belongs_to_many :rights def self.names names = Array.new() for role in Role.find :all names << role.name end return