Also the JS code in my application.js is :
$('searchbutton').live('click', function() {
var address = $('address_text).val();
geocoder = new google.maps.geocoder();
geocoder.geocode(request:address,callback:function(results,status) {
var lat = results[0].geometry.location.lat().toString();
var lng = results[0].geometry.location.lng().toString();
$.getScript("search/result.html?location=" + address);
return false;
});
});
On Mar 21, 6:20 am, vishy <[email protected]> wrote:
> Oops hit the send button too quickly.
>
> Here is the actual result.html.erb code
>
> <% @restaurants.each do |restaurant| %>
> <div class="featured">
> <%= render 'search_result', :restaurant => restaurant%>
> <div class="order_link">
> <%= link_to 'Order Now', {:controller => "search", :action =>
> "create_order", :id => restaurant},
> :class => "order_now_link"%>
> </div>
> </div>
> <% end %>
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.