Normalize page paths

Normalize page paths so they can be accessed by `page_path(:id)`.

The benefit of this is that we can add any arbitrary amount of pages
without affecting the routing layer.
This commit is contained in:
Josep Jaume Rey Peroy
2015-12-12 10:22:27 +01:00
parent 085a52ea00
commit 80104d100f
6 changed files with 31 additions and 95 deletions

View File

@@ -1,52 +1,7 @@
class PagesController < ApplicationController
skip_authorization_check
def accessibility
end
def census_terms
end
def conditions
end
def general_terms
end
def privacy
end
def coming_soon
end
def how_it_works
end
def how_to_use
end
def more_information
end
def opendata
end
def participation
end
def proposals_info
end
def participation_facts
end
def participation_world
end
def verify
end
def blog
redirect_to "http://diario.madrid.es/participa/"
def show
render action: params[:id]
end
end