Skip to content

Commit

Permalink
update messaging and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
dbouwman committed Mar 11, 2010
1 parent df517f1 commit 5da7cf4
Show file tree
Hide file tree
Showing 17 changed files with 573 additions and 19 deletions.
12 changes: 12 additions & 0 deletions .loadpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<loadpath>
<pathentry path="" type="src"/>
<pathentry path="org.rubypeople.rdt.launching.RUBY_CONTAINER" type="con"/>
<pathentry path="GEM_LIB/activeresource-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/activerecord-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/actionpack-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/rake-0.8.7/lib" type="var"/>
<pathentry path="GEM_LIB/activesupport-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/rails-2.3.5/lib" type="var"/>
<pathentry path="GEM_LIB/actionmailer-2.3.5/lib" type="var"/>
</loadpath>
18 changes: 18 additions & 0 deletions .project
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>esruby</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rubypeople.rdt.core.rubybuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rubypeople.rdt.core.rubynature</nature>
<nature>org.radrails.rails.core.railsnature</nature>
</natures>
</projectDescription>
63 changes: 63 additions & 0 deletions app/views/home/.tmp_about.html.erb.8492~
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<div id="searchbar">
<div class="container">
<div class="span-24 last">
&nbsp;
</div>
</div>
</div>

<div class="container">
<div class="span-24 append-bottom last">

<h2>About this Application</h2>
<p>This application was created to explore the use of ArcGIS Server in conjunction with a Ruby on Rails application. </p>
<p>While I learned quite a bit, I must say that I would not go aout of my way to work with ArcGIS Server using Ruby. This is likely
because my Ruby chops are not that hot, and every single thing I did involved a lot of Google.</p>
<p>On the upside, the Ruby community is great, and although there is a certain level of dislike to SOAP services, this project
shows that it is possible (despite having to get up close and really personal with the underlying Xml).</p>
<h2>About the code...</h2>
<p>The code for this application will be pushed up to GitHub. I used the arcserver.rb project as a starting point for some of my code. I'm
no planning on pushing that back into a fork of that project because what I ended up with is so very very tied to my project that it's not
worth pushing back up. I suppose some refactoring could help clean things up a little, but I'm really tight for time, so feel free to pull out
that code and push it into your own fork of arcserver.rb.</p>
<h2>Contact me...</h2>
<p>It's easiest to contact me via my blog: <a href="http://blog.davebouwman.com">http://blog.davebouwman.com</a></p>
</div>
<div class="span-5 append-1">
<h2>Ruby &amp; Rails</h2>
<ul>
<li>Ruby v1.8.7</li>
<li>Rails v2.3.5</li>
</ul>
</div>
<div class="span-5 append-1">
<h2>Gems</h2>
<ul>
<li>HTTParty</li>
<li>HandSoap</li>
<li>shoulda</li>
<li>mocha</li>
<li>httpclient</li>
<li>json</li>
<li>test-unit</li>
<li>nokogiri</li>
</ul>
</div>
<div class="span-5 append-1">
<h2>Tools</h2>
<ul>
<li>RadRails</li>
<li>NotePad++</li>
<li>SoapUI</li>
<li>ArcGIS Server</li>
</ul>
</div>
<div class="span-5 append-1 last">
<h2>Thanks To...</h2>
<ul>
<li>Rails Guides</li>
<li>arcservder.rb</li>
<li>My Wife who put up with this project eating up evenings for much too long</li>
</ul>
</div>
</div>
53 changes: 53 additions & 0 deletions app/views/home/.tmp_index.html.erb.80604~
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@


<div id="searchbar">
<div class="container">
<div class="span-24 last">
<% form_remote_tag(:url => {:action => 'search',:method => 'get'},
:before => "Element.show('spinner');",
:complete => "Element.hide('spinner');"
) do %>
<label for="search_type" class="search_prompt">Search for parcels where:</label>
<%= select_tag(:search_type, options_for_select([['Owner','OWNER1'],['Tax Id','TLID']],'owner'))%>
<span class="search_prompt">is</span>
<%= text_field_tag(:search_criteria) %>
<%= submit_tag "", :class =>"search_button" %>

