
How do I nest two resources that are both polymorphic associations?
0
Rails
In my app, I have several models for various product types, as each product has different attribute types and I wanted to avoid using STI. However, I am using the same Review and Comment system for...

How to debug OAuth login in Rails with OmniAuth Discussion
0
General

A Look Into Routing Discussion
15
General
railscasts.com was first. you are like the google+ thing. which is cool for you :p. keep up with the good videos.
Andrew Schutt replied

Hotwire Modal Forms Discussion
25
General
Thanks a lot for this video! I see it's becoming a trend to add a `format.turbo_stream` response in all my controllers only if it fails.
Fernando Flores replied

The difference between Link_to vs Button_to in Ruby on Rails Discussion
0
General
Another trick is to use `formaction` for having multiple buttons in the same form without using any hidden forms.
For example:
```
<%= form_with model: @blog_post do [form| %>
<%= fo...
Ajay Guthikonda posted

What music gets you kept you motivated when developing?
8
General
Had an interesting message from a GoRails member (Jacob) which mentioned what music we listen to as we develop. It's a great discussion starter and could be cool to share playlists from Spotify, or...
Alan Reid replied

I actually don’t have a question for a change, but a comment
0
General
I’ve been on a few forums for Ruby and Ruby on Rails, and I’ve noticed that everyone is so nice and helpful. I’m a newbie, hobbiest and everyone has been polite and not snarky at all. Thank you all...
Rickwheeler1992 posted

Setup Ubuntu 14.04 Trusty Tahr Discussion
0
General

What could be the best way to deal with addresses in terms of database structure and perfomance?
2
Databases
I'm creating an app for my company. In that application there are a lot of addresses because for Owner, Store, Landlord, etc needs to have address.
At first I was thinking to create separate model...
Willard replied

How do i deploy rails 7 app on digital ocean with password
1
Rails
Hello my question is how can i deploy rails 7 app(api only) on digital ocean i have password not ssh key and my operating system is windows

What should I be using to connect react to rails backend?
1
Rails
Hello all, apologies if this has been asked before. I currently work with react and node/express for the backend, but have been playing around with rails on the side and have been really enjoying i...

how can i pass mailer_name into a method using noticed gem
0
Ruby
us = User.first
email = EmailDetail.find_by_name("Welcome User Email")
UserNotification.with(email_class: "UserMailer" , email: email.function_name).deliver(us)
i am trying to pass maile...
zunaira ihsan posted

Best way to handle accessing resource view in modal and non modal
0
Rails
Hey there,
I'd like to get some advice on how to handle rendering similar content like a show/edit for resource in modal or in full page render. Does it make sense to have multiple routes for thes...
Edwin Mak posted

i am a complete beginner, where do i start to learn ruby?
0
General
Hi, i am a student and landed here through github student dev pack, would like to learn ruby but have no prior coding knowledge. I would like to start with ruby rather than python or javascript. I ...
Guy posted

Looking for some good instructions for clean Rails install on Cloud9 with Bootstrap
0
Rails
Hey there,
I am starting a new project and I want to get it off to a clean start with Rails 7 and Bootstrap 5 on Cloud9.
After viewing some videos and going through the process a few times, it se...
chuckblake posted

Trying to relearn CSS and I'm stuck
1
CSS
I'm trying to figure out how to do a simple animation. I have a box with some text content, the idea is that the box only shows an h2 element until the user mouses over it, then it reveals the para...