Topic: NoMethodError: undefined method `simple_format' for main:Object
Hi,
Am using ruby 1.9.1 and my sanitize gem version is 2.0.3. i cann't use the simple_format method.
I am really struggling with this. anybody please help me?.
irb(main):003:0> my_text = "Here is some basic text...\n...with a line break."
=> "Here is some basic text...\n...with a line break."
irb(main):004:0> Sanitize.clean(my_text)
=> "Here is some basic text...\n...with a line break."
problem:
--------------
irb(main):008:0> simple_format(my_text)
NoMethodError: undefined method `simple_format' for main:Object
from (irb):8
from /usr/local/bin/irb:12:in `<main>'
irb(main):009:0> Sanitize.clean(simple_format(my_text))
NoMethodError: undefined method `simple_format' for main:Object
from (irb):9
from /usr/local/bin/irb:12:in `<main>'