Displaying 2 results from an estimated 2 matches for "show_company".
2006 Jan 01
9
Child record becomes orphan
...ompany
# Haven''t figured out the syntax yet so don''t laugh about the line below.
if Contact.find_all(params[:company_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-Kr...
2007 Oct 07
2
2 comboboxes
Hello, I have a 2 comboboxes on my web-page. first contains list of
cities, and other contains list of companies. But i need to filter
second combobox by selected city in first combo.
What the best way to implement this.
I know this is not hard task but i don''t what to invent wheel.
Thanks
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~