search for: rangercomputer

Displaying 6 results from an estimated 6 matches for "rangercomputer".

2006 May 14
3
Beginner question on paginate with params and conditions
I am trying to do a simple search by product name. The first page returns fine, but when I try to go to any other pages of the search results, I lose the original search parameters from my search form and get NilClass errors. Here is the code in my controller: namesearch = "%" + params[:name].strip + "%" @product_pages, @products = paginate :product,
2006 Apr 19
2
Beginner problem with foreign keys
Hi, I''ve been trying to get this to work all night. I''ve made some progress by reading other posts, but I''m stuck now and can''t figure out what I am doing wrong. I have two tables: application_users and user_types. In my application_users table I have a field named "user_type_id". At first, I thought if I set up the foreign key with the correct
2006 May 09
1
Beginner questions on attributes and arrays
Hello, I am trying to do something and I''ve been reading my Agile Web Development with Rails book and doing internet searches for several hours now and I have made no progress. Here''s the issue: I have a table of sales reps that is linked to a table of territories. There are around a thousand territories that are numbered and each sales reps has many territories. I will
2006 May 07
5
File upload/database import
I have been using Ruby on Rails for around 6 weeks now (so far I love it), but I''ve gotten to a point in the application where I need to allow the user to upload comma deliminated text files that will get loaded into one of the database tables. Before I get started doing this, I was wondering anyone knows of any examples or tutorials that deal with this. I''d rather do it
2006 May 23
14
Learn Ruby before Learning Ruby on Rails ?
hello Friends, I am a newbie to "Ruby or Ruby on Rails". A J2EE application architect at my day job. A fairly experienced PHP web-developer as well. After reading into the many articles on Ruby/ROR, have to admit looks pretty good so far. Really serious about getting into this and possibly developing some good Web 2.0 applications. Just wondering the best way to learn Ruby on
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following examples I''ve seen all over the web, but I am getting an error. My code seems simple: def list @upload_pages, @uploads = paginate :uploads, :per_page => 20, :order => ''id'' end Yet I keep getting this error: ___________________________________________