Only use for testing purposes – you’ve been warned.
Definitely not production worthy at all, but enough to give you the flavour.
Issues will be tracked via this github project’s issue tracker, so feel free to contribute issues during the testing phase.
Rails Plugin Dependencies
Having used the built in rails engines feature of 2.3.2, you’ll need the following two plugins available.
- (http://github.com/technoweenie/restful-authentication/tree/master “technoweenies restful-authentication”)
- (http://github.com/mislav/will_paginate/tree/master “mislav’s will_paginate”)
These are really standard plugins and you may have them installed already.
Set up the two plugins above first
Then it’s just the usual command:
script/plugin install git://github.com/nerbie69/active_affiliate.git
Run the following rake task to get your database migrations ready:
That should be it.
More to come but check out the routes, and setup your affiliate_settings for sure.
One last thing will be adding this code to application_controller.rb
#check for an affiliate link on every login. if found set the session variable.
##check for affiliate links
session[:affiliate_id] = params[:affiliate_id] if params[:affiliate_id]
this will change i’m sure from session to cookie. There will also be more info about hooking this into your shopping cart, or whatever, so that people can get credit.
Hell it’s a start :-)