search for: list_compani

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

Did you mean: list_companies
2006 Jan 01
9
Child record becomes orphan
...id]) == Company.find(params[:id]) <<< flash[:notice] = ''This company has contacts.'' redirect_to :action => ''show_company'', :id => @company.id else Company.find(params[:id]).destroy redirect_to :action => ''list_companies'' end end Thanx Regards, Gerard. -- "Who cares if it doesn''t do anything? It was made with our new Triple-Iso-Bifurcated-Krypton-Gate-MOS process ..." My $Grtz =~ Gerard; ~ :wq!
2006 Jun 28
3
couple newbie questions
...#39;'s book ? couldn''t stop reading. I started building a prototype to get better hands on experience and I have run into two simple issues that I am hoping will be a quick answer for some of you experts out there. *Issue 1:* >From within a "companies" controller and list_companies.rhtml view there I am trying to redirect to another controller and another action to enable adding of comment. Something like the following ? <%= link_to "Comment", { # link_to options *:contoller* => ''comment'',...
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...