Curtis wrote in post #979429:
> On Feb 3, 2011, at 2:57 AM, Albert Catal <li...@ruby-forum.com> wrote:
>
>>>
>>     super("ERROR------------>"+msg)
>>   end
>> end
>>
>> this is in a file.rb in config/initializers/
>>
>> and raises the error I said
>>
>
>
>
> Did you read my other response about class methods?

Yes but I'm still truing to do that, what do you mean? with

class << self
>  def error(msg)
>    super("ERROR------------>"+msg)
>   end
end # class methods Object.method_name

 and where do I have to put this code?

Thanks for patience

-- 
Posted via http://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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to