search for: c42703

Displaying 3 results from an estimated 3 matches for "c42703".

Did you mean: 42703
2006 Feb 06
3
linked table confusion
...many :clients has_many :placements I am trying to create a view file for placements. I can pull columns from clients table in this view by using... <%= @placement.client.wholename %> but if I use <% @placement.case_manager.wholename %> I get error... RuntimeError: ERROR C42703 Mcolumn case_managers.placement_id does not exist Fparse_func.c L1359 Runknown_attribute: SELECT * FROM case_managers WHERE (case_managers.placement_id = 4) LIMIT 1 which makes sense in that I don''t have a ''placement_id'' column in case_managers table. But case ma...
2006 Feb 03
9
Because I''m very slow - trying to use console
...see how to use variables so I am using console to test things out... clients table - a column named first_name My very brief console session... >> clients = Client.find_by_sql("select * from clients where first_name = FN") ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn "fn" does not exist Fparse_expr.c L1034 RtransformColumnRef: select * from clients where first_name = FN from /usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in `log'' and a few lines of application tr...
2006 Nov 04
0
one to many relationship; has_one
...ontent and a location model using rails scripts and then edited the models as follows class Content < ActiveRecord::Base has_one :location end class Location < ActiveRecord::Base belongs_to :content end When I attempt to access content.location I get this error |RuntimeError: ERROR C42703 Mcolumn locations.content_id does not exist Fparse_func.c L1036 Runknown_attribute: SELECT * FROM locations WHERE (locations.content_id = 9) LIMIT 1| I have been able to work around this by defining the association in the content class as has_many :location, :finder_sql => ''SELECT...