Button_link_to with :target _blank?

I am trying to display the generated pdf in another web browser window,
I
am using :

<%= button_link_to t("#{button}_print"), spree.admin_order_path(@order,
:pdf, :template => button, :target => ‘_blank’) %>

but it’s always displayed in the same current web window , where am I
wrong
?

thanks for feedback

sorry I guess wrong group, should be Spree group

Le mercredi 10 avril 2013 19:05:48 UTC+2, Erwin a crit :

I guess you should put the :target param outside the helper
admin_order_path. This way:

<%= button_link_to t(“#{button}_print”), spree.admin_order_path(@order,
:pdf, :template => button), :target => ‘_blank’ %>

2013/4/10 Erwin [email protected]

Ricardo Franco Andrade

( Web | Desktop | Game ) Developer

email: [email protected]
phone: +55 (86) 9436 0830
linkedin: http://www.linkedin.com/pub/ricardo-franco/61/2b0/857
skype: ricardo.krieg
github: ricardokrieg (Ricardo Andrade) · GitHub
twitter: twitter.com/ricardokrieg
facebooK: Redirecting...