Hello,
I''m facing a strange error.
I''m using Rails 1.1.6 and I try to use Markdown.
I''ve downloaded BlueCloth, and it is in my
RAILS_ROOT/vendor/plugins/BlueCloth_1.0.0
In my environment.rb, I have the following lines :
--
Rails::Initializer.run do |config|
config.load_paths += %W( #{RAILS_ROOT}/vendor/plugins/BlueCloth_1.0.0/lib
)
end
--
In my view, I have :
--
<%= markdown news.body %>
--
I get the following error :
undefined method `markdown'' for
#<#<Class:0x349426c>:0x3494244>
If I change my view and like this :
--
<%= BlueCloth.new(news.body).to_html %>
--
everything works fine.
Do you have any idea?
Thanks in advance,
Thomas.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---