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
Set a start date for Chartkick / Highcharts combination
Perfect. Yeah the groupdate gem is handy for that stuff. You can write it yourself, but it's pretty annoying to remember it all. Works super nice with Chartkick.Chris Oliver replied • Solved
error while setting up ruby on rails
solved using https://discussions.apple.com/message/12602272#12602272oliver replied • Solved
How do I display a list of Favorited Posts from forum on the User Profile page?
Hey Erik, Yeah it seems as though it's not accounting for the post favorites for the user after checking rails console so I think I found my main issue in the `favorites_controller`. I need ...Rob Sturcke replied • Solved
Update and validate multiple entries
Hmm, this I'm not sure of. Someone with more knowledge of transactions and/or validations may have a solution if it's even possible... From my understanding, a transaction gets rolled back as so...Jacob Montgomery replied • Solved
simple mde duplicates
@Chris After spending almost half a day on searching why the bug was still occuring even if I tried your code, I finally found the solution from [this answer](http://stackoverflow.com/questions/206...Lykos replied • Solved
How do I submit multiple checked items?
Sorry was just testing something out :)Alan Reid replied • Solved
How do I make an app to get a video by url from youtube download it / process it/ and uploaded to a local db?
I think you should see the script first. Then make it using your own method. With a certain program or with your own coding. Look at my site. I've created it in PHP Script. My site can easily downl...Jugaari Bros replied • Solved