search for: phone_typ

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

Did you mean: phone_type
2009 Jun 26
0
validates_uniqueness_of and MySQL enum type
I tried to check validates_uniqueness_of for a MySql enum type column with a scope given, like this: validates_uniqueness_of :phone_type, :scope => :user_id And It didn''t work. When I check the SQL statement for doing this validation, it is like this: SELECT `phone_numbers`.id FROM `phone_numbers` WHERE (`phone_numbers`.`phone_type` = BINARY '''' AND `phone_numbers`.user_id = 23) LIMIT 1 phone_type wa...
2007 Jun 24
6
I only want one type of model returned from a multi_search
...y want to get back people. person has_many email_addresses has_many phone_numbers acts_as_ferret :fields => [:firstname, :lastname, :birth_date] email_address has_one person acts_as_ferret :fields => [:email_address] phone_number has_one person acts_as_ferret :fields => [:phone_number, :phone_type] multi_search(options[:query], ["EmailAddress", "PhoneNumber"], {:limit => :all}) Is this the right way of doing this... or is there a better way? -- Posted via http://www.ruby-forum.com/.
2007 May 09
0
How can I specify the selected value in collection_select when fieldname different than variable?
..."phone". Main form snippet [code] <h2>Phones</h2> <table> <% n = 0 for phone in @phones do fieldname = "phone_#{n}"; %> <tr><td>Number:</td><td> <%= text_field_tag fieldname, phone.number%></ td> <td><%= get_phone_types fieldname%></td></tr> <% n += 1 end %> <table> [/code] helper with get_phone_types [code] # #Create a Phone type select List #Take a list of html options # def get_phone_types(fieldname) @phones = PhoneType.find(:all, :order => "description ASC&qu...
2006 Mar 24
8
Snom 360 problems
Anyone have a Snom they're happy with? How did you manage that? :) I have a system of: Asterisk 1.2.3 2 Wildcard TDM400P Rev I and E/F 1 Snom 360 + sidecar ~15 Sipura/Linsys SPA-841 ~15 Grandstream 101 Everything (currently) is on the same network, not a router to be seen between any two. Also everything, except the snom, is working sweetly. The main problem is ECHO.. awful echo and