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: 
Should be:

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

```

Notice I removed the tilde (`~`). Tilde (`~`) in Unix refers to your user's home directory, so your source was correct, but the second argument was placing the link in /Users/[your username]/usr/local/bin/ which is not included in $PATH.

In your note, you said you tried removing the quotes from the source argument. If you remove the quotes, you need to be sure to escape the space character as follows:

```
ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime

```

That should work as well.
The answers already given are all fine but what about making your life waaay easier and rely on good tools instead ;)

1. Install 'Oh My ZSh' (imho: a must have) <https://github.com/robbyrussell/oh-my-zsh>
2. Open the configuration file: **~/.zshrc**
3. Add sublime to the plugins: **plugins=(sublime)** (other recommendations: brew colored-man git osx)
4. Open your terminal on steroids and type: **st foo.txt**
5. Giggle in bliss and read the other cool stuff 'Oh My ZSh' can do for you!