• We are going to create the following in this tutorial: Ticket Model Ticket Controller Ticket Views Here we going to take the easy way out by having rails generate all the above for us, using a single command. 1. Open Terminal and key the following: -> rails g scaffold Ticket ticketnumber:integer ticketTitle:string ticketDescription:string status:string date:datetime […]

    Read More
  • From the start of this year, I will try to start writing more tutorial post instead of snippet of technology post. For a start, I will be talking about the recent Support Ticket System that I build on Rails. Duration: 30 mins Let’s create a new Rails application. 1. Open up Terminal, enter the following […]

    Read More
  • January 4, 2015 - admin

    WildCard Search in Ruby on Rails

    Wildcard Search Assuming that you have you have the following model: Model : Book Fields:  BookName Author PublishedDate Edition Typical, when you try to do a wildcard search you will do the following code below: Book.where(“BookName LIKE ‘%#{BookNameInput}%’) The above returns the following in terms of SQL -> SELECT “Books”.* FROM “Books” WHERE (BookName LIKE […]

    Read More
  • class AuthenticationsController < ApplicationController def create auth = request.env[“omniauth.auth”] user = User.find_by_provider_and_uid(auth[“provider”], auth[“uid”]) || User.create_with_omniauth(auth) sign_in_and_redirect(:user, user) end end   Add the line in bold to redirect!

    Read More
  • If you are using Devise as the authentication for your Ruby On Rails application and you are looking to implement OmniAuth, that allow the users to login with their Facebook or Google Account. But once you have all the codes and omniauth setup, on creation you will hit the following error: Validation Failed: Email and […]

    Read More
  • To load data via Ruby On Rails: 1. Create this a file name “import.rake” in the following location: App -> Lib -> Tasks 2. Place your CSV file in the following location: Public -> SeedData (create this folder) 2. This are the codes that should be in the import.rake files, note that the row[1] is […]

    Read More
  • I was playing around with Ruby on Rails (RoR) over the weekend and I wanted to populate some textfield on the form base on a certain dropdown list selection. After a couple of hours of research, I managed to piece together how it will work in RoR and I decided to share it here for […]

    Read More
  • Microsoft Exchange 2010 SP 2 stop working with .NET Framework 4.5, email stop working. By logging in the Exchange Management Console, we will notice that the database is unmounted and you are unable to mount it back on. To resolve this issue with Microsoft Exchange 2010, you need to update it with the Microsoft Exchange […]

    Read More
  • This article will cover the basic of adding the Three20 framework to your Xcode 4 solutions. A little background of this particular framework, quoting from the source. Three20 is a open source Objective-C library used by dozens of well-known brands in the App Store, including Facebook, Posterous, Pulse, Meetup.com, and SCVNGR. Three20 provides powerful view […]

    Read More
  • August 10, 2013 - admin

    Popovercontroller for Iphone

    I was searching for a good community control for the popoverviewcontroller seen on the ipad. I present to everyone, . It was so simple to get started with the above and you can remove the complexity in the developing customize UI and get along with your actual development work. Steps to get it working. 1. […]

    Read More
1 2 3 6