similar to: nothing uploads.....why? (newbie question)

Displaying 20 results from an estimated 6000 matches similar to: "nothing uploads.....why? (newbie question)"

2006 Jul 21
1
Newbie Question about Ruby on rails---cant upload data
Hi everybody, Ruby on Rails is my first programming lenguage...it looks to me like i''m missing the big picture. I''m trying to upload a file into a database. In my app. my user needs to select a file and upload it...however I only want him to upload certain information from that file. I have written code to parse only string tables from that file. For example, the table
2006 Aug 02
3
using migration--newbie
Hi all, (I''m new with RoR) I''m using a migratio to import data into a database but nothing is being happens. I''m importing strings from a parsed file. this is what I have: controller: class UploadController < ApplicationController def create table = { } params[:localized_string][:data].each_line do |line| if line =~ /^\s* " (.*?) "
2007 Feb 20
1
error message for record not found ?
I''m using backgroundrb for session management and deletion of visitor-entered information when a session is abandoned. The visitor can either click a button to end their session and remove their data, or backgroundrb will do it for them after 5 minutes of inactivity. Everything''s working fine, I think. If the visitor explicitly logs out, then when the worker checks for their
2006 Aug 09
3
Need help with backgroundrb''s concepts and installation
Hello backgroundrb-devel my name is Teeranit Ruangdet. I''m fairly new to Ruby on Rails so please bear with me here. I''m currently on a project where I need to import a whole bunch of records from spreadsheet(.csv) and save them in the database. My problem is that while I''m importing (huge file...say 5000 employees), no one else can access the website (it basically block
2006 Aug 13
4
ruby script / console and models
Is it possible to access models when your in the console ? It seems like that is not possible and I need to create the classes within the console. Am I doing something wrong ? Stuart
2006 Feb 16
4
Help with "Updating Gem Source Index"
After hearing so much about RoR over the last few months, I finally decided to give it a try. I decided to follow the "Rolling with Ruby on Rails" article on ONLamp.com to get up and running. Unfortunately, since that fateful decision, I have run into nothing but obstacles. First, I downloaded and installed Ruby. That was my last success event. Then, I typed "gem install
2006 Jan 24
18
Can''t install rails, instructions in the book are wrong....
I can''t even get Rails installed in Windows XP. I follow the directions in "Agile Web Development With Rails", I download Ruby, then RubyGems, and I install those, and I then type the command that came right out of the book. C:\ruby>gem install rails --include-dependencies and it doesn''t even work: C:\ruby>"C:\ruby\bin\ruby.exe"
2006 Jul 03
2
Agile Web Dev on Rails - ActiveRecord::RecordNotFound Prob
Hi there I''ve also made a start on the Agile Web Dev using Rails book! I''ve been hit with a problem when hitting the ''Add to Cart'' button - I get the following error message: ActiveRecord::RecordNotFound in StoreController#add_to_cart Couldn''t find Product without an ID RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full
2006 Jul 31
20
RADRAILS installation guide
hi all is there eany installation guide that explais how to set up RadRails and how to create a RoR project with eclipse? thanks -- Posted via http://www.ruby-forum.com/.
2006 Jan 10
13
InstantRails 1.0 problems...
Hi, I have installed InstantRails 1.0 Final on Win XP (Home SP2) and Win 2K 2000. I was able to get the two apps (cookbook, typo) work fine with Webrick but not with SCGI server. I tried changing the SCGI settings through the InstallRails.exe console so that the Runtime Mode: would be "development" instead of "production" and SCGI port: to 5000 instead of 9998.
2010 Apr 01
0
OpenSSH Coredump and "Bad packet length" errors seen on 5.10 sparc sun4v (Generic_125100-10)
Hi, OpenSSH coredump was seen on our customer's side causing ssh login slow and manual command not workable. We need help to identify the root cause. Thanks!! >> Background: 1) server info: # uname -a SunOS owtnmncccm0cnmo 5.10 Generic_125100-10 sun4v sparc SUNW,Netra-CP3060 bash-3.00# /usr/local/bin/ssh -v OpenSSH_4.6p1, OpenSSL 0.9.8e 23 Feb 2007 bash-3.00# cat
2006 Jul 28
0
newbie----what''s wrong with my code
I know i''m new with ruby and i''ve been kind of confused with how rails manages all the details. I want to store the key-values in different columns on my database so that when I enter a eky, it gies me the corresponding value. this is what i have: my view: <h1>Importing Strings<h1> <%=error_messages_for("string_record")%> <%=
2006 Jul 25
1
newbie--how do i load a parsed file?
Hello there, I''m new with ruby on rails and i don''t know how to load up a parsed file into my database. I have my ruby script that parses it but don''t know where to put my code, or how to combine it with view/model/controller. this is what i have: class Description < ActiveRecord::Base def import_strings(a_file) table = { }
2006 May 15
8
Databases... write master, multiple read-only slaves.. will this work?
Hi all - I have a need to have my models write to one database and read from another. From what I''ve read, Rails doesn''t do this out of the box. I came up with something that does work, but I''m wondering if there is something I''m missing in the code below that''s going to bite me, such as establish_connection creating a huge number of objects as
2006 Nov 16
7
Negating or removing classes
I have a situation where I''d like to perform some actions when a node is removed from a class. I have a few (homegrown) services that install ssh keys in authorized_keys and it''s possible that a node may have the service enabled and disabled during it''s lifetime. When disabled I''d like to clean up the ssh keys for security reasons. This brings up the broader
2006 May 05
3
Stop browser timeout with large file uploads + processing?
Hi Im uploading a file to my rails app, i''s usually a large file, 5-50mb. Once the file has been uploaded it must be parsed and processed, this can take a very long time, 1-20mins. The problem is that most of the time my browser timeouts. Im not really sure how to solve it. One idea is that i have a script run constantly on the server that checks for uploaded files in a
2006 Aug 13
3
Render nothing; go nowhere
I am building an application that requires a C++ program to access the Rails web application using POST. Now, I just added user authentication to the mix and it has made things more interesting. I''m using basic authentication as shown in the AWDWR and Rails Recipes books. I can now get my C++ program to submit the user credentials to the login/login page. All I want the login page
2006 Jul 14
3
Migration not updating fields
So I have this fairly basic migration bit of code class AddCounterCache < ActiveRecord::Migration def self.up add_column ''products'', ''backlog_items_count'', :integer, :default => 0 end def self.down remove_column ''products'', ''backlog_items_count'' end end What I want to do in that is automatically
2006 May 27
1
Segmentation Error help please
Hello, when I am implementing ROR on Windows, a segmentation error keeps popping up, which stops my applicatoin. the message is like this on the command terminal E:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/ transactions.rb:84: [BUG] Segmentation fault ruby 1.8.4 <2005-12-24> [i386-mswin32] This application has requested then Runtime to terminate it in
2006 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help? I''m trying to get the cookbook application to work via a Postgresql db. But get the following error when trying to access http://127.0.0.1:3000/recipe/new Errno::EINVAL in RecipeController#new Invalid argument