huacnlee/ruby-china — Issue #174: Wiki slug 需要处理 safe slug
Author: huacnlee
Created: 2012-01-09 01:47:04+00:00
State: open
Labels: Bug

```
Started GET "/wiki/recent" for 121.0.29.247 at 2012-01-09 09:49:33 +0800
Processing by PagesController#recent as HTML
Rendered pages/_base.html.erb (0.9ms)
Rendered pages/recent.html.erb within layouts/application (2.3ms)
Completed 500 Internal Server Error in 14ms

ActionView::Template::Error (No route matches {:action=>"show", :controller=>"pages", :id=>"www.baidu.com"}):
2:

3:

4: <% @pages.each do |item| %>
5:
<%= page_title_tag(item) %>

6: <% end %>
7:

8:

app/helpers/pages_helper.rb:5:in `page_title_tag'
app/views/pages/recent.html.erb:5:in `block in _app_views_pages_recent_html_erb___2874243353550711744_42931020'
app/views/pages/recent.html.erb:4:in `each'
app/views/pages/recent.html.erb:4:in `_app_views_pages_recent_html_erb___2874243353550711744_42931020'
```