Sketchfably is a set up Rails helps to easily (and safely) embed Sketchfab models into records. Users can just paste the BBCode and Sketchfably will show it!
Add this line to your application's Gemfile:
gem 'sketchfably'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sketchfably
Find Sketchfab models by tag: @models = Sketchfably.get_models_by_tag("myawesometag")
Display embed code:
model.html
- Fork it ( https://github.com/[my-github-username]/sketchfably/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