Changing currency
**`@sites.currency.downcase.to_sym`** worked a treat buddy, thanks :)
Alan Reid
replied
•
Solved
3
Rails
Can I move parts of Shrine config to environments?
DANG. That's a rough lesson to learn. Glad you didn't have to pay for any of that and I can't imagine how rampant that problem is for Amazon and other places.
Chris Oliver
replied
•
Solved
7
Rails
5.0.1 out of RC?
Almost forgot to post an update. Looks like everything deployed just fine with no problemos! 😎
Chris Oliver
replied
•
Solved
5
Rails
SEEKING FREELANCER - Javascript configuration
Cool. I'll try it this afternoon. Thanks so much again.
Melanie
replied
•
Solved
18
Javascript
Apartment and Sidekiq
the problem was profile
`worker: bundle exec sidekiq -e production -C ./config/sidekiq.yml `
chage it to
`worker: bundle exec sidekiq -C ./config/sidekiq.yml `
Francisco Quinones
replied
•
Solved
5
Rails
Meaning of “Expected string default value for …”
It is odd, but least its sorted and i can now build projects again. Hopefully this will help someone else who faces the issue cause there wasnt much out there.
Trust me to run into the issue haha
Alan Reid
replied
•
Solved
7
Rails
Jekyll, MiddleMan or CMS for a blog site?
For your guest post i would simply use the front matter. The following example is from a post off my site.
```
---
layout: default
title: Setting up Rails and Jekyll (Part 1)
typ...
Alan Reid
replied
•
Solved
4
General
How do I iterate over an array of nested hashes in a view?
Haha, making it harder is the easy part - making it easy is the hard part :)
Anytime!
Jacob Montgomery
replied
•
Solved
8
Ruby
Should I use a gem like paperclip or carrierwave to handle PDF and docx uploads?
Dont forget the Shrie videos Chris made, i found them really handy. And i would go with this over CarrierWave now personally.
First one is here https://gorails.com/episodes/file-uploading-with-shrine
Alan Reid
replied
•
Solved
5
Rails
DRY Validations for Similar Models
In addition, here is the code I used for the solution Chris suggested, for anyone interested.
```
# /models/concerns/location_validations.rb
module LocationValidations
extend ActiveSupport::Conc...
Sillico
replied
•
Solved
5
Rails
A `has_one :through` association issue
Thanks again, Jacob. Makes way more sense to go about data/models/associations that way. I always went for the more "visual" way to make it easier to grasp. ✔️
eelcoj
replied
•
Solved
8
Rails
Install Ruby from binaries on production: do or do not?
Cool! I think I'll use this approach in my Ansible playbook for provisioning app server instances. And the "long path" with ruby-build/ruby-install will be there as a fallback option, in case pre-b...
Alex Musayev
replied
•
Solved
4
Ruby
Ruby version stuck on macOS
Weird, rbenv _should_ be in your path.
Chris Oliver
replied
•
Solved
5
Ruby
Getting an simple Ajax request on Rails
Solved the issue - The problem was 4 fold: Turbolinks, my controller file for forum_threads, index.json.jbuilder, and my coffescript file. Hope it helps someone else learning. I have provided the a...
Omar Khedr
replied
•
Solved
2
Rails
Use coffeescript or javascript in rails form to grab model attribute
Hey John, thanks for chiming in on this thread. You're right, I wasn't targeting the selected object. Doing `$('select#location_id :selected').data('modifier');` gave me an output of the modifer ...
shakycode
replied
•
Solved
11
Javascript
Having different rails and gems versions installed on dev environment ?
Nah, no reason to use gemsets anymore because Bundler does everything they do, but in a better fashion. Because your Gemfile is included inside your repository, you always know which gems and which...
Chris Oliver
replied
•
Solved
4
Rails