README.md in rails_amp-0.1.9 vs README.md in rails_amp-0.2.0
- old
+ new
@@ -250,10 +250,10 @@
```
If you want to use the root_url as the canonical url, you should customize the codes.
```ruby
-<% if controller_name == 'home' && action_name == 'index' %>
+<% if controller_path == 'home' && action_name == 'index' %>
<link rel="canonical" href="<%= root_url %>" />
<% else %>
<link rel="canonical" href="<%= rails_amp_canonical_url %>" />
<% end %>
```