Slides to go with my 2010 ESRI Developer Summit talk on using Ruby on Rails with ArcGIS Server. View the application at http://agsruby.heroku.com and download the source code from http://github.com/dbouwman/agsruby
43. Enuf! Show meh teh codez nao!
http://www.flickr.com/photos/kwl/4116389731
44. App
Post to Search
(Ajax request)
REST API Query
Resutls.rjs
45. Controllers Views
Home
Home
Request Routing Response
Results
Parcel
Detail
lib
46. require 'arcserver'
require 'json
class HomeController < ApplicationController
#Show the index page
def index
end
#Show the about page
def about
end
def search
@searchType = params[:search_type]
@searchCriteria = params[:search_criteria].upcase
#calls to arcserver.rb to collect data and return to view
end
end
47. require 'arcserver'
require 'json'
class ParcelController < ApplicationController
def index
@taxid = params[:id]
#calls to arcserver.rb to collect data and return to view
end
end