Skip to main content
Texteditor
General • Asked by Artem Kiryanov
Hello! Can yoy help me? I have Ruby 2.1.3 and Rails 4.1.7. I use gem ( https://github.com/spohlenz/tinymce-rails ) and I do everything as it says, but i when paste this code: in my _form, i have e...
2
posts

Passenger Spinning down in Production
Servers • Asked by shakycode
My favorite combination of Rails/HTTP is Nginx + Passenger. They work wonderfully together and it's been super easy to setup across all of my apps. One thing I've noticed in some of my apps that ...
6
posts

Associating Radio Buttons With Specific Field Subsets In Rails
Rails • Asked by Chris Zempel
**Situation:** A user enters the name of a venue they want to add. I query an external API and get back a list of possible venues they actually meant, which they'll then confirm. The venue model wi...
2
posts

rbenv: bundle: command not found
Servers • Asked by Peter Boomsma
I'm trying to deploy my Rails app on my Digital Oceans VPS but I'm running into a error: Running `cap production deploy` ends up with this error: INFO[7cd03924] Running ~/.rbenv/bin/rbenv ex...
16
posts

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...
9
posts

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...
3
posts

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...
4
posts

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_...
2
posts

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: ca...
2
posts

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 ...
7
posts

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...
3
posts

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...
1
post

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...
9
posts

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...
2
posts

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 < Act...
6
posts

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 ...
9
posts

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. ...
4
posts

Subscribe to the newsletter

Join 22,346+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.