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 -
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.
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}
This application requires:
- Ruby version 1.9.3
- Rails version 3.2.13
Learn more about Installing Rails.
This application uses SQLite with ActiveRecord.
- Template Engine: ERB
- Testing Framework: RSpec and Factory Girl and Cucumber
- Front-end Framework: Twitter Bootstrap (Sass)
- Form Builder: SimpleForm
- Authentication: Devise
- Authorization: CanCan
The application is configured to send email using a Gmail account.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This is the only documentation.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
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.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Lorem ipsum dolor sit amet, consectetur adipiscing elit.