Something like Textile for messaging seems pretty necessary, but it gives me all kinds of headaches. bundle packageand they bundle installwork fine, and confirm that RedCloth is installed on the latest stable version (4.2.2). Right now I'm on ruby ββ1.9.2p0 and rails 3.0.7.
When I try to start the local server, I see:
LoadError in PostsController
no such file to load -- RedCloth
...
app/controllers/posts_controller.rb:1:in `<top (required)>'
This error occurred while loading the following files:
RedCloth
Line 1 in posts_controller require 'RedCloth'. I haven't made any changes to the basic Rails sketches yet, except for adding json formatting and a private authentication method, none of which should affect this.
I use partial display of my posts. Currently, it looks like this:
<% div_for post do %>
<h2><%= link_to_unless_current h(post.title), post %> </h2>
<%= RedCloth.new(post.body).to_html %>
<% end %>
Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.7'
gem 'sqlite3'
gem 'rake-compiler'
gem 'RedCloth'
group :development, :test do
gem 'webrat'
gem 'rspec'
gem 'rspec-rails'
end
(rake- , btw: http://www.ruby-forum.com/topic/484752 [ ruby ββ1.9. 1 1.9.2, , ))
TIA:)