Nokogiri and Summaries?

Trying to create a blog template and the default index.html.erb template mentions Nokogiri, I installed the gem for it but still running server with article.summary throws this error,

Nokogiri is required for blog post summaries. Add 'nokogiri' to your Gemfile.

Do I need to add it to a gemfile still? I thought gemfile was just a list of dependencies needed to install?

Thanks.

Gemfile is a list of dependencies for Bundler to install. You need to add the line:

gem "nokogiri"

To that file, then run bundle install to download the dependency. This is only necessary if you are using the automatically generated blog summaries, which need an XML parser so they don’t accidentally break a blog post’s HTML when splitting it.

So installing the nokogiri gem manually does not work? It has to be bundle installed?

Is there another type of summary option that I overlooked?

No, but you can implement your own summary with a Ruby block, allowing you to do whatever you want.