Displaying 3 results from an estimated 3 matches for "citylist".
2011 Oct 22
1
cycling through a long list of files and names
R2.13.2, W7x64
Dear list,
Excuse my ignorance, but I have gone through the R help (?parse, ?eval,
etc.) and still really don't know how to do the following.
I have the general following structure that I would like to automate
[edited to make it shorter]:
>>>
city1997 <- dataCleaning(read.csv2("C:\\city\\year1997.txt"))
city1997 <- wasteCalculations(city1997, year
2006 Jul 02
1
Subject: Trying to Get Results from Form Element
...without an ID
Request
Parameters: {"commit"=>"Show Map", "mapPoint"=>{"id"=>"5"}}
==Code Extract from index.rhtml==
<%= start_form_tag( :action => "displayGMap" ) %>
<% mapPoints = Gmap.allMapPoints() -%>
<%= cityList = mapPoints.map { |m| [m.description, m.id] }
select("mapPoint", "id", cityList) %>
<%= submit_tag( "Show Map" ) %>
By the Way -
When I hard code the parameter value i.e. @mapPoint = Gmap.find(5),
everything works fine.
2006 Jul 31
1
How to get result of following SQL Query in Ruby?
...| |--store_name | |tag_name |
--user_id | |---------------| |------------|
-----------------|
Now I want to execute followin sql query on above tables:-
"select name from tags where tag_id in (select tag_id from taggings
where store_id in (select store_id from stores where citylist like
''%1%'')) ;"
I am able to get proper result using this sql query. But how should i
write same in query ruby inside my controller/model of tags table?
i.e Tag.find(:all, :conditions=>......
What will be conditions in above ruby statement?
Please tell me ?
Thanx in a...