public
Description: Makes your models act as textiled.
Homepage: http://errtheblog.com/posts/12-actsastextiled
Clone URL: git://github.com/defunkt/acts_as_textiled.git
Search Repo:
acts_as_textiled: Fail to load RedCloth gracefully [#35 state:resolved]
defunkt (author)
Wed Jun 13 08:48:48 -0700 2007
commit  572cc436e2bcf5ead694cc962a5808e1e2456cf0
tree    425440987acc2f5e8e83a564abb70130b9ea8b71
parent  eac71a20b391ee28623664658aaf17b26c4ce0cf
...
1
 
 
 
 
 
 
2
3
...
 
1
2
3
4
5
6
7
8
0
@@ -1,4 +1,9 @@
0
-require 'RedCloth'
0
+begin
1
+ require 'RedCloth'
0
+rescue LoadError
0
+ nil
0
+end
0
+
0
 require 'acts_as_textiled'
0
 ActiveRecord::Base.send(:include, Err::Acts::Textiled)

Comments

  • tekin Tue Jul 22 05:56:41 -0700 2008 at init.rb L3

    I’ve just installed RedCloth 4.0 and my app falls over at this line with a “RedCloth is not a module” error. Changing it to:
    require 'redcloth'
    stops the error.