Getting a 403 on Ubuntu + Nginx
Your issue is coming because nginx is trying to search for index.html file into /home/deploy/apps/mll/current/public which is not present there. In order to fix, you will need to add passenger with...

4
Servers
rbenv: bundle: command not found
I agree. I think a submit an improvement piece would be helpful. It would allow others to add value to the already valuable resources you provide. Plus a lot of us have edge cases which we could...

16
Servers
rbenv: 2.1.2 is not installed or not found
Haha, that would do it! I imagine that there are a few places where I could clean up the tutorial to show you on which machine to run which commands.

2
Servers
Trouble With Form Objects
Yep!
relevant links for this:
https://www.reinteractive.net/posts/158-form-objects-in-rails
http://robots.thoughtbot.com/activemodel-form-objects

7
Rails
How do I communicate if I won't hit an estimate?
I think aside from the suggestions mentioned in that thread, the topic of estimations is important to have a conversation on. Over time, I've learned that if I estimate X hours to complete a projec...

3
General
Attaching a Characteristic To Multiple Models
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
Rails
Pundit Scope and has_many through
I think that's because on the index you want an array of records, but on show you just want a single record.
When you pass in the array into policy_scope, it's going to call the `.where(company_...

2
Rails
Using Pundit to build in a cool gmail-feature
Although, I suppose that's best for role-based if a company has consistent roles and scopes users need. For item-based, a vaguer table would serve better:
```ruby
class UserConnection
belong...

6
Rails
Likes routing error
Haha! Glad it's working for you. I think you're right about the join table not needing a primary key, but I think when you do that in Rails, it assumes you don't create a model for it. Since we're ...

9
Rails
where to look for errors besides nginx error logs
So the problem wasn't with Amazon S3 but was an issue with rmagick/ImageMagick?
I'm using CarrierWave and looking to do auto-resize of images on upload. Is there any configuration that needs to...

4
Servers
How to manually manupulate data in the production database?
Thanks Chris! Yea spent a whole day trying to figure it out. Most answers were for capistrano 2. Tried installing capistrano rails console and still nothing. Hope it helps anyone facing the same pr...

7
General
Deploy Rails guide confusion
ok, now I could edit the file.
As I haven't registered a domain name yet, I used 'localhost' for server_name.
Thanks Chris,
Anthony

3
Rails
Ruby issue when doing cap deploy production
I'm Brazilian, sorry by my inglish... I'm using bitbucket.
In my case capistrano run all commands ok, but in server no created any file its all empty in folder suppose deploy my project.

69
General
deploy Rails
you also may run into this issue when first doing an ssh login:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
...

3
Rails
Structure Guidance - Multi Tenancy Authentication / Authorization
In addition to this, I was wondering what could be the idea for allowing a user to view and edit an item based on his/her email being part of the attribute (eg. assign_to). Is pundit appropriate ...

19
Rails