Skip to content

Commit

Permalink
Expose pages#show route as GET
Browse files Browse the repository at this point in the history
* For rails 4 compatibility (#match will raise a warning)

See this commit on rails for more info:
rails/rails@56cdc81#LOL61
  • Loading branch information
arvida committed Oct 23, 2012
1 parent 6cac4ee commit 176895f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -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.