search for: companycontroller

Displaying 4 results from an estimated 4 matches for "companycontroller".

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'&...
2006 Jun 21
0
Scaffold error
...9;ve done wrong. I was attempting to create a "static" scaffold (already have the dynamic one) and received an error message: "error Before updating scaffolding from new DB schema, try creating a table for your model (Company)" I already created a scaffold for Company (class CompanyController). I want to create some better views. I chose one action / view that I''d like to implement ruby scaffold/generate company post , that is when I got the above error. I made some changes to the database by changing some field names but that is all. Thanks Stuart
2006 Feb 27
1
Models and Inheritance
...a series of Serviceprovider child objects of the company class. Company < ActiveRecord::Base has_belongs_to_many :services end Serviceprovidertype1 < Company Serviceprovidertype2 < Company These child classes have corresponding child controllers Serviceprovidertype1Controller < CompanyController in the parent I have a method protected list_by_service(service) Company.find_by_sql(.. + service + ...) end and in the child Serviceprovidertype1Controller list list_by_service(''Servicetype'') end but it only seems to work if I make the method in the parent a class metho...
2008 Sep 30
0
Tabbed Menus - link_to_unless_current
...e twist: each of the tabs, Home for example which has corresponding controller given by "/home" displays pages using default index action which has further links pointing back to other controllers. So a link in the page opened by HomeController index action has a link pointing back to the CompanyController (identified above by ["Positions", "/company" ] sub-array. As it is now, as soon as the users click on the links on any pages, the current tab disappears since there is no "current" class. Instead, when the users click on a link on the page displayed by the index act...