tdreyno/middleman-blog — Issue #2: NoMethodError when attempting to view an article (permalink)
Author: thejustinwalsh
Created: 2011-10-16 06:55:11+00:00
State: open

I'm getting an error when attempting to run a freshly (had to make my own _article_template.erb) generated blog with middleman. The details are below, let me know if you need any other info, or want me to try anything out to fix it.

## Error
private method `gsub!' called for # @ Line 53

```ruby
app.get("/#{app.blog_permalink}") do
process_request({
:layout => app.blog_layout,
:layout_engine => app.blog_layout_engine
})

# No need for separator on permalink page
body body.gsub!(app.blog_summary_separator, "")
```

## Steps to repro
1. gem install middleman
2. gem install middleman-blog
* gem install maruku
* gem install builder
3. middleman init appName --template=blog
4. Create _article_template.erb and copied code from github (should be in the template already?)
5. middleman server
6. Click on the article hyperlink

## System Info
OS X Snow Leopard
Default Ruby Install (Ruby 1.8.7)