Month: March 2012

  • POST http://192.168.1.3:3000 406 (Not Acceptable) – AJAX with Ruby on Rails

    Just a quick post on an error I ran into today when trying to create an AJAX image upload with Ruby on Rails. When submitting an AJAX form I received the following error: POST http://192.168.1.3:3000/uploads 406 (Not Acceptable) It turns out that there is a fairly simple (and admittedly obvious) solution. Ensure that your controller…

  • Modal Popup – Twitter Bootstrap

    Just a quick post on how to create a modal popup using twitter bootstrap: Step #1: Add the following to a page element such as a link or button in order to open the modal: href=”modal_content_name” data-toggle=”modal” i.e. Add Image Step #2: Create a content div i.e. × Modal Header Test Modal Close Save Changes…

  • Unique Values – Ruby on Rails

    Just a quick post on how to select unique values in rails using the uniq operator: #All recent categories #Results Cars Trucks Cars Technology Phones Technology … #Unique recent categories Cars Trucks Technology Phones …

  • Popover Function – Twitter Bootstrap

    Just a quick post on how easy it is to implement a popover with twitter bootsrap: JavaScript: //Create tooltips for login/signup forms function create_tooltips(){ //Create vars var titles = [‘test title’] var contents = [‘test content’]; var fields = [‘#user_email’]; //Loop through each field and assign tooltip for(var i = 0; i < fields.length; i++){…

  • Allow HTML String – Ruby on Rails

    Just a quick post on how to prevent escaping for HTML within a string. Simply use html_safe?. i.e. The following will show the bold tags as text: <%= "GOOOOOOOGLE”> <b>GOOOOOOOGLE</b> Whereas once we add html_safe the text will be displayed in bold: <%= ("GOOOOOOOGLE”).html_safe?> GOOOOOOOGLE

  • Unable to Login to AppDesigner – PeopleSoft

    I couldn’t login to Application Designer today for some reason. I kept getting an “Invalid User ID and password for signon.” error despite my credentials being correct. It turned out that adding the EOPP_USER and PAPP_USER roles fixed the issue: 1: Navigate to the user’s profile (PeopleTools > Security > User Profiles > User Profiles)…

  • Access Log – PeopleSoft

    I came across a requirement today where I needed to find out when a user had last logged into PeopleSoft. The record PSACCESSLOG came in handy here, it stores all of the following: PSACCESSLOG OPRID: The users operator ID LOGIPADDRESS: The users IP address LOGINDTTM: A timestamp showing when the user logged in LOGOUTDTTM: A…

Create a website or blog at WordPress.com