search for: town_id

Displaying 5 results from an estimated 5 matches for "town_id".

Did you mean: conn_id
2005 Dec 23
2
Bizarre problems with AJAX / missing variables
...=> { :county => @county.id, :rawcode => rawcode } else render :partial => "nielocaladdress", :layout => false end end and the relevant code for the contacts/roilocaladdress partial: <div class="form-group"> <label for="contact_town_id">Town / Dublin area [<%= county %>|<%= rawcode %>]:</label> <% unless county.nil? %> <%= select(''contact'', ''town_id'', Town.find(:all, :conditions => [ ''county_id = ?'', county ] ).collect {|t| [ t.nam...
2006 Aug 13
3
ruby and mysql syntax? tried single quotes, double, none, ...
...s and convert those to something sql can understand? do the aliases have to be double qouted? single qouted? i think i tried all but no avail...thanks! def get_count(doctype, towne) @profiles = Profile.count_by_sql("SELECT COUNT(*) from Profiles where Profiles.doctype_id = 1 and town_id = towne") end -- Posted via http://www.ruby-forum.com/.
2006 Aug 13
7
you can pass multiple parameters using link_to? anything bad
i just found out i can pass mutiple parameters from views like <%= link_to doctype.name, :action => "show_towns", :id => doctype.name, :id2 => doctype.id%> silly me, i always had the impression that i could only pass 1. i guess i dont have to use sessions after all for my site. is there anything wrong with this? basically instead of the user filling out
2006 Aug 04
1
how to count totals for each unique name in a table?
hello, i am having trouble on how to implement this. i have a table of doctor information where each doctor has a town and county field. i would like to create a view that shows the amount of doctor_types in each town. For example if the user selects the ''General Doctors'' search button, a view like this will show up. The next step would be for the user to select which
2006 Aug 06
1
creating hash table, how do i? please help
hi, i have a noob question. how do i create a table but add additional fields? for example.. i have a total_table of total, county, and town where total_table inherites county_id and town_id from my town_county table where county_id has_many towns. in my view, id like to go through the hash like this table total_table for total_table.county { print total_table.county print total_table.county.total for total_table.town { print total_table.county.town...