Chris Oliver

Joined

290,710 Experience
86 Lessons Completed
298 Questions Solved

Activity

Posted in Setup Ubuntu 13.10 Saucy Salamander Discussion

I was hoping people would find those useful! :)

Posted in Setup Ubuntu 13.10 Saucy Salamander Discussion

The ruby racer can be a replacement for Node.js but Node doesn't require you to add a gem to your app. The reason you need one of these is so that you can compile Coffeescript to Javascript (and then combine and minify it in the asset pipeline when you deploy). Node is a Javascript runtime that isn't in the browser and therubyracer gem provides one as well.

Posted in The Params Hash Discussion

Thanks Dana! :) I definitely have some more videos like this in mind. Glad you liked it!

Posted in Using Vagrant for Rails Development Discussion

Is it actually causing you problems? I know the "stdin: is not a tty" seems to be more of a warning than an actual problem according to this https://github.com/mitchell...

I haven't run this on Windows yet however, so keep me posted if things don't work after finishing the tutorial. This is a very long thread but someone mentions the error and you might find a solution in here: https://github.com/mitchell...

Posted in Environment Variables Discussion

Figaro and the new Rails 4.1 secrets.yml are ways to manage these. This episode is intented to explain what they are so when you run into things like Figaro and secrets.yml you have a better idea of what you're looking at.

Heroku has a config command that lets you view and set environment variables. More info here: https://devcenter.heroku.co...

Glad I could help! :)

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

Does sudo apt-get update work? It's saying something is wrong with that.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

Take a look at this: http://stackoverflow.com/qu...

Posted in Deploy Ubuntu 14.04 Trusty Tahr Discussion

What did you set for your repo_url?

Posted in Using Vagrant for Rails Development Discussion

That's what Bundler is for. Your version of Rails is application specific, so you let Bundler manage it with your app's Gemfile.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

If you have multiple versions of ruby, you'll want to set the default (or use rbenv/rvm to switch). For me, I have 1.8.7, 1.9.3, 2.0, and 2.1 installed on my machine. I set 2.1.2 as the default, but certain applications switch back to 1.9 and 1.8.7 for me.

I'd guess you just haven't set the default to 2.1.2 yet and that's what is missing.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

If you've already downloaded all the gems and ruby versions, you can work offline but if you need to install anything new, you'll need an internet connection.

Posted in Setup Ubuntu 13.10 Saucy Salamander Discussion

Great! Let me know if there's anything I can make more clear for that part.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

Should be as simple as adding in the ".com" to the host thing in your production.rb that you added earlier I believe.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

Yeah you'll need to run redis-server in production if you use sidekiq.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

You can add config.action_mailer.default_url_options = { host: 'yourdomain.com' } to your config/production.rb file. Just change "yourdomain.com" to the domain or IP address you are using.

Posted in Deploy Ubuntu 12.04 Precise Pangolin Discussion

Well it says: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true

So you need to set that in your different environment.rb files. Probably forgot to add that in your production.rb

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

You add them in. Put them under the development section.

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

It is inside your Rails app, inside the config directory. See this: https://www.evernote.com/sh...

Posted in Setup Ubuntu 14.04 Trusty Tahr Discussion

You can just open that file in your favorite text editor and set the username and password keys inside it. I'd recommend using Sublime Text or something similar to do that.