Question: I am fairly new to Anuglar JS so please keep that in mind while answering this question. My goal here is to create and persist a new user in the oracle database. My frontend is written in AngularJS. A REST service (using JERSEY) is in place already with a method signature like below:

```
 @POST
 @Path("/create/{user}")
 public void createUser(@QueryParam("user") User user){ ...}

```

AngularJS Factory with REST call looks like this:

```
angular.module('app.services', ['ngResource'])
.factory('User', function($resource) 
 {
   return 
   {
        createUser: $resource('/myurl/create/:user', {}, {
            query: {
                method: 'POST',
                params: {user: '@user'},
                isArray: false
            }
        })
   });

```

User.java has the following attributes:

```
private String firstName;
private String lastName;
private String email;

```

I believe the above factory is set up correctly. I have verified that the backend REST service for create user also works correctly. The frontend has a form that lets a user enter FirstName, LastName and Email which should be part of the User object. I think the User object should be submitted to the Rest service via something like:

Step1: make an object with user's data
Step2: User.createUser.query(user:)

I am not sure if the steps are right and if they are then how exactly to make the object. Can someone please provide some guidelines. Thank you

Answer: 
Mavericks does not ship with a ~/bin directory, but found I ran into trouble trying to install the `subl` command in any of the low-level system bin directories. I found the following solution worked neatly:

Create a ~/bin directory for your user:

```
mkdir ~/bin

```

Add the `subl` command as per the Sublime Text documentation:

```
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" ~/bin/subl

```

Open /etc/paths in your (second) favourite text editor:

```
sudo vi /etc/paths

```

Add the active user's ~/bin folder. Here's how mine looked after I'd added ~/bin:

```
~/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin

```
This works for me as well:

```none
sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/st

```

Than you can write just:

```none
st filename.file extension

```

It should works. I tried so many things but this worked first.