What is the best way to house view logic?
Thanks Jacob, I'm definitely leaning to putting into the ViewModel to keep all Business/View logic in a single entity, was curious what the Rails community's thoughts were. Appreciate the respon...Mark Kadlec replied
How do i implement load more comments or reply
wow no comment or reply .... go much for membership:)khemlall mangal replied
Setup for roles and authorization
Excellent!! Glad to hear you got it working, and good to know Rolify isn't necessary for this kind of setup. Good luck!!Jacob Montgomery replied • Solved
Multitenancy with different account types
I'm just getting started on a multitenant application for the lending / finance space. I've looked into Apartment, Milia, Act_as_tenant, etc. but none seemed to really fit what I'm trying to do. ...Robert Farese posted
Implementing global app settings
Thanks Andrew. Wanted to make sure my head was in the right place and I wan't missing something obvious.RJ McCollam replied • Solved
How do I pass an id to a foreign controller?
Hi Mark, I'm with Jacob. If you could show the code that would be great. Also, what are you trying to do? Do you have a single page with multiple objects executing different types of CRUD func...Robert Farese replied
Download large files from an external server with permissions
Hi Jon, I'd try using an s3 bucket on AWS with either the carrierwave gem or paperclip gem and then secure the s3 bucket to only allow authenticated users to access it. Here are a couple of links ...Robert Farese replied
Error with the Scheduled Posts Episode
Thanks James. Unfortunately no change with the above addition of `.present`.Simon Cooper replied
Logic on nested forms/related tables
Hey Robert. Thanks for the response. I've ended up just going with a triple nested form: ``` class Roast < ApplicationRecord has_many :countries end class Country < Applicati...Simon Cooper replied
You need to scope it to currently logged in user. if you use Devise you can use something like `current_user.personal_record`. This can be done in the controller's "set" before_action, or in the pr...eelcoj replied
Why CKeditor is not working in production?!
Hi Simon, I don't even understand what you've said, I'm kinda new to all of that! 😂 but I managed to make it work. After this error I wasn't able to upload images using carrierwave with ckeditor bu...Muhammad replied • Solved
Hatch login Error
No problem! I just disabled it temporarily for you. You should be able to login without it. Let me know if that works!Chris Oliver replied • Solved
[ActiveRecord::RecordInvalid - Validation failed: Blog must exist]
Thank you Jacob, its been sorted now. Much appreciated!Linards Berzins replied • Solved
How do I fix a route -- trying to do an Edit/Update
I'm getting the following error when editing and then updating a blog post: *From Chrome Browser* "No route matches [PATCH] "/authors/posts" ***From Rails Server (command line)*** ActionCon...Royal Summers posted
How to Setup Multiple User Models using one login with Devise.
Have you taken a look at Devise Roles? It will make your life a lot easier this way. https://github.com/plataformatec/devise/wiki/How-To:-Add-a-default-role-to-a-UserAlan Reid replied
Have filed entry populate fields in two tables - Nested Forms?
Absolutely Andrew. Here's what I have. An update from the above, is that I now have the 'distillery' field showing in the new form, but when I submit the form, i get the error: ```Distillery m...Simon Cooper replied
Issue with Capybara file uploads testing
Hello! I have issue with uploading files by Capybara Rspec Selenium. Here is more details about it: https://stackoverflow.com/questions/48499129/capybara-upload-images-issue Please help!Anton Storchak posted
How to integrate mailgun in a rails app
Looks like this gem is pretty complete: https://github.com/HashNuke/mailgun#mailing-list-members edit: but not recently updated.eelcoj replied