Giter Club home page Giter Club logo

quickticket's Introduction

QuickTicket

This fork of the plugin was updated for use with Rails 2.3.2, specifically the Lighhouse Ruby wrapper classnames were updated to play nice with newer Rails. Otherwise, you would get a “NameError unintialized constant” error.

This plugin makes use of AuthenticatedSystem (restful_authentication) and thus requires a user to be logged-in in order to use it. Since there is no flash warning about this out-of-the-box, you can simply add this fix to the application layout in the head:


<style>
  <% if !logged_in? %>
    #bug_button {display: none}
  <% end %>
</style>

This will hide the feedback button unless the user is logged-in.

Dependencies

  • restful_authentication

If using jQuery:

Overview

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"

quickticket's People

Contributors

crossblaim avatar voodootikigod avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.