Question: I'm new to Android development and I couldn't find this in the Dev Guide.

I would like to create a background service so that any other app could connect to it and get some data from it. I saw android.app.Service, but it seems that it only allows other apps to ping the service, it doesn't allow them to register for some specific events.
I had in mind something like the built in LocationManager and its addProximityAlert or even requestLocationUpdates.

Is anything like this possible with the existing sdk?

Answer: 
You need pass in second argument the path where you want go

```
<%= link_to @person.company.companyname, @person.company %>

```

or with the full version :

```
<%= link_to @person.company.companyname, company_url(@person.company) %>

```
The thing is, `link_to` cannot guess where you want it to lead to, if you give it only the text of the link :) 

In order to have the link lead to the company page, you need to add a path:

```
<%= link_to @person.company.companyname, company_path(@person.company) %>

```

This assumes you have proper restful routes for your company

```
map.resources :companies

```

and the page you're heading to is `companies/show.html.erb`.