Chris Oliver

Joined

292,890 Experience
93 Lessons Completed
295 Questions Solved

Activity

Posted in Using Vagrant for Rails Development Discussion

Thanks for the tips Dave! :)

Posted in Announcing the GoRails Forum

Hey everyone!

Today I am releasing the GoRails forum. This is the place you can turn when you need advice for how to design a feature or refactor your code. I'll be answering questions here and discussing Rails topics as well as hopefully turning some of these questions into screencasts.

This forum is custom built so if you run into any issues let me know. I'm going to be using this as an example for some screencasts so you can see how I built it as well.

Posted in A Look Into Routing Discussion

It's a Monokai theme for ZSH. You can download it here https://github.com/excid3/d...

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

That looks correct, but you'll always want to check the sub folders too. You may also want to try changing the user to deploy in the nginx config.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

Permissions are probably good. You also want to check if it is owned by deploy and not root or someone else. ls -la will show you which user and group the files/folders are owned by. You can then use chown to modify that if you need to.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

You may need to check and make sure the app directories are (recursively) all set to be owned by the deploy user. That's a somewhat common cause for that error.

Posted in Setup MacOS 10.9 Mavericks Discussion

That's no fun. Do you still have the error to share?

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Send a copy of your config to me at chris@gorails.com and I'll see if I can help!

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

The first one. It's saying it can't ssh into domain.com as the deploy user. When you ssh in manually with ssh deploy@domain.com that should connect without asking you for a password. That works correctly?

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

forward_agent is mainly just used when it checks out your code from Github or the like. It will use the key you deploy with to talk to github instead of a key on the server.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Don't specify the keys option there. Your local key in ~/.ssh/id_rsa will be tried against the server's /home/deploy/authorized_keys file. Capistrano won't allow password authentication, so you must make sure you ran the ssh-copy-id to add your pub key to the server deploy user's authorized_keys file.

Posted in Pagination with will_paginate Discussion

You could probably do something like this in your controller:

@posts = Post.paginate(page: params[:page])
redirect_to root_path if @posts.empty?

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Yeah, when it says authentication failed, it means it couldn't connect over SSH. You'll need to tweak your deploy config to make sure it matches your SSH configuration.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Absolutely! I'll probably plan on covering this in a screencast or a separate tutorial.

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

Oh hey, good find. I'll be sure to update that soon.

Posted in Authorization With CanCanCan Discussion

I'm covering Pundit next, but CanCan is by far the leader with 4 million downloads. CanCanCan is the community maintained version of cancan so it is still always up-to-date. I'm going to do a few authorization approaches in a row so we can compare them side by side and you can determine which works the best for you.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

The package names have probably changed a bit. You may want to switch to the 13.04 version as it probably has some more similar package versions.

Posted in Button Loading Animations with jQuery UJS Discussion

That's interesting. Do you get any errors in the console that show the browser having trouble loading the icon font by chance?

Posted in A Look Into Routing Discussion

Yes! I forgot to mention that. Thanks for sharing. :)

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

Great post Nick. That will be useful for anyone running into trouble with rvm. I'll be sure to point people that direction if they have issues. :)