Is it Ok to use "Error" as a model name in Rails project?
Alex, I think you are safe using `Error` has a class/model name as it doesn't collide with stdlib in Ruby or Rails. In fact I have a similar model in one of my older apps and it never caused is...shakycode replied • Solved
How can one setup a service booking app with time limitations?
Thank for sharing your solution Jacob (and Drilon for asking this question before me!) I am going to use fullcalendar to display available appointments (clickable). Staff users will need to ente...Luca Rossi replied
error when i click on follow button ... Relationship is not working
All i am trying to create follow and follwers relationship and i am experiencing some issues. Chris i think you should create a course on this as well. i am getting issue undefined method `id' for ...khemlall mangal posted
Actioncable production settings when using heroku + custom domain
Or do I need to just migrate to Digital ocean in case it's a DNS problem? I'm doing a CNAME for example.com => example.herokuapp.com for my DNS settings.Masud Hossain replied
Creating nested attribute with two parent attribute.
Managed to solve it after much tinkering. If anyone has the same problem, I called a before_validation to associate the message with the project in **user.rb**. ``` private def set_project...Ariff Munshi replied • Solved
After I submit(click) the form(submit input tag), the submit tag become disabled, how can I avoid this?
Try changing the "Add to Cart" "button" so it's not an input field. Try making it a submit button (e.g., "") or just a buttonPatrick Berarducci replied
Administrator creates user accounts with Devise gem
I have a project with Devise gem. I need to create a user with the admin account. If I am logged in with the admin account I can not enter the path / sing_up. How can I access this page?Nicolás Bobb posted
Multi tenant best strategy
Wow Aniket, Thanks you so much for the offer. I get the idea, the account / tenant owner are going to be global and then this tenant owner should invite the users to the private section (user mo...Giancarlo Corzo replied • Solved
Rails API backend with Electron Frontend
Hey so here is what I referred to to build or rather to understand how to build https://scotch.io/tutorials/build-a-music-player-with-react-electron-i-setup-basic-concepts There also some materi...Aniket Rao replied
Caching static pages without CSRF token
Great! I'll keep CSRF token for static pages then. Thanks for your help!Nicolas Brousse replied • Solved
Dynamically create sass variables in rails
Inline styles are not ideal, you could always create a class, and reference it in the `header` in a `style` tag. Then inject the colours into that? ``` ``` then maybe set the colour in the...Alan Reid replied • Solved
Hey Aime, I don't believe there was much (or any?) CSS in that episode that I wrote. All the source code for that episode should be here: https://github.com/gorails-screencasts/gorails-episode-7...Chris Oliver replied
After adding the activeadmin gem, my previous style changed, How can avoid this?
yes, solved! Thank you ! After I manually require scss files, no longer use `require_tree` it works fine. ``` *= require_self * require_tree . // not used * *= require addresses.scss ...Larry Qu replied • Solved
cancel actioncable connection for unauthorized users?
Followed the series on action cable notifications and setup the meta tag so that action would not try to connect if the meta tag was present. Here is my code. ``` $(document).on("turbolinks:loa...Matt Taylor posted
Mailboxer: How to attach a file when starting a new conversation
I am using the Mailboxer gem. When creating a new conversation, the message that is created at that point is does not attach the file I am uploading. new.html.haml = form_tag conversations_path...Mehdi Mehrtash posted
How do I add multiple attachments to Mailboxer?
I am using the Mailboxer gem. I have enabled multiple file uploads for the attachment field. What is the best way to set up my controller so it saves all the attachments? Would making a new model c...Mehdi Mehrtash posted
How to setup the model associations for a simple e-marketplace?
Cross posting this from Slack: I think your setup looks alright. Any books where the `bought_by` is nil means it’s not been sold. When you do checkout you can charge the user and then assign the...Chris Oliver replied • Solved
How to write a conditional in a create action?
Decided to go with Refile instead of Shrine. I found it easier to work with and was able to implement everything I needed in two days, while I was still wrestling with Shrine after two weeks. I pro...Adrian DeGus replied
Cookies vs token for authentication
@chris Thanks for the resources and explanation! I'm using token based authentication on my iOS app which is of course connected to my rails backend (my friend developed the iOS , not me). I sh...Masud Hossain replied