I am using highvoltage gem
for static page serving. Its working but the url is ugly. Currently the url
is like bellow:
localhost:3000/pages/terms-and-conditions?locale=en
But i want the url to be like bellow:
localhost:3000/en/pages/terms-and-conditions
In my routes file i wrote
scope ":locale", locale: /en|bn|hi/ do
match "pages/:id" => 'pages#show', :as => :page, :format => false
end
then in view i wrote:
<%=link_to "Terms & Conditions", page_path(:id=>'terms-and-conditions')%>
in pages controller i wrote
def show
render params[:id]
end
what can i do now to solve this problem