Skip to main content
Gravatar
setup Postgres user fails
Databases • Asked by Anthony Candaele
Hi, I'm following the Deploy Rails guide I'm now a the part where Postgres gets installed. I successfully installed Postgres, but when I try to create a new Postgres user with: createu...

Gravatar
could not connect to database postgres
Databases • Asked by Peter Boomsma
I'm trying to install postgresql but I'm running into an error when I try to create a user: createuser: could not connect to database postgres: could not connect to server: No such file or d...

Gravatar
Capistrano deploy removes tables from database.
Databases • Asked by Peter Boomsma
I use capistrano to deploy my Rails app to my VPS, but after every deploy when I visit my page I get an error. The log says: I, [2014-11-04T08:20:16.659289 #12482] INFO -- : Started GET "/" f...

Gravatar
Show each users each post.
Rails • Asked by Peter Boomsma
I'm trying to create a page where all my users are listed, and every movie they've added to their account. My UserController index def def index @users = User.all if logged_...

Gravatar
Getting a 403 on Ubuntu + Nginx
Servers • Asked by Peter Boomsma
My error log outputs the following, [ 2014-11-02 04:18:12.0511 23504/7f64e6a36780 agents/Watchdog/Main.cpp:538 ]: Options: { 'analytics_log_user' => 'nobody', 'default_group' => 'nogroup', 'def...

Gravatar
rbenv: 2.1.2 is not installed or not found
Servers • Asked by Peter Boomsma
I'm trying to deploy my local Rails app to my Digital Ocean VPS using the GoRails guide > https://gorails.com/deploy/ubuntu/14.04 But I'm running into a error when I want to deploy: cap p...

Gravatar
Trouble With Form Objects
Rails • Asked by Chris Zempel
I decided to experiment with a form object. ```ruby class Invitation include ActiveModel::Model attr_accessor( :first_name, :last_name, :email, :firm_id, :role ...

Gravatar
How do I communicate if I won't hit an estimate?
General • Asked by Chris Zempel
Here's a situation I see come up often. New developers (I consider myself here) will always estimate wrong. They will also feel bound to their estimates as deadlines. What's the high value w...

Gravatar
Attaching a Characteristic To Multiple Models
Rails • Asked by Chris Zempel
I've got these models: ```ruby class Firm has_many :funds end class Fund belongs_to :firm has_many :investments end class Investment belongs_to :fund has_many :investment...

Gravatar
Environment setup: iTerm, dotfiles etc
General • Asked by dichaba rammopo
Hi Chris Would you be willing to share your dotfiles? Your terminal seems so clean. Why iTerm? Do you have git information integrated into the prompt? What do you think of [YADR] (http://skwp...

Gravatar
Pundit Scope and has_many through
Rails • Asked by Wouter van den Beld
Hi! I can use a little help to get on the right track. I have 3 models ```ruby class User < ActiveRecord::Base has_many :associations has_many :items, through: :associations end ...

Gravatar
Using Pundit to build in a cool gmail-feature
Rails • Asked by Chris Zempel
I'm building an app with data set up similar to this: ```ruby class Company < ActiveRecord::Base has_many :products has_many :options, through: :products end class Product < ActiveRec...

Gravatar
Likes routing error
Rails • Asked by Thomas Bush
I am trying to use the Likes tutorial to create Favs for locations, which are nested under stores. Here is the relevant route section ``` resources :stores do resources :locations do ...

Gravatar
where to look for errors besides nginx error logs
Servers Solved • Asked by Anthony Candaele
Hi, My currently deployed Rails app seems to have issues with uploading images to Amazon S3 storage through CarrierWave. I get the familiar "We're sorry, but something went wrong." message. ...