I''m having a hell of a time getting RedCloth working. Here''s
my system
info:
gem list rails
*** LOCAL GEMS ***
rails (2.3.2, 1.2.6, 1.2.3)
gem list RedCloth
*** LOCAL GEMS ***
RedCloth (4.2.1, 3.0.4)
admanb$ RedCloth -v
RedCloth 4.2.1
admanb$ rails -v
Rails 2.3.2
------------------------------
Run the app and I get:
ActionView::TemplateError (uninitialized constant
ActionView::Helpers::TextHelper::RedCloth) on line #3 of app/views/
posts/_post.html.erb:
1: <h2 class="title"><%=h post.title %></h2>
2: <div class="entry">
3: <%= textilize(h post.body) %>
4: <td><%= link_to ''Show'', post %></td>
5: <td><%= link_to ''Edit'', edit_post_path(post)
%></td>
6: <td><%= link_to ''Destroy'', post, :confirm =>
''Are you
sure?'', :method => :delete %></td>
Add
config.gem("RedCloth")
to environment.rb and I get:
admanb$ script/server
=> Booting WEBrick
=> Rails 2.3.2 application starting on http://0.0.0.0:3000
/Users/admanb/.gem/ruby/1.8/gems/RedCloth-4.2.1/lib/
redcloth_scan.bundle: [BUG] Bus Error
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.3.0]
Anyone have any idea what''s going on?
Matt Jones
2009-Jun-27 15:48 UTC
Re: RedCloth 4.2.1 with Rails 2.3.2 -- something''s broken
The error that you''re getting means that RedCloth isn''t compiled - try installing it again, and look out for error messages. You''ll need to have the Xcode tools installed as well. --Matt Jones On Jun 26, 7:00 pm, admanb <adm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''m having a hell of a time getting RedCloth working. Here''s my system > info: > > gem list rails > > *** LOCAL GEMS *** > > rails (2.3.2, 1.2.6, 1.2.3) > > gem list RedCloth > > *** LOCAL GEMS *** > > RedCloth (4.2.1, 3.0.4) > > admanb$ RedCloth -v > RedCloth 4.2.1 > > admanb$ rails -v > Rails 2.3.2 > > ------------------------------ > > Run the app and I get: > > ActionView::TemplateError (uninitialized constant > ActionView::Helpers::TextHelper::RedCloth) on line #3 of app/views/ > posts/_post.html.erb: > 1: <h2 class="title"><%=h post.title %></h2> > 2: <div class="entry"> > 3: <%= textilize(h post.body) %> > 4: <td><%= link_to ''Show'', post %></td> > 5: <td><%= link_to ''Edit'', edit_post_path(post) %></td> > 6: <td><%= link_to ''Destroy'', post, :confirm => ''Are you > sure?'', :method => :delete %></td> > > Add > > config.gem("RedCloth") > > to environment.rb and I get: > > admanb$ script/server > => Booting WEBrick > => Rails 2.3.2 application starting onhttp://0.0.0.0:3000/Users/admanb/.gem/ruby/1.8/gems/RedCloth-4.2.1/lib/ > redcloth_scan.bundle: [BUG] Bus Error > ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9.3.0] > > Anyone have any idea what''s going on?