2 Replies Latest reply on Nov 7, 2014 4:32 AM by Kutir Mobility

    Getting syntax error in paginate function- Rhodes 4

    Girish Sunkeri

      Hello All,

       

      I'm using paginate function similar to the one shown below. It works fine on Android but when I run it on IPhone simulator i'm getting

      could not prepare statement : 1; Messge: near \"%\":syntax error

       

         :per_page => pageCount,

                        :conditions => [

                        "Name like ?",

                         "'%" + searchName + "%'",

                        ],