**`@sites.currency.downcase.to_sym`** worked a treat buddy, thanks :)Alan Reid replied • Solved
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
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
Cool. I'll try it this afternoon. Thanks so much again.Melanie replied • Solved
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
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 hahaAlan Reid replied • Solved
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...Alan Reid replied • Solved
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
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-s...Alan Reid replied • Solved
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:...Sillico replied • Solved
User Badges Features
It would be great to see an episode. And the Draper gem makes that easyDmitry Amelchenko replied • Solved
What is the best way to determine the country/currency for a user?
Check out the Geocoder gem => https://github.com/alexreisner/geocoder and http://stackoverflow.com/questions/34816490/get-remote-ip-address-in-rails-model What you'll want to do is snag the I...Jacob Montgomery replied • Solved
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
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
Ruby version stuck on macOS
Weird, rbenv _should_ be in your path.Chris Oliver replied • Solved
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
Devise User Follow System
Michael Hartl does a video Tutorial via the Learn Enough site, you need to subscribe though. It's good but its everything thats in the book.Alan Reid replied • Solved
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
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