search for: textconversion

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

Did you mean: hex_conversion
2006 May 26
1
access a ActionControllers protected method from plugin?
...troller::Base def self.execute_ruby_code( str ) logger.error(''test'') str = str.gsub(/\<ruby\>(.*?)\<\/ruby\>/) do |match| match = self.render(:inline => $1, :type => ''rhtml'') logger.error(match) end str end end module TextConversion module Acts module Blog def self.included(base) base.extend(ClassMethods) end def acts_as_blog class_eval do extend TextConversion::Acts::Blog::SingletonMethods end end end module SingletonMethods def conv...
2006 May 26
8
calling render_to_string outside of controller
How can I call render_to_string outside of a controller. I''m stuck on this. I''ve nearly got my plugin finished but I can''t seem to get this to work. The method is in ActionController::Base but it is protected. -- Posted via http://www.ruby-forum.com/.