<% end-%>
</form>
</div>
</div>
</div>
<div class="container">
<div class="span-24 last">
<div class="notice" id='spinner' style="display:none;">
<span>Let's load some data!<%= image_tag "loading.gif", :style => 'display:block;'%></span>
</div>
</div>
<div class="span-24 last">
<div id="results" class="span-21 prepend-top prepend-1 append-1 last">
<div class="span-7">
<span class="chunk">Get Ruby</span>
<a href="http://ruby-lang.org"><img src="images/ruby.png" alt="get ruby"/></a>
</div>

<div class="span-7">
<span class="chunk">Get Rails</span>
<a href="http://rubyonrails.org"><img src="images/rails.png" alt="get rails"/></a>
</div>
<div class="span-7 last">
<span class="chunk">Get Data</span>
<a href="http://www.arcgisonline.com/home/"><img src="images/ags.png" alt="get data"/></a>
</div>

<div class="span-21 prepend-top last">
<h1 class="ga">Get your Mash-up Freak On!</h1>
<p class="headline">Ruby is a fun language, and Rails streamlines the bejeesus out of
web development. ArcGIS Server has API's that are <span style="text-decoration:line-through;">easy to consume</span> consumable! </p>
<p class="headline">Come on, jump in! The water is warm!</p>
</div>

</div>
</div>

</div>
2 changes: 1 addition & 1 deletion app/views/home/about.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
shows that it is possible (despite having to get up close and really personal with the underlying Xml).</p>
<h2>About the code...</h2>
<p>The code for this application will be pushed up to GitHub. I used the arcserver.rb project as a starting point for some of my code. I'm
no planning on pushing that back into a fork of that project because what I ended up with is so very very tied to my project that it's not
not planning on pushing that back into a fork of that project because what I ended up with is so very very tied to my project that it's not
worth pushing back up. I suppose some refactoring could help clean things up a little, but I'm really tight for time, so feel free to pull out
that code and push it into your own fork of arcserver.rb.</p>
<h2>Contact me...</h2>
Expand Down
5 changes: 2 additions & 3 deletions app/views/home/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="container">
<div class="span-24 last">
<div class="notice" id='spinner' style="display:none;">
<span>Let's load some data!<%= image_tag "loading.gif", :style => 'display:block;'%></span>
<p><%= image_tag "loading.gif", :style => 'margin-right:3px;'%>Let's load some data! Right now we're querying the ArcGIS Server REST API... </p>
</div>
</div>
<div class="span-24 last">
Expand All @@ -40,13 +40,12 @@
<a href="http://www.arcgisonline.com/home/"><img src="images/ags.png" alt="get data"/></a>
</div>

<div class="span-21 prepend-top last">
<div class="span-21 prepend-top append-bottom last">
<h1 class="ga">Get your Mash-up Freak On!</h1>
<p class="headline">Ruby is a fun language, and Rails streamlines the bejeesus out of
web development. ArcGIS Server has API's that are <span style="text-decoration:line-through;">easy to consume</span> consumable! </p>
<p class="headline">Come on, jump in! The water is warm!</p>
</div>

</div>
</div>

Expand Down
45 changes: 45 additions & 0 deletions app/views/layouts/.tmp_home.html.erb.76860~
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<%= stylesheet_link_tag "blueprint/screen" %>
<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag :defaults %>
</head>


<body>
<div class="wrapper">
<div id="header">
<div class="container">
<div class="span-18">
<%= image_tag "logo-large.png", :class => 'left'%>
</div>
<div class="span-6 last">
<div id="nav_container">
<ul id="nav">
<li><a href="#"><h3>Code</h3></a></li>
<li><%= link_to "<h3>About</h3>", {:controller => 'home', :action=>'about'} %></li>

</ul>
</div>
</div>
</div>
</div>
<%= yield %>
<div class="push"></div>
</div>
<div id="footer">
<div class="container">
<div class="span-24 prepend-top last">
<div style="float:right;">
<a href="http://www.dtsagile.com"><img src="images/dtsagile-logo.png" alt="dtsagile"/></a>
</div>
</div>

</div>
</div>

</body>

</html>
42 changes: 42 additions & 0 deletions app/views/layouts/.tmp_parcel.html.erb.54289~
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<%= stylesheet_link_tag "blueprint/screen" %>
<%= stylesheet_link_tag "site" %>
<%= javascript_include_tag :defaults %>
</head>

<body>
<div class="wrapper">
<div id="header">
<div class="container">
<div class="span-18">
<%= image_tag "logo-large.png", :class => 'left'%>
</div>
<div class="span-6 last">
<div id="nav_container">
<ul id="nav">
<li><%= link_to "<h3>Search</h3>", :controller=>'home', :action=>'index' %></li>
<li><a href="#"><h3>Code</h3></a></li>
<li><%= link_to "<h3>About</h3>", :controller=>'home', :action=>'about' %></li>
</ul>
</div>
</div>
</div>
</div>
<%= yield %>
<div class="push"></div>
</div>
<div id="footer">
<div class="container">
<div class="span-24 prepend-top last">
<h2>Teh Footerz bes needing to hav some goodies.</h2>
</div>

</div>
</div>

</body>

</html>
24 changes: 18 additions & 6 deletions app/views/layouts/home.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="header">
<div class="container">
<div class="span-18">
<%= image_tag "logo-large.png", :class => 'left'%>
<%= link_to image_tag("logo-large.png", :class => 'left') , {:controller => 'home', :action=>'index'} %>
</div>
<div class="span-6 last">
<div id="nav_container">
Expand All @@ -31,12 +31,24 @@
</div>
<div id="footer">
<div class="container">
<div class="span-24 prepend-top last">
<div style="float:right;">
<a href="http://www.dtsagile.com"><img src="images/dtsagile-logo.png" alt="dtsagile"/></a>
</div>
<div class="span-8 prepend-top">
<h3>Uhhh What is this?</h3>
<p>This little ditty was whipped up more or less on a dare. I wanted a reason to learn some Ruby on Rails
and what better way than by commiting to speak about it at a
<a href="http://www.esri.com/events/devsummit/index.html">conference.</a></p>
</div>
<div class="span-8 prepend-top">
<h3>Who did this?</h3>
<p>Ok, I'll admit it - I did this. But who am I you ask? Find out <a href="http://blog.davebouwman.com">here</a> or just
drop me a line at dave [at] davebouwman [dot] com</p>
</div>

<div class="span-8 prepend-top last">
<h3>This data is wrong!</h3>
<p>Yes, it likely is! This is just a technology demo site - if you are looking for real data for Portland, got to
<a href="http://www.portlandmaps.com/detail.cfm?action=Explorer&ZoomLevel=1&x=7655000&y=680000">PortlandMapsOnline.com</a></p>


</div>
</div>
</div>

Expand Down
19 changes: 15 additions & 4 deletions app/views/layouts/parcel.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,24 @@
</div>
<div id="footer">
<div class="container">
<div class="span-24 prepend-top last">
<h2>Teh Footerz bes needing to hav some goodies.</h2>
<div class="span-8 prepend-top">
<h3>Uhhh What is this?</h3>
<p>This little ditty was whipped up more or less on a dare. I wanted a reason to learn some Ruby on Rails
and what better way than by commiting to speak about it at a
<a href="http://www.esri.com/events/devsummit/index.html">conference.</a></p>
</div>

<div class="span-8 prepend-top">
<h3>Who did this?</h3>
<p>Ok, I'll admit it - I did this. But who am I you ask? Find out <a href="http://blog.davebouwman.com">here</a> or just
drop me a line at dave [at] davebouwman [dot] com</p>
</div>
<div class="span-8 prepend-top last">
<h3>This data is wrong!</h3>
<p>Yes, it likely is! This is just a technology demo site - if you are looking for real data for Portland, got to
<a href="http://www.portlandmaps.com/detail.cfm?action=Explorer&ZoomLevel=1&x=7655000&y=680000">PortlandMapsOnline.com</a></p>
</div>
</div>
</div>

</body>

</html>
Loading

0 comments on commit 5da7cf4

Please sign in to comment.