Ricardo Mejía
2013-11-27 15:30:16 UTC
I have 2 templates on my views/preinscripcions folder in a Rails 3 app and
the are both named index. One is the standard index page in html but the
other one is a Prawn template, which generates a PDF.
The problem is, when I click on a link formatted like this: '
http://localhost:3000/preinscripcions' Mechanize renders both the HTML and
the PDF file.
I'm clicking the link using agent.page.link_with(:href =>
'/preinscripcions').click, but I have also tried with agent.get() and the
same thing happens.
Is there any way in which I can only get the HTML template?
Ricardo Mejía
Analista - Programador
Universidad Dr. José Matías Delgado
Teléfono: 2278-1011 Ext. 188
Email: ***@ujmd.edu.sv <***@ujmd.edu.sv>
--
------------------------------
Este mensaje (incluyendo cualquier archivo adjunto) contiene información
confidencial que se encuentra protegida por la Ley. Si usted no es el
destinatario, o por error recibe el mensaje, por favor elimínelo y
notifique al emisor original de inmediato. Cualquier divulgación, difusión,
distribución, retención y/o copias del contenido se encuentra estrictamente
prohibido.
Abstenerse de incluir al final/pie de los correos, mensajes de tipo
político y/o religioso, ya que los mismos no estan relacionados con nuestro
trabajo.
Antes de imprimir este correo, por favor considere si es verdaderamente
necesario.
the are both named index. One is the standard index page in html but the
other one is a Prawn template, which generates a PDF.
The problem is, when I click on a link formatted like this: '
http://localhost:3000/preinscripcions' Mechanize renders both the HTML and
the PDF file.
I'm clicking the link using agent.page.link_with(:href =>
'/preinscripcions').click, but I have also tried with agent.get() and the
same thing happens.
Is there any way in which I can only get the HTML template?
Ricardo Mejía
Analista - Programador
Universidad Dr. José Matías Delgado
Teléfono: 2278-1011 Ext. 188
Email: ***@ujmd.edu.sv <***@ujmd.edu.sv>
--
------------------------------
Este mensaje (incluyendo cualquier archivo adjunto) contiene información
confidencial que se encuentra protegida por la Ley. Si usted no es el
destinatario, o por error recibe el mensaje, por favor elimínelo y
notifique al emisor original de inmediato. Cualquier divulgación, difusión,
distribución, retención y/o copias del contenido se encuentra estrictamente
prohibido.
Abstenerse de incluir al final/pie de los correos, mensajes de tipo
político y/o religioso, ya que los mismos no estan relacionados con nuestro
trabajo.
Antes de imprimir este correo, por favor considere si es verdaderamente
necesario.