Deploy Rails
Chris! I fixed my problem! How?
First! Open /etc/nginx/sites-enabled/default and comment location directory
It is my settings
server {
listen 80;
server_name www.artkiryan...

10
Servers
How should I model this situation?
I think your second post outlines a pretty good storage mechanism. You obviously want to actually make that a database backed model with a `company_id` on it so you don't have to make up the metric...

3
Rails
Texteditor
Pysch is a YAML parser. Have you checked your .yml files to make sure you don't have any syntax errors in them?

2
General
Associating Radio Buttons With Specific Field Subsets In Rails
Fake it.
Use data tags in your HTML and when one of the options are clicked, Javascript fills out the hidden fields in the form using the data tags on the element that was clicked. Display the d...

2
Rails
Passenger Spinning down in Production
Btw, in that link you sent it tells you what the default idle time is. `This option may only occur once, in the http configuration block. The default value is 300.` So it looks like 300 seconds o...

6
Servers
Show each users each post.
So you'll need a join table between Movies and Users. Something like `UserMovie` is a standard naming scheme for that. You could also give them a name like `Favorite`.
In essence you'll do this:...

2
Rails
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