Displaying 3 results from an estimated 3 matches for "johnmann".
Did you mean:
johann
2006 Jul 08
1
Need Help Understanding Situation with Table Columns
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using InstantRails
for the server. In my app I have the folowing controllers:
admin_controller
application_controller
city_map_controller (with method: displayGMap)
The admin_controller was created with the following command:
ruby script/generate scaffold
2006 Jul 02
1
Subject: Trying to Get Results from Form Element
I am trying to create an application loosely based on the Depot application
presented in Agile Web Development with Rails (AWDwR). I am using the folowing controllers:
admin_Controller
application_Controller
city_map_controller (with method: displayGMap)
== Code Extract from city_map_controller ==
# Show a Google Map on a new page
def displayGMap
# @mapPoint = Gmap.find(params[:id])
# DBUG:
2006 Jul 08
0
Subject: Trying to Get Results from Form Element -CLOSED-
Thanks for your advice. It turns out that I had access to what I needed all along.
All I had to do was stop thinking of the (form) result as a hash and start thinking of
it as a list. The following line is what I use to get the desired result.
citySelection = Gmap.find(:first, params[:mapPoint].values[0])