Sample web-to-lead capture plugin for Fat Free CRM
=== Web-To-Lead Capture Plugin for Fat Free CRM
This plugin shows how to implement Fat Free CRM application controller
callback hook to capture lead data submitted from remote form. For more
information about Fat Free CRM visit http://github.com/michaeldv/fat_free_crm/tree/master
=== Installation
The plugin installs just like any Ruby on Rails plugin packaged as git.
Assuming that you have Fat Free CRM up and running:
$ ./script/plugin install git://github.com/michaeldv/crm_web_to_lead.git
The sample plugin will be installed in vendor/plugins/crm_web_to_lead directory.
=== Quick How To
To submit a lead remote form should POST two extra hidden fields to
identify the user who will own the lead:
Two more hidden fields specify redirection URLs to handle successful
submissions and possible validation errors:
The following sample is a good start to build your own lead capture form.
Replace question marks with the actual values of +password_hash+ and
+password_salt+ as set in +users+ table. Successful lead submissions
get logged in Rails log file.
Enjoy!
Copyright © 2009 by Michael Dvorkin, released under the MIT license.