I'm trying to display some static landing pages on my Rails application. As of now I'm putting all the static
match '', :to => redirect('/website/index.html')
match '', :to => redirect('website/index.html')
ERROR URI::InvalidURIError: the scheme http does not accept registry part
You need to define the folder that is to be used as public in
config/application.rb file as follows.
paths['public'] = 'website'
And then you can define your routes as
get '', :to => redirect('index.html')
Alternatively, you can put the whole thing inside the
frontend folder, this way there will be less chance of any name conflict if you have multiple static pages
# config/application.rb paths['public'] = 'frontend'
# config/routes.rb get '', :to => redirect('website/index.html')
Hope it helps.