Personalise Site plugin
Plugin details
Documentation
ruby script/plugin install http://svn.railslodge.com/svn/plugins/personalise_site/
The following methods are available:
Returns the name of the browser the user is using
<%= which_browser %>
Returns the version number of the browser being used
<%= which_browser_version %>
Returns the name of the platform the user is using
<%= which_platform %>
The data used for the following methods is implicitly gained for performing a geo location lookup using the users IP address. (This data is not always accurate)
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 %>
Nil is always returned if the data is unavailable
==== Example usage
An example below looks at the platform and outputs the right command to install this plugin
<% if which_platform == 'Windows' -%> ruby script/plugin install http://svn.railslodge.com/svn/plugins/personalise_site/ <% elsif which_platform == 'Mac' -%> ./script/plugin install http://svn.railslodge.com/svn/plugins/personalise_site/ <% else -%> script/plugin install http://svn.railslodge.com/svn/plugins/personalise_site/ <% end -%>
Further Documentation
There is currently no advanced documentation for this plugin.
New documentationEdit plugin | Back in time (5 older versions) | Last edited by: scott, 9 months ago

