Ruby on Rails: BlueCloth gem cannot work in production when deployed to heroku -
i'm trying use bluecloth
gem in order parse markdown rails app. added gem file:
gem 'bluecloth'
in .html.erb
views user code
<%= bluecloth.new(post.content).to_html.html_safe %>
to render markdown html. works fine in local dev environment, when push heroku, after running bundle install
, restarting app, accessing app generates internal server errors.
i following error in logs:
actionview::template::error (uninitialized constant actionview::compiledtemplates::bluecloth):
i include bluecloth
in gem file:
source 'https://rubygems.org' gem 'rails', '3.2.8' gem 'pg' group :assets gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' gem 'devise' gem 'bluecloth'
i have run command bundle install
via heroku command line.
thanks help!
it looks manually requiring files. might easier if use bundler
require
, dont have add require
other .rb
file. simple this. depending on rails version, here 2 links should out:
Comments
Post a Comment