search for: company_controller

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

2006 Jul 29
0
displaying select value and debugging RoR application
Folks, I am running into the following problem. I have a company model that has_many addresses and address belongs_to company (it also belongs to a User model but I assume that is irrelevant to this issue). I am in the list_companies view of the company_controller. When the user selects a company from the drop down I dynamically update the cities dropdown for the cities that the selected company has offices in using an onchange handler and remote_function call. However the problem is that I can''t seem to get the city names displayed in the modified...
2006 Mar 23
5
Polymorphic associations
...tive_support/core_ext/hash/keys.rb:48:in `assert_valid_keys'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/associations.rb:438:in `has_one_without_reflection'' (eval):5:in `has_one'' #{RAILS_ROOT}/app/models/person.rb:4 #{RAILS_ROOT}/app/controllers/company_controller.rb:7:in `list'' -e:3 -- Posted via http://www.ruby-forum.com/.
2006 Jun 22
11
Help please
Getting this error: SyntaxError in CompanyController#positionslist (eval):1:in `compute_type'': compile error (eval):1: parse error, unexpected tINTEGER Object::2 I could not find anything out about it (googling) and it''s not the clearest error message. Not sure if it''s related to an expected data type but that wouldn''t make sense. The only other thing I can