Hi Folks, Good Noon, I want to download XML file, I used in my index, %a{:download => "weborder", :href => "/orders.xml?q=a10ie5Vb", :style => "float: left;padding: 0px;background:none;"} In my controller, def index @order = Order.find_by_cart_id(current_cart.id) if params[:q].present? if params[:q] == "a10ie5Vb" render "index" else render :text => "nodata" end else render :text => "nodata" end end This works. but only in Chrome. I want this to download all my browsers like ie 7 8 9,firefox,etc. Is there any other way?? Please advise. Thankyou. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/PIXGnkQk9fkJ. For more options, visit https://groups.google.com/groups/opt_out.
On Wednesday, January 23, 2013 9:28:00 AM UTC, Maddy wrote:> > This works. but only in Chrome. > I want this to download all my browsers like ie 7 8 9,firefox,etc. > > what do you mean by not working?Fred> Is there any other way?? > > Please advise. > > Thankyou. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/8MGNIVm6uZMJ. For more options, visit https://groups.google.com/groups/opt_out.
I should be downloadable ie, like an attachment file. But it just opened in new tab. On Wed, Jan 23, 2013 at 6:10 PM, Frederick Cheung < frederick.cheung-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Wednesday, January 23, 2013 9:28:00 AM UTC, Maddy wrote: >> >> This works. but only in Chrome. >> I want this to download all my browsers like ie 7 8 9,firefox,etc. >> >> what do you mean by not working? > > Fred > >> Is there any other way?? >> >> Please advise. >> >> Thankyou. >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/8MGNIVm6uZMJ. > > For more options, visit https://groups.google.com/groups/opt_out. > > >-- *"Attitude is a little thing that makes a big difference"* Thanks & Regards *Ashokkumar.Y* *ROR-Developer **email : ashokkumar-tks5Z7IV8F8RmelmmXo44Q@public.gmane.org* *Shriramits* * * -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.