similar to: uninitialized constant

Displaying 10 results from an estimated 10 matches similar to: "uninitialized constant"

2006 Feb 27
0
auto_complete_field Vs text_field_with_auto_complete
Hi, I want to know which of the two methods, auto_complete_field and text_field_with_auto_complete best suits what I am trying to do. I have a model class called search (which doen''t extend ActiveRecord) which holds two parameters, category_string and postcode_string. I want my form to bind its values to these to values. I also want the category input to be an auto complete field
2007 May 14
0
Naming conflict between Ferret and my own model class
I model for maintaining searches in the database is call "Search" and Ferret also has a module called "Search". When I include Ferret in my "Search" model class, naming conflict came out and I got the following error: undefined method `new'' for Ferret::Search:Module in the SearchesController, this is because I want to create an instance of my
2007 Apr 12
19
Multiple Model Search
[from out-of-band communication with steven, just for the record] Hi! On Wed, Apr 11, 2007 at 01:47:49PM +0200, Steven Garcia wrote: > Hey Jens, > [..] > > 1. Is the Search model just an Active Record object or do I need to > set up a database for it as well (if so then with what columns)? No, that search model is just a plain class that backs your search form. If you want to
2006 Jul 31
2
updating records in a many-to-many relationship
Im trying to establish relationships in a many to many table. When I create a user, I do this to insert the different relationships between the user and sports: c.sports<<Sport.find_all_by_name(params[:sports]) where c is the user. The problem is, when I edit this user, and lets say he adds a sport, I can''t use this because I get an error saying that some records already
2006 Sep 09
1
options_from_collection_for_select
I''ve looked at the API on this but can''t quite see what I''m missing from my call <select id="pay[pay_id] name="pay[pay_id]"> <%= options_from_collection_for_select( Pay.find_all_by_name, "id", "name") %> #<- line 5 </select> is returning - Showing app/views/kr/index.rhtml where line #5 raised: wrong number
2006 Jul 29
1
creating and storing records in Ruby
I''ve read through my RoR books and I can''t seem to find the solution. This is a pretty basic, easy, and practical application for RoR. If you guys know of any resources on the net to answer these questions let me know. Question 1: Basically, I have a many-to-many relationship that I want to add records to. I use something like this to add records in the A_B table:
2007 Feb 13
1
observe_field and select box
Hi everyone, I am a newbee in RoR and i could use some help. I have a select box populated by: <select name = "test_company" id = "test_company"> <option selected value=test.company.to_s>Create New </option> <%= options_for_select Company.find(:all, :conditions => ["name =?", test.company], :order => "id asc").collect{|c|
2008 Jul 08
3
undefined method `name' ...........
Hi Community.... I''m new in this game, so this might be a easy question, but I have done my google, without result, so I will try this.... I''m learning ROR, and I''m using Patrick Lens ''Ruby on Rails'' book. (This is written for ror 1.x - and I''m using NetBeans 6.1 - ror 2.x - this might be the problem...) But... I have made this
2006 Apr 20
7
Rails + postgres case insensitive searches.
Hello all I am wondering how rails handles case sensitivity in databases. If I do a Person.find_all_by_name("tim") in mysql I would expect to get tim, TIm, and Tim. Do I only get tim in postgres? How do other people deal with this? Do you resort to find_by_sql for all your postgres queries to get case insensitive results?
2013 Feb 01
1
Wine release 1.5.23
The Wine development release 1.5.23 is now available. What's new in this release (see below for details): - HTTPS support no longer dependent on OpenSSL. - Support for event handling in the Mac driver. - A functional Netstat built-in application. - A bunch of C++ runtime math functions. - Various bug fixes. The source is available from the following locations: