Your view code would be helpful to see.

On Mar 21, 5:48 am, vishy <[email protected]> wrote:
> Hi all,
>
> I am using the google maps API to perform some geolocation on the
> client side. I am able to geocode my users address without any issues.
> However after doing this on the front end I would like to goto my
> backend and query my DB based on the address. After that I want to
> redirect the users to a different page where the query results would
> be displayed. Is there a way to achieve this?
>
> I was doing everything on the backend before this and it was working
> fine. However there is limit associated with the geolocation API from
> Google and the limit is set per IP. Hence I wanted to perform the
> geolocation on the client side so that I don't exceed the limit.
>
> Here is my controller code:
>
> def result
> # the location parameter comes from the geocoded address on the front
> end
>    @restaurants = Restaurant.load_results(params[:location])
>    render :layout => 'search_results'
> end
>
> But this call never gets redirected to the result.html.erb page
>
> Any help will be really appreciated.
>
> Thanks,
> vishy

-- 
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.

Reply via email to