A set of Rake tasks for generating static pages with Rails.
Add to your Gemfile:
gem 'rails-static'
Add to an initializer:
if defined?(RailsStatic)
RailsStatic.configure do |config|
config.index = 'index'
config.routes = ['/']
config.extension = '.html'
end
end
And run:
rake static
Name of generated file for urls ending in /
. Default is index
Array of app urls to request. Request the root route by default.
Extension of generated files. Default is no extension.
rails-static is released under the MIT License.