Skip to content

This is a very simple app for referral and/or affiliate tracking in rails. I wanted to add a dropbox style referral option to an application. There is a blog post which describes how can you roll your own.

Notifications You must be signed in to change notification settings

geniuskidkanyi/rails-referral-tracking

 
 

Repository files navigation

This is a very simple app for referral and/or affiliate tracking in rails. I wanted to create a dropbox style referral option to an application.

The basic idea is that the devise user id is the referral code. When a user logs in, their referral code is in the header. When a new user signs up via that referral link, the referral id is stored.

This app was built on top of the RailsApp with Devise, CanCan and Bootstrap pre-intalled.

I did a short blog write up as to how it was created -

http://danvoell.com/dev/2013/06/simple-affiliate-and-referral-tracking-with-devise-in-rails-with-a-hint-of-cookies-and-session-variables/

I am a hack developer at best if you have ideas for improvements, by all means go for it, or let me know what I should do.

Thanks!
Dan

This application was generated with the rails_apps_composer gem provided by the RailsApps Project.

Diagnostics

This application was built with recipes that are known to work together.

This application was built with preferences that are NOT known to work together.

If the application doesn’t work as expected, please report an issue and include these diagnostics:

We’d also like to know if you’ve found combinations of recipes or preferences that do work together.

Recipes:
[“controllers”, “core”, “email”, “extras”, “frontend”, “gems”, “git”, “init”, “models”, “prelaunch”, “railsapps”, “readme”, “routes”, “saas”, “setup”, “testing”, “views”]

Preferences:
{:git=>true, :railsapps=>"rails3-bootstrap-devise-cancan", :database=>"sqlite", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :starter_app=>"admin_app", :form_builder=>"simple_form", :quiet_assets=>true, :local_env_file=>true, :better_errors=>true, :dev_webserver=>"webrick", :templates=>"erb", :continuous_testing=>"none", :rvmrc=>false}

Ruby on Rails

This application requires:

  • Ruby version 1.9.3
  • Rails version 3.2.13

Learn more about Installing Rails.

Database

This application uses SQLite with ActiveRecord.

Development

  • Template Engine: ERB
  • Testing Framework: RSpec and Factory Girl and Cucumber
  • Front-end Framework: Twitter Bootstrap (Sass)
  • Form Builder: SimpleForm
  • Authentication: Devise
  • Authorization: CanCan

Email

The application is configured to send email using a Gmail account.

Getting Started

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Documentation and Support

This is the only documentation.

Issues

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Similar Projects

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Contributing

If you make improvements to this application, please share with others.

  • Fork the project on GitHub.
  • Make your feature addition or bug fix.
  • Commit with Git.
  • Send the author a pull request.

If you add functionality to this application, create an alternative implementation, or build an application that is similar, please contact me and I’ll add a note to the README so that others can find your work.

Credits

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

License

Lorem ipsum dolor sit amet, consectetur adipiscing elit.

About

This is a very simple app for referral and/or affiliate tracking in rails. I wanted to add a dropbox style referral option to an application. There is a blog post which describes how can you roll your own.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 82.9%
  • HTML 11.3%
  • Gherkin 3.3%
  • CSS 1.4%
  • Other 1.1%