public
Description: A Rails Plugin to allow for drop-in ticket creation from a Rails application to the Lighthouse issue tracking system
Homepage: http://www.iterativedesigns.com/QuickTicket
Clone URL: git://github.com/voodootikigod/quickticket.git
Click here to lend your support to: quickticket and make a donation at www.pledgie.com !
voodootikigod (author)
Sun Nov 30 17:42:23 -0800 2008
commit  c09ae7f1ce96d798589b2a76d639d97a96b222b4
tree    4932985ed106c4886f144d60e3735ff82eb088b5
parent  f57747330dd8c3a6ff3d21b9127d7e5f14f869fb
name age message
file .gitignore Thu Mar 20 11:49:35 -0700 2008 Adding appropriate git ignore [Chris Williams MBP]
file LICENSE Tue Mar 18 20:00:40 -0700 2008 First Commit [Chris Williams MBP]
file README.markdown Wed Mar 26 16:48:54 -0700 2008 Improving readme (forgot the routes.rb addition... [voodootikigod]
file init.rb Thu Mar 20 12:06:29 -0700 2008 Fixing items [Chris Williams MBP]
file install.rb Wed Mar 26 16:49:30 -0700 2008 Updating the change to markdown in install.rb [voodootikigod]
directory lib/ Loading commit data...
directory public/
README.markdown

QuickTicket

QuickTicket is a Rails plugin that utilizes the Lighthouse API to provide ticket creation within a Rails application. This will create a little icon on the bottom right of the application screen (which scrolls) that will display a pane when clicked. This will allow the user to provide their comments/issues/bug into the pane which is then submitted to your Lighthouse account for the project.

What gets installed

Once you have the plugin installed, you will find the following two new assets created into your application

  • ./public/stylesheets/quickticket.css - This holds the default (and configurable) styling for the application, update it as you see fit or configure it not to be loaded.
  • ./public/javascripts/quickticket.js - This holds the necessary javascript, written to work with the Prototype library. You can enhance or modify it (switch to jQuery) but keep the namespace and methods the same.

Also new parameters have been added to your environment.rb file which will allow you to configure QuickTicket. You should probably go update those now, otherwise it will act like its working, but fail.

What you need to do

It feels dirty adding routes to your application, so we are just going to make you do it. This route will just allow the app to call back into the lighthouse ticket controller, which IF the environment is correct, will execute, otherwise it will redirect back. Essentially said, if someone tries to access the route when not in the right environment, the system will block it (p0wn3d). So make sure you add this line to your routes.rb file:

map.create_ticket "create_ticket", :controller=>"quick_tickets", :action=>"create"