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 <yves_dufour-ee4meeAH724@public.gmane.org>
> 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
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/bMOID1sh2O8J.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>
--
Ricardo Franco Andrade
( Web | Desktop | Game ) Developer
email: ricardo.krieg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
phone: +55 (86) 9436 0830
linkedin: http://www.linkedin.com/pub/ricardo-franco/61/2b0/857
skype: ricardo.krieg
github: https://github.com/ricardokrieg
twitter: twitter.com/ricardokrieg
facebooK: https://www.facebook.com/krieg.ricardo
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.