similar to: Newbie file download question

Displaying 20 results from an estimated 10000 matches similar to: "Newbie file download question"

2006 Nov 30
3
Strange send_file problem
Or perhaps I am stumbling in newbie fashion (tho I have active_merchant and a store site basically up and running in development mode - still I don''t feel I always understand what is going on.) So, when I have send_file(filename, :type => ''application/x-zip'') redirect :action => index the send_file seems to hang, rather than complete. I''m deducing
2005 Jan 19
1
Problem with ActiveRecordStore
I''m having an issue using the ActiveRecordStore for sessions with Rails 0.9.4.1. When I setup the session object during login I get the following stack trace: IndexError in Login#auth string not matched /app/controllers/login_controller.rb:26:in `auth'' gems/gems/actionpack-1.3.1/lib/action_controller/base.rb:596:in `send''
2006 May 14
1
send_file, RRDtool, require or session problem
Hi all, I am new to RoR and ruby, but am a very experience PHP developer. Let me give an overview of the problem. I have a model Latency, which contains username, graph_name so the logged in user can see his/her latency graphs. In my ViewController I have a fuction view_latency which pulls the correct latency object and runs latency.overview. latency.overview creates a .png file in /tmp, and
2006 Feb 28
1
ArgumentError (string contains null byte) -- file upload problem
Hi, Controller code: if params[:main_image] image = Image.new image.blob = params[:main_image].read @product.main_image.destroy if @product.main_image @product.main_image = image end When I try to display the image using send_data, I get the following error: ArgumentError (string contains null byte):
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had no problem with mysql connection. It''s a Mac OS X 10.4 box having rails installed and updated by gem. I use a remote mysql server no local instance installed. Here''s my config: development: adapter: mysql database: hdchat host: 10.0.0.1 username: webuser password: test: adapter:
2005 Dec 07
0
TypeError during a redirection
Hi, I have a problem with Rails 0.14.3. I have an application which uses 2 databases : oracle and postgresql. I can connect to the both databases and use them. The application works correctly (I can reach the controllers, add records in the databases without errors) but during or after a redirection I receive an error. I check with breakpoint and the log, I see in the log : "Redirected
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
2005 Jul 07
3
NameError Exception
Ruby/Rails n00b here so go easy on me... I''ve been wracking my brain trying to figure out what is wrong here. I''ve checked all my models for the appropriate belongs_to, has_many, etc. I''ve checked to make sure I''m using singular and plurals in the right spot. I''ve checked my syntax around all my "within"''s and nothing seems to fix
2005 Dec 01
0
Troubleshooting "undefined class/module"
I''m having a bit of a headbanger here... maybe someone can help. A class in a fairly complicated existing Rails app that I''m working on seems intermittently not to load. The error is basically the following: undefined class/module InnerPackage c:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.11.0 /lib/action_controller/session/active_record_store.rb:75:in `load''
2005 Dec 20
0
2005 a send_file odyssey (or Rails and Apache don''t always play well)...
Hi, I''m developing a Rails application that (amongst other things) lets users download media files. These files range in size from a few kilobytes up to several gigabytes. All this development is taking place with Rails 1.0 on a Solaris host with Ruby 1.8.2 and Rails mode set to "development". I''m using the Rails send_file method to send each file with these
2006 Jul 21
0
[PATCH] TestResponseBehavior#binary_content calls block improperly
(In lieu of the broken bug-tracker) TestResponseBehavior#binary_content calls the block generated by send_file with no parameters. But the block created at http:// dev.rubyonrails.org/browser/trunk/actionpack/lib/action_controller/ streaming.rb#L68 expects a response and an output stream. The following patch corrects the block.call in binary_content at
2006 Jun 25
1
text_field_with_auto_complete nonsense (newbie question)
Hi everyone, I have been introduced to ruby on rails a couple of days ago and it really brings out the fun in programming for the Web. I''m trying to implement a text_field_with_auto_complete as described in script.aculo.us , as follows: controller: class SearchController < ApplicationController auto_complete_for :recipe, :name end search.rhtml: <html> <head><%=
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody, I''ve been reading lot of material about Ruby on Rails, and it looks like really rocks. I''ve downloaded the one-click version for Windows and started to build the example cookbook app, found in: http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Everything looks good, but when I''m trying to create a new Recipe
2006 Aug 13
5
Newbie question: scaffold not working
I went through a tutorial at http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 to get started with RoR. I really like the idea of the scaffold construct, but I can''t seem to get it to work the way it was described in the tutorial. I''ve got a mysql database that is properly configured, and a table called ''quotes'' with a column called
2006 Jan 15
0
Newbie: undefined method `body=''
I''m new to rails and am trying to set up a many-to-many relationship between questions and possible answers. I have the questions side set up, and am able to display the range of answers with checkboxes, and it''s all working well, but when I try any of the CRUD operations (edit, new...) on the answers side I get: undefined method `body='' for
2006 Jan 16
1
Newbie: undefined method (backtick)body(quote) equals error
I have set up a simple test of a questionnaire; I have a set of questions which have a many to many relationship with a set of possible responses. I have it working so a user can set the range of responses for a given question, but when trying any of the CRUD operations on the responses side, I get a cryptic error, to which I see no reference to online. Thanks for any tips that may clear
2006 Mar 21
2
Rails newbie can''t initialize a new Paginator object
Hi all, I''m using ruby 1.8.2-15 and a recent rails 1.0 download. I''m trying to implement the Classic/Custom pagination in a list action. Here''s my code: def list getSearchTerms # NOTE: @params[:search_results] is an Array of product_data objects # returned by a search action. @results = @params[:search_results] if @results.nil? then # The default
2006 Jan 27
5
Newbie:Adding a new Table-Strange Error
Hi Everybody, I am a newbie in this list so please forgive me if this is a lengthy message. Currently I am working on a project at my work place that includes viewing some oracle tables(I do not have control over to rewrite the tables) and searching the tables based on a given criteria with Rails. Up untill now everything was working great. The database consists of a lot of tables but I was
2005 Dec 06
4
Errno::E232 (The pipe is being closed.)
I get this error on occasion using both Webrick and Apache2/FCGI: Webrick Debug: [06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is being closed. (Errno::E232) [06/Dec/2005:07:46:19 :: 216] Dispatcher failed to catch: The pipe is being closed. (Errno::E232) C:/MyApp/Server/public/../config/../vendor/rails/actionpack/lib/action_controller/cgi_process.rb:158:in
2006 Jan 22
2
a newbie doomed in the first introduction to rails.
Hello, Thank you for the fast responses, I really appreciate. I really enjoy being a part of such a great community. I still could not solve my problem. To make sure that I can not connect beacuse of access rights, I have started mysql server --skip-grant-tables option. (I have read the part of the manual about access rights, which I was to read in this list, but 4 AM in the morning, I had hard