Move data from one table items to another table items
Hi, hope you are fine. I am having a task in which BasketMenu has many BasketMenuItems, and there is another relation of OrderMenu has many OrderMenuItem, and BasketMenu has many OrderMenu. My task...Haider Ali posted
Stimulus based ActionCable Subscriptions - possible race condition related to turbolinks preview?
Hi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it s...Craig Chamberlain posted
Rails API not able to destroy session
I am using Rails API and devise for authentication but when sending a request to destroy the session, it doesn't return any response other then status 200.It returns the same response no matter if...Smit Sanghvi replied
Why would I be receiving a NoMethoError when I try to go to the trips edit form?
Could you share the link to your code and exact error message? Without them we can just guess, not dig into the problem.Masafumi Okura replied
Configure ruby projects of old version
This would help you create new Rails apps with different versions. Bundler already handles separate Rails versions for each app, so that's already handled for you. It installs whatever is in the Ge...Chris Oliver replied • Solved
Do you know how to permit these Devise sign up params within existing my set up?
I am using Rails 6 API with the Devise gem and Devise_JWT gem. It is early stages but currently Devise is not submitting default params to the registration controller such as email. I am receiving ...georginavweston posted
Anchors being ignored when added to redirect_to path in controller
Oh my gosh RJ! Thank you!! (I signed up to GoRails just so I could thank you!) I honestly have been dealing with this issue for HOURS, when I finally came across your post! I mean it should be as s...Miri Lama replied • Solved
Solid design pattern folder structure
How do we organize the model folder according to the example on the first episode of solid design ? Should we make another folder app/scripts or whatever ? How these new classes are imported into m...Jules JAMET posted
Slow API Call any help?
I call the api for some lifestyle nutrition objects using the bellow and it returns 700 objects. Its currently taking 25-30secs. The lifestyle items do not have any attachments so don't understand ...Stephen Sizer posted
Displaying search results from an API
I am working on a small project where users can search through an API (https://github.com/games-directory/api-giantbomb) via a search bar. However, nothing is displaying on my index page with the r...OnRice replied
How to build a GCS file browser & manager in Rails?
Hi Chris, Awesome work with GoRails!!! I'm a big fan! I'd like to build a Google Cloud Storage bucket file browser and manager. The key features would be browsing files on the bucket and dow...Adam Decker replied
NoMethodError in ImagesController#import
Good Day , I have an error while upload csv file into my webpage Error NoMethodError in ImagesController#import undefined method `import' for Image:Class Iam fresher into the ruby on rails plz help...Vikram posted
**ActiveModel::UnknownAttributeError in ExcelsController#create**
Good day ,im usings ruby on rails (version 3) im trying to upload a image on my webpage but i keep on this error ActiveModel::UnknownAttributeError in ExcelsController#create , This is my first pro...Vikram posted
I want to use devise gem for normal authentication and api authentication with devise-jwt gem. Is it possible?
Hi Nejdet. I have exactly the same problem. Can you give me some ideas or tell me how you resolve it?Carlos Vazquez replied • Solved
I'm lost and can't find the way out
Hey, Forms normally send a POST request and since the user is saving data, you definitely want a POST. You'll need two routes for this, one to show the form and one to save the data after the for...Chris Oliver replied • Solved
Issue with Nested Forms in Rails 126.96.36.199
I think the main problem was that you were calling `@client.shipping_addresses.build` in multiple places, so the values from the form were probably getting overridden. - Remove `@client.shipping_a...Steve Polito replied
How do i use a username instead of an email?
Thanks OP for your reply. I also would like to know more how to add username instead of an email.Michael Lynch replied
How do I check if a model inside a model has been liked?
Hey Tolase, Assuming your poll_items are scoped to your polls and your likes are scoped to your poll_items you can scope your likes to your polls by adding the following to your polls model: has_...William Murphy replied