Question: I'm using Rails 3 with thinking-sphinx and in development mode I find myself having to type:

```
  rake ts:start
  rails s 

```

Is there a way to combine these because I always forget to type the first command and it's just annoying in development mode. For production I just use capistrano to start my thinking-sphinx and there's no problem there.

Answer: 
First of all to create a upvote button do something like:

```
<img src=".." id='upvoteButton' />

```

And Use JQuery with AJAX like:

```
$("#upvoteButton").live('click', function(){
        postData="data="+value; /* Data that you may want to pass to your script */
        $.ajax({
            type: "GET",
            url: "yourSecript.php",
            async: true, /* If set to non-async, browser shows page as "Loading.."*/
            cache: false,
            data: postData,
            success: function(data){ 
            }
        });
        return false;
    });

```

Please let me know if you are not clear....
Yes, you need AJAX for that if you do not want to reload the page.