# \[ANN\] Personalise Site - Now implicitly gains geo data

**URL:** <https://www.ruby-forum.com/t/ann-personalise-site-now-implicitly-gains-geo-data/121886>\
**Category:** Rails\
**Created:** [December 2, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/ann-personalise-site-now-implicitly-gains-geo-data/121886 "2007-12-02T12:08:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss\_1982](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/96bed5/32.png) [@ss\_1982](https://www.ruby-forum.com/u/ss_1982)\
**Post date:** [December 2, 2007, 12:08pm UTC](https://www.ruby-forum.com/t/ann-personalise-site-now-implicitly-gains-geo-data/121886/1 "2007-12-02T12:08:42Z")

</div>

The second version of the Personalise Site plugin has just been released  
and now includes methods to implicitly gain a users geo data.

These additions are intended to be used to further customise and improve  
a users browsing experience.

For example you may want to display content on a homepage that is  
relevant to a users location or you may want to automatically select the  
right country in a registration form to improve the signup experience.

This can be achieved in your views by making use of these methods:

Returns which country the user is in  
\<%= which\_country %\>

Returns which city the user is in  
\<%= which\_city %\>

The users geographical coordinates  
longitude: \<%= longitude\_coordinate %\>  
latitude: \<%= latitude\_coordinate %\>

Homepage: [http://www.railslodge.com/plugins/303-personalise-site](http://www.railslodge.com/plugins/303-personalise-site)  
SVN: [http://svn.railslodge.com/svn/plugins/personalise\_site/](http://svn.railslodge.com/svn/plugins/personalise_site/)

As usual, if anyone has any suggestions on how to further improve this  
plugin, please send your comments over.
