Permalink
Browse files

Expose pages#show route as GET

* For rails 4 compatibility (#match will raise a warning)

See this commit on rails for more info:
rails/rails@56cdc81#LOL61
  • Loading branch information...
1 parent 6cac4ee commit 176895f3e8a71d9084407c54a9a8069ba7d94450 @arvida arvida committed Oct 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 config/routes.rb
View
@@ -1,5 +1,5 @@
Rails.application.routes.draw do
if HighVoltage.routes
- match "/#{HighVoltage.content_path}*id" => 'high_voltage/pages#show', :as => :page, :format => false
+ get "/#{HighVoltage.content_path}*id" => 'high_voltage/pages#show', :as => :page, :format => false
end
end

0 comments on commit 176895f

Please sign in to comment.