How do I force users to complete their profile after sign up?
Use a `before_action` in ApplicationController to check if the user is signed in and has an incomplete profile. Then redirect them to the page for doing that. 👍
Chris Oliver repliedUse a `before_action` in ApplicationController to check if the user is signed in and has an incomplete profile. Then redirect them to the page for doing that. 👍
Chris Oliver repliedHey Tim! This actually might change very soon whenever the "New Magic" DHH keeps talking about gets released. There are a few good options currently that I like using: 1. Write a Stimulus JS con...
Chris Oliver replied • SolvedHey Houssein, You should contact support in Hatchbox, not on the GoRails forums. 👍
Chris Oliver replied • SolvedHello Chris, I am trying to do the calculation of a multiplication inside a div, the calculation comes from the values that enter in 3 inputs that are inside a Rails form, I want to do this using ...
Víctor Soto postedThe use-case is pretty simple, though it has challenged us. We need to make an API call as a trigger to the user switching tabs (in UI), & need to display data linked to that API call in the ac...
Pulkit Pradeep Gupta postedIn my code I have this button ``` Pay ``` In my code I have this button Pay Expand snippet when clicked on iframe opens from this javascript code ``` <%= javascript_tag do %> $("#c...
JP postedAre there any resources / demos / tutorials etc. that cover offline mode for app? i.e. your app still needs to work where there is no internet and then sync back to the host when you connect. Any...
Dan Tappin postedAnswering the second half of my question from a response Benjamin Hargett made in the video. Fixing the `_pasteHtml` method with: ```javascript this.editor.setSelectedRange([position - endPos + st...
Mylan Connolly replied``` $: 'jquery/src/jquery', jquery: 'jquery/src/jquery', jQuery: 'jquery/src/jquery', 'window.jQuery': 'jquery', Popper: ['popper.js', 'default'] ``` why does the one above...
JP postedSo I've spent the last couple days working with `accepts_nested_attributes_for` in an effort to understand them (I've never used them before). I've used a variety of sources (GoRails video of cour...
John Magee postedCheck 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 IP ...
Jacob Montgomery replied • SolvedHi, I am fairly new to rails and i'm trying to figure out how to get a user signed up first and later after they go to account confirmation link mailed to them ask for password. I read about it on...
Brijesh Wawdhane postedIn my rails application I have `categories` which are classified based on location. I want to cache these categories on serializer level by using `jsonapi-serializer`'s caching method `cache_option...
mohamed31195 postedPG::UndefinedTable: ERROR: relation "commentables" does not exist when rake db:migrate
Berkovich Pavel postedI have a function in my app that emails out a PDF of any invoice as an attachment. Everything works fine if its run in production on the web worker. Of course this bogs the app down and I want to...
Criss Frost postedHey everyone, I'm using a Railsbytes script to install bootstrap 5 alpha; https://railsbytes.com/public/templates/VB0s5v. However, I can't get any of the tooltips and popovers to work. Not sure ...
Jacob Hedengren postedIs there a way to detect users leaving a page and alerting them in rails or would it be better to use jquery? Thank you!
JP postedHi Justin Two things you could look into depending on what more specific you’re looking for. If you want to get going easy and have something in your own app. I think something like Chartkick co...
Mads Obel repliedI'm wondering about the best way to approach scheduled notifications. Having users who set their timezone and pick the best time to receive a regular notification (can be daily or less often), I c...
Arnaud posted