Displaying 1 result from an estimated 1 matches for "escpates".
Did you mean:
escapes
2006 May 26
1
access a ActionControllers protected method from plugin?
...ActionController::Base. I keep getting the "uninitialized constant
Execute" error. How can I do this? I''m I even barking up the right
tree? Here''s the relevent code
# ActsAsBlog - used to convert redcloth,markdown,smarty to html. also
evals <ruby> code and escpates html if needed
require ''active_record''
require ''action_controller''
class Execute < ActionController::Base
def self.execute_ruby_code( str )
logger.error(''test'')
str = str.gsub(/\<ruby\>(.*?)\<\/ruby\>/) do |match|
m...