search for: servicerequest

Displaying 2 results from an estimated 2 matches for "servicerequest".

Did you mean: service_request
2006 Apr 27
0
text_field_with_auto_complete - NoMethodError in the model
..._request][:req_name] end auto_complete_responder_for_investigators renders the partial after doing a query. When I load the page, I get this: NoMethodError in Service_request#new Showing app/views/service_request/new.rhtml where line #12 raised: undefined method `req_name'' for #<ServiceRequest:0x7802a50> that''s because req_name is not a field in the table. So in my ServiceRequest.rb model, I have this: validates_presence_of :req_name Still not working... am I missing something here? Any help is appreciated! Thanks, Jin
2008 Nov 06
10
Rails 2.1.2 bug in include on has_many?
In my continued efforts to port my rails 1.x app to Rails 2.1.2, I keep running into what appear to be ActiveRecord bugs. I am using an :include on a :has_many definition: class Request < ActiveRecord::Base has_many :service_types, :order=>''service_types.id ASC'', :include=>:service_response [...] There''s no reason this wouldn''t be supported in