Skip to content

Latest commit

 

History

History

example

Dub with Ruby on Rails

This example shows how to use Dub with Ruby on Rails.

Getting Started

  1. Set your DUB_API_KEY environment variable:
export DUB_API_KEY=dub_xxx
  1. Install dependencies:
bundle install
  1. Run the server:
bin/rails server 
  1. Create a new link:
curl -X POST http://localhost:3000/links

Resources

Contributing

Thanks for taking the time to contribute! Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody and are very appreciated.

Please try to create bug reports that are:

  • Reproducible. Include steps to reproduce the problem.
  • Specific. Include as much detail as possible: which version, what environment, etc.
  • Unique. Do not duplicate existing opened issues.
  • Scoped to a Single Bug. One bug per report.

License

MIT License