Ruby on Rails Saturday, December 22, 2012

thanks for you answer, it already out of any group, and I place it at the bottom still get error, maybe problem is not in installation (rails c can work)  I place this code in my comment model (app/models/comment.rb)

  def markdown
    #require "html/pipeline"                                                                            
    filter = HTML::Pipeline::MarkdownFilter.new("Hi **world**!")
    return filter.call    
  end

I got NameError - uninitialized constant HTML::Pipeline:
if I uncomment require line I got LoadError - cannot load such file -- html/pipeline:

I know I must make some stupid mistake, but just don't know it



--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment