peersource is rails. It receives XML from the services
Most of the work is in this file
<div id="map_canvas"></div>
<div id="wrapper">
<h1 class="wdyn">Need a ride, a room, a wrench? Someone in <%=
simple_format(@city) %> is willing
to lend a lift, a loft, or a hammer!
?</h1>
<%
require 'nokogiri'
require 'open-uri'
puts @latitude
puts @longitude
%>
<%
if !@search_str.empty?
doc = Nokogiri::XML(open("
http://www.frenting.com/api/search/items/
xml/?query="+@search_str.gsub(' ', "%20")))
%>
<%= simple_format('search results for ' + @search_str) %>
<div class="result_box">
<% doc.xpath('//resource').each do |node|
%>
<%= link_to node.xpath('name').text, node.xpath('link').text
%>
<%= image_tag(node.xpath('logo').text, :border=>0, :size=>'75x25')
%><br>
<% end
%>
</div><div class="result_box">
<% doc = Nokogiri::XML(open("
http://soaps.neighborrow.com/soap/items/
simple_item_search/"+@search_str.gsub(' ', "%20")))%>
<% doc.xpath('//resource').each do |node| %>
<%= link_to node.xpath('name').text, node.xpath('link').text %>
<%= image_tag(node.xpath('logo').text, :border=>0, :size=>'75x25')
%><br>
<% end %>
</div>
<% end %>
<div id="search_wdyn">
<% form_for :soap_search, :url => { :action => "search" } do |f| %>
<%= text_field_tag(:search_box_wdyn) %>
<br>
<input id="search_box_wdyn_submit" class="submit" type="submit"
value="peersource it!"/>
</div>
<% end %>
<%= #@search_str
%>
<br /><span class="icon"><%= image_tag "weshouldshareit/rides.gif";
%><br> Rides / Cars</span>
<span class="icon"><%= image_tag "weshouldshareit/rooms.gif";
%><br>Rooms / Housing</span>
<span class="icon"><%= image_tag "weshouldshareit/stuff.gif";
%><br>Tools / Stuff</span>
<!--tennis court, place to sleep, book, tool, ride, answer, ladder,
camera,-->
<br>
The collaborative consumption movement is getting huge!
"WeShouldShare" aggregates the supply and demand of rides, stuff,
services, housing...<br />
<div
id="footer">© WeShouldShare. <a
href="
http://weshouldshareit.com/about.php">About</
a> <a href="
http://weshouldshareit.com/
contact.php">Participate</a> <a
href="/">Home</a> </div>
On Jul 1, 11:59 pm, Kusti <
juho.makko...@gmail.com> wrote:
> Hi Adam, and welcome to the group!
>
> It seems that you have already done a lot in this area. I knew that
> there must be other people thinking about this stuff too!
>
> You might be right in that aggregating stuff and reputation are
> different tasks. That's also why it's probably better to start with
> stuff.
>
> Would be great to see the code you guys are sharing with
frenting.com.
> The search page athttp://
peersource.sfrails.net/ at least seems to
> > > > > >
http://piratepad.net/9272k3RXy5Ifyouhaveanythoughtsregarding it