Ruby on Rails Friday, December 21, 2012

On Fri, Dec 21, 2012 at 10:40 PM, William Herry
<william.herry.china@gmail.com> wrote:
> 1. where should I place this kind of code (format some content, markdown,
> emotion, highline syntax etc)
> 2. I see a cast about `Redcarpet`, it just place it in Gemfile and bundle
> install and then can use directly, why can 'html/pipeline' (HTML::Pipeline)

gem "html-pipeline", require: "html/pipeline"

Don't place it in a group, place it at the bottom of the file so that
rails will Bundler.require it by default. After you do that bundle
and then it *should* work if it doesn't there needs to be an actual
error (trace) sent.

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment