A model for your robots.txt and a view to display it
Add this line to your application's Gemfile:
gem 'seo_robots'
And then execute
$ bundle
Or install it yourself as :
$ gem install seo_robots
delete robots.txt from your public folder
rm public/robots.txt
create a SEO::Robot record
SEO::Robot.create(content: "your content here")
Tests
$ rake test
- Fork it ( https://github.com/siliconsalad/seo-robots/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request