Displaying 20 results from an estimated 5000 matches similar to: "Downloading Files"
2006 Nov 06
4
Errno::EBADF (Bad file descriptor)
I posted this to the discussion forum on rubyforge.org, but it appears that
it would have been better to post here.
Does anyone have any advice on how to resolve the problem reported at
http://rubyforge.org/tracker/index.php?func=detail&aid=6284&group_id=1306&atid=5145?
Thanks,
Justin
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 02
6
Is there a link_to ''external url''?
I''ve checked the Rails documentation but find no mention of link_to
''external url'' or equivalent. Does rails have a built in method to do
this?
thanks
-Lindsay
--
Posted via http://www.ruby-forum.com/.
2006 Feb 10
2
file column within link_to
Hi,
I correctly see:
image_tag url_for_file_column("element", "picture_url", "medium")
now I need to make it a link so I''ve used:
<%= link_to(image_tag url_for_file_column("element", "picture_url",
"medium"), {:controller => "products", :action => "sec_level",
:level_id => @element.id}) unless
2006 Apr 16
4
Preventing crawlers on link_to''s
My understanding was that using the :post=>true on a link_to() was supposed
to prevent search engine crawlers from triggering the link. However, this
does not seem to be working for me. Is there something else that I should
be/can be doing to accomplish this? Thanks.
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2020 May 27
2
Adobe digital editions?
On Wed, 27 May 2020 14:13:34 -0500
Jon Pruente wrote:
> A major issue is that it's not just reading the file, it's that ADE is
> needed to even authorize and fulfill the download. Then the possibility of
> DRM on top of that.
While I've never tried it, it's my understanding that you can use calibre to remove the drm encryption on a purchased ebook so you can read it with
2006 May 22
5
download manager?? anyone?
Hello all,
i have been searching for some time now on how to upload files and then
display them to be downloaded, haven''t had any luck. it seems all the
documentation is for uploading and displaying pictures. is this the same
thing? i''m lost... any help would be greatly appreciated.
Jon
--
Posted via http://www.ruby-forum.com/.
2005 Dec 12
7
Calling absolute links
I have a primary layout that I''m using in several controllers. On my
sidebar I have a link that I set up as follows:
<div id="sidebar">
<%= link_to("Items", :action => "list") %>
</div>
Everything is ok when I call it from my primary controller, but since I
am also calling the layout from a second controller that does
2020 May 27
3
Adobe digital editions?
"Robert Heller" <heller at deepsoft.com> wrote:
> Are the books epub type files? If so, you can install fbreader from
> epel.
Can I second this suggestion? What kind of files are you trying to read?
--
Yves Bellefeuille
?<yan at storm.ca>
2007 Aug 27
1
Send_file() method for downloading any file
HI,
I need to know how to download any file using send_file() method.The
code I have shown below is for a specific file........how ever I need it
for any file.
THE CODE
........
def download_files
send_file(''D:/hr/Handbook.doc'',
:filename => params[:filename] ,
:type => ''application/octet-stream'',
2011 Jul 24
4
Downloading files not stored in database?
Hello list,
I am trying to add functionality to my application that will allow users
to download files that are not stored in a database.
All the examples I have found find the file by ID. which I can not do.
Here is my code from the view:
<h1>Browse files for download</h1>
<% form_for(:download, :url=>{ :controller=>"download",
2006 Jan 19
10
Where to place uploaded files for later download?
Hi there,
I am working in a RoR application which allows certain users
to upload files. Currently I store these files
in a directory called "files". This directory is located in
the RoR application directory:
rails/rails_application/files
So users don''t have access to them.
Now I want users to be able to download some of these files
(they will search based on some
2014 Jun 20
2
Como construir una curva ROC
Hola!
Tengo que hacer una curva ROC com unos datos que obtuve de hacer una macro
de excel y aplicar unas reglas, y basicamente tengo que a partir de la
variacion del tiempo y la velocidad del barco obtengo diferentes
porcentajes de true positives (TP) y false positives (FP) y con eso deberia
de construir una curva ROC.
Dada mi ignorância en este tema, no se muy bien por donde empezar , estuve
2006 Feb 22
0
[DEVELOPERS NEEDED] Podcasting Website
I''m wanting to build a community based website where users can create
podcasts, similar to odeo, but I want it to be alot easier for the users
to find podcasts or create their own.
I''m in need of a couple developers and a designer. I''m a developer
myself, but am looking for a couple people that know rails inside and
out
It''s a non-paid deal, it would just
2008 Jul 04
9
file upload
is there any link for step by step guide in file upload in database ...
im follwing the link
http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm..
which shows file upload into folder not in database ..pls help..
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
2013 Mar 15
5
link_to should have its body and url arguments reversed
I think the link_to helper method is quite confusing with its arguments
order:
link_to body, url
link_to "Click me", @person
Why is it thay way round? I want to make a "link to [the] person", so I
would expect the order to be:
link_to @person, "Click me"
It reads much more natural. You don''t "link to [the] body", you "link to
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this:
<%= link_to @company.name, @company %>
to this:
<%= link_to :name, @company %>
The symbol indicates the method to be called on the object passed in
the link_to options.
http://dev.rubyonrails.org/ticket/8789
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
2006 Aug 18
3
equivalent of "puts" in rhtml
Hi everyone,
This seems so basic, and yet I can''t quite figure it out.
Say I have some code in an .rhtml document:
<%=
if @session[:user_id]
link_to somethingA
else
link_to somethingB
link_to somethingC
end
-%>
Only the link to somethingC will show in the second case. I understand
that the last thing returned from that else block is that last line. In
php i could just add
2006 Jun 09
5
Using link_to with an image tag & link text
Hi ,
I was trying to use link_to along with image_tag
to setup a link that would open in an external window.
But I was unable to make a link using both text & an image
So my current workaround looks like this inside a partial
where link is http://foo.com & text would be descriptive
<img src="images/arrow.gif" border="0"/> <%= link_to(text, link,
:popup
2006 Jul 05
1
send_data image
I''m trying to display an image in a view from MySQL, but I''m not sure
where to put the send_data call.
Any help would be great. :)
--
Posted via http://www.ruby-forum.com/.
2009 Jul 20
2
render :file in another window
is there a way to render a file in another window
I wrote :
def show
@asset = Asset.find(params[:id])
respond_to do |format|
format.html
format.xml { render :xml => @asset }
format.pdf {render :file => @asset.data.path }
end
end
this render in the current window....
thanks for your suggestions
erwin