similar to: send_file - PDF

Displaying 20 results from an estimated 8000 matches similar to: "send_file - PDF"

2007 Apr 23
4
send_file pdf problem
Hi, I am using send_file to allow users to download files from my website, please see code beloe: def download_document send_file("#{RAILS_ROOT}/public/test_form.pdf", :filename => "test.pdf", :type => ''application/pdf'', :disposition => ''attachment'', :streaming
2007 Aug 27
2
send_file : downloaded file cannot be open after upload OK
I easily implemented the upload , using the ''attachment_fu'' plugin... I can see and open the uploaded files (a pdf file 60k and a jpeg images 28k) now I try to implement the download action in my document_controller, I wrote : def download @document = Document.find(params[:id]) send_file(@document.full_filename, :filename =>
2006 Nov 04
6
image_tag keeping add ???? after the url it generates
hi, all, I have a problem with image_tag, the url it generates keeps adding ???? at the tail. e.g. src="/images/gicon.jpg?1153577588??????????" src="/images/gicon.jpg?1153577588?????????????????" I''ve checked the source code of image_tag, and couldn''t find any solution. The ???? is appended to the "source" parameter before it goes to the real
2009 Aug 03
5
Decimal datatype and trailing zeros
Hello I''ve encountered a little problem with zeros using the decimal data type Specifying a scale of 3 and inserting a number with 3 zeros after the point (for example 12345.000) it gets correctly stored in the database, but rails insists to show me the number only with the first zero after the point (12345.0) There is a way to tell rails to not truncate at the first zero?
2006 Aug 01
6
[OT] PDF''s not Downloading in Win/IE
I have a Rails app that''s working perfectly (http://amuinsurance.com), but on Windows IE and no other browser, if I go for the URL: http://amuinsurance.com/content/marine_insurance.pdf -- View this message in context: http://www.nabble.com/-OT--PDF%27s-not-Downloading-in-Win-IE-tf2034599.html#a5597794 Sent from the RubyOnRails Users forum at Nabble.com.
2011 Dec 19
10
Rails on iPad
Hi, I''d like to know if there is any way to develop an entire rails app in iPad. Maybe with an app, maybe with an online platform as Cloud9. I''d like to know what you think. Thank you, Rodrigo -- 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
2007 Jun 14
3
Are there any HTML+CSS to PDF converters in ruby
Hi, I tried PDF writer , but it doesn''t have HTML to PDF Converter. Infact it is a PDF writer itself not a converter.. I''ve HTML pages with rich css or Strings with html+css such that they are converted to PDF. The idea is that web is all about RGB color model and when it comes to Digital Printing its all CMYK color model. My html page with rich css in
2006 Nov 04
4
live search
hi all, i have implemented live search using scriptulous and i am getting the list the problem is that when i select an item from the list white spaces gets appended in front " item" of the selection in firefox and in opera front and behind " item " i printed the value in console and saw it gives "item" but in textbox after selection whitespaces gets appended
2009 Aug 03
5
webcam image capturing
Hi Could anybody please advice me to work with wecamera in Rails. What i want to do is to capture webcam images from a machine and send that data to a remote server there it needs to be processed. I have no idea of where to start.Please help Thanks in advance Sijo -- Posted via http://www.ruby-forum.com/.
2008 Nov 30
6
ActionController::InvalidAuthenticityToken?
Hi- I am trying to use AJAX calls to login and logout of my Rails app so that the form renders in the side bar when you are not logged in, and your "profile" renders if you are. It all works, but when you logout, and try and log back in, you get "ActionController::InvalidAuthenticityToken", in the development.log. What does this mean, I can''t figure out how to fix
2006 Apr 10
24
Proposal of "Resizable" javascript library
Hi, All. I''ve developed the small javascript library to make the widgets "resizable". Please try attached file or following URL URL: http://221.112.61.214/~kzk/others/mixi/resizer.html Now I wish script.aculo.us developers to merge this into the "script.aculo.us". Is there any chance of merge? Is this a right place to ask this question? Thanks in advance. Kazuki
2009 Jul 24
7
number_to_currency not working since 2.1.1
Back in 2.1.1 everything was sweet: Loading development environment (Rails 2.3.3) >> include ActionView::Helpers::NumberHelper => Object >> number_to_currency(12.3) >> "$12.30" Then I upgraded to 2.3.2 and: Loading development environment (Rails 2.3.3) >> include ActionView::Helpers::NumberHelper => Object >> number_to_currency(12.3) >> 12.3
2006 Jun 19
11
html to pdf?
in one of my apps i am currently using redcloth to use textile formatting on my content. i am wanting to add reporting to the system, but the content that prints out doesn''t have the formatting obviously that i can have with html. what''s a good solution for some kind of formatting where i can use it on both web and print? i''m using pdf/writer right now and i think
2006 Aug 08
2
send_file problem
I''m attempting to use send_file to send an image file from public/images. The file is world readable. I keep getting the following error: A ActionController::MissingFile occurred in account#current_logo: Cannot read file public/images/logo.png /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in `send_file'' I''ve tried supplying
2008 Feb 21
9
Difference between nginx and mongrel
Hi, I could never find out what''s the difference between nginx and mongrel. All my searches say "nginx is a HTTP server ..." and "Mongrel is a fast HTTP library and server for Ruby....". For me they both mean "...HTTP server...". I kept up with this question for some time till I came across this santence from the guys at Friend for Sale: -----------------
2007 Mar 14
9
file_field doesnt work inside form_remote_for
When I do file_field within a form_for things are fine... but within a form_remote_for, with nothing else changed, I find that the params does not even have the element document[uploaded_file] even though it is definitely present in the HTML source in the form. Obviously the file upload fails. Am I missing something? Or has someone else faced this? Or is this a known bug? Rajesh
2010 Sep 25
3
Factory_girl association with specific values
Hope this should be simple: I have a User model and a Role model. Factories for each. When I create a User using FG, I want to assign a specific role. Cant seem to figure out how to do this, getting errors like: uninitialized constant SysadminRole for doing things this way: Factory.define :user do |u| u.practice_id { |a| a.association(:practice).id } u.password ''password1''
2009 Jan 14
6
How do I change MYSQL startup options on Mac??? (can't work it out)
Hi, Can anyone help me out re how I change the startup options for mysql (v5.0) running on my Mac? (I just want to add the "--log" option is about it). I tried doing "sudo ./Library/StartupItems/MySQLCOM/MySQLCOM restart" however this started a 2nd instances of mysql & mysqld. Here is what I see start after Mac startup if this helps: $ ps aux | grep mysql _mysql 137 0.0
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'',
2009 Jul 13
12
.html/.html.erb/.rhtml to PDF
Hello All, I wanted to convert .html file into .pdf. is there any rails plugin ?? Thanks, Sandip R~ -- Ruby on Rails Developer http://sandip.sosblog.com http://funonrails.wordpress.com www.joshsoftware.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this