RailsCasts Pro episodes are now free!

Learn more or hide this

Frank004's Profile

GitHub User: Frank004

Comments by

Avatar

how can I use will_paginate with ajax for this.

Avatar

Hi otagi I get this error OpenURI::HTTPError 403 Forbidden

def inspections_rows
    [['Porciento','Inspección','Fecha','Gerente',{:content => "Cliente", :colspan => 2},'Cantidad de Áreas']] +
      @inspections.map do |inspection|
       [percentage(inspection.inspection_score),inspection.name, inspection.date,inspection.manager,inspection.client,
       image_cell(inspection.client_sign(:small).to_s.sub!(/\?.+\Z/,'')),inspection.inspection_sections.count]

    end
  end

  def image_cell(image_url)
    {image: open(image_url), fit: [IMAGE_SIZE, IMAGE_SIZE], position: :center}
  rescue SocketError
    ""
  end
Avatar

Looking for a way to add to my Table a remote image from s3 to my prawn pdf.

Avatar

I like to change the devise to es.yml
and
any idea on how to use my on layout view for the sign in