Capistrano Rbenv Bundle Failed
@Chris Oliver hope this finds you. I followed ubuntu 14.04, set up and I have done it several times in the past with no issue and only this time I faced the same issue.
I have checked if my Ngnix ...
Navid Shafie
replied
•
Solved
11
Servers
How can I setup Cloudfront CDN for Rails App ?!
I sovled it by combining many methods such as:
+ Add custom header to Cloudfront Origin (Done in dashboard)
+ Add Nginx Mimes types and add header forward there (Done in server block of Nginx con...
Anh Vy Nguyen Vuong
replied
•
Solved
7
Rails
One form, two separate controllers, created at once.
you can use association between article and user and use nested attributes in it.
naveen kumar
replied
•
Solved
2
Rails
Optimizing Queries in Service Objects
It's not necessarily a single query that would illustrate the problem, it's how it's used that's the problem. That's why I say it's not something a more experienced developer may get caught by, but...
Jacob Montgomery
replied
•
Solved
10
Ruby
What are the best practices for generating SEO friendly urls in Rails 5?
To follow-up on Chris' last reply, in the past I've done:
`self.slug = SecureRandom.hex(2)`.
on a model create method and then added that as part of the slug.
---
[SecureRandom (apidock)](http...
eelcoj
replied
•
Solved
7
Rails
Updating sort_index attr on a collection of models
Yeah, I thought about that too, or grabbing before and behind. The gem is pretty quicky but it'll do in a pinch! Thanks for all the help!
Sean Washington
replied
•
Solved
10
Rails
How to add or call a particular action in all the controllers ?
You're going to want to store the action details somehow in a method as Jacob mentioned called `track_user` or whatever naming convention you deem fit. You'll probably have to write the method tha...
nynhex
replied
•
Solved
5
Rails
Deck Builder App. How do I query only decks you can make with the cards in your inventory?
Thanks Francisco! I corrected the typo.
Matias Fernandez
replied
•
Solved
8
Rails
Everyone's Been Bitten Before - Whitespaces/Unwanted Characters in User Input
Hey Chris, thanks for the awesome and details response, and so quickly too!
Great details consideration there, I think you're right on the money with the two points around callbacks and gems/depe...
Nick J
replied
•
Solved
3
Rails
What text editor are you using for GoRails Forum?
Thanks Jacob!
Awesome Chris! I will take a look.
Lauro
replied
•
Solved
5
General
[HATCH] Error deploying app
![bill bill bill bill](http://i.imgur.com/F0sAGUr.gif)
Chris Oliver
replied
•
Solved
4
Rails
Autoloading models not working
Ah glad you got that fixed. I was going to reply yesterday and got distracted. I figured that there was something up with the folder naming and the naming of the classes. Rails always expects you t...
Chris Oliver
replied
•
Solved
3
Rails
why drop down menu (Account Setting)is not showing in sidebar?
i found the problem here , some css class issue
naveen kumar
replied
•
Solved
2
Rails
How to add ssl to the CDN of AWS
I got it working. I need it to use ssl with a wildcard for subdomain for the assets. Now im using cdn.mysite.com with dns and works great.
Francisco Quinones
replied
•
Solved
3
General
Is it necessary to use authentication with an API if there aren't really any 'users'?
EDIT: Yeah, guest users / anonymous users are overkill. I just dont need traditional authentication at all.
Greg Blass
replied
•
Solved
4
General
why destroy action is called two times.
when i put this link_to in the modal it automatically started working correctly . You are right modal trying to update after the destroy , the code is working fine now.
naveen kumar
replied
•
Solved
7
Rails
Get Paperclip file before save
Turns out it is as easy as this
```
Paperclip.io_adapters.for(model.attachment).read
```
I tried this piece of code yesterday but didn't work and only gave me nil. The cause is I write that code ...
Agung Setiawan
replied
•
Solved
3
Rails