
Rails App production(Droplet DigitalOcean) Assets Issue
0
Rails
Hi,
So i deployed my rails app on the digitalocean droplet, its using webpacker. So when i go to my site, css and js are not working while i get this in the console:
"rails_app/packs/css/applicatio...
SLLAF posted

How do i display devise sign_up page error messages ?
0
Rails
I have a problem that whenever iam trying to sign_up and leave all fields empty i don't get any errors like "password can't be empty"..
but after refreshing the page and resubmit the same data i ge...
sasky621 posted

Eager Loading on Rails 5.1
3
Rails
Hi all,
Seems that the eager loding doen't work in my application. Please let me know whether I need to enable or configure anything. Here is th code for association mappings.
```
cl...
Ratnakar replied

Upgrading to Rails 7
0
Rails
Hi everyone,
I had a rails 6.1 app and thought I'd upgrade it to Rails 7 to enjoy the new features. I thought moving from 6.1 to 7 would be fairly straight forward, as I know there's people upgrad...
Tom Dringer posted

How would one go about sorting ActiveStorage has_many_attached objects?
6
Rails
Hey there,Just wondering if anyone can shed some light here as the Google search is pretty thin right now for ActiveStorage.Is there a way to a a property (say sort_order) to each of the has_many_a...
Tomas Valent replied
Solved

How to troubleshoot esbuild in Rails 7
0
Rails
With the arrival of Rails 7.0, i have tried moving from webpack to esbuild but struggle with it.
I know that theoretically, creating a file jquery.js and importing it in application.js
import jque...
Vorkosigan76 posted

Submit a form from different page
0
Rails
Hi everyone,
Hope everyone is well. I have a Driver form (which is basically the user - I can do current_driver and stuff) and one of the fields is a boolean checkbox for 'subscribe to newsletter'...
Tom Dringer posted

How to change value of data that retrieve without updating database.
0
Rails
I want to change the value of the data I retrieve from the database. For example, when the data I retrieve is negative, I want to convert it to positive. However, the change must not affect the dat...
Lusiana Siahaan posted

ActionText / Trix Editor
0
Rails
I'm working on upgrading an app from Rails 6.1.x to 7.0.1 with esBuild for JS. I am having trouble getting ActionText, in particular the Trix editor toolbar, to work correctly when running in `prod...
Mountaindog posted

What is the best way to import node_modules CSS in a Rails 7 Esbuild project?
0
Rails
Rails 7.0
Ruby 3.0.3
Esbuild / Tailwind
Question: what is the best way to import the CSS from a node package. After running the yarn add command, the JS loads very easily but as you know adding `im...
Stéphane Paquet posted

Pattern for Managing Third Party Integrations
2
Rails
I'm building a small internal app that is essentially glue between several open APIs. Namely, QuickBooks, G Suite, Stripe, and Twilio. Authorizing these third party integrations, maintaining toke...
William Kennedy replied

Having issue with Nested routes and form
0
Rails
I know this is probably simple for most of you folks, but I am trying to work through an area I am weak on in Rails which is forms with nested routes. First here is what I have...
Models
Topic - h...
Mike Chilson posted

Advanced search feature in ruby on rails?
0
Rails
I have a "score" attribute in my "sheet" model which updates daily . and I need to calculate the "average_score(n)" . and add a search feature where the "user" can search for sheets where "averag...
ratnarajsukale posted

Rails Routes
0
Rails
https://guides.rubyonrails.org/routing.html#using-resolve
what is the use of Resolve method in routes can anyone explain with good example?
any tutorial video link if available for explanation
Jay Kava posted

insert id into join table
1
Rails
Hello,
I would like add current id (document) and many user_id into my join table.
I use rails 6, but i don't find a documentation for add user_id and document.id into my join table.
I have a mo...
Hamd replied

Regarding Rvm installition.
1
Rails
how we install RVM, becasue above only rbenv.
pyscho replied

search and paginate inside of dropdowm-menu
0
Rails
I'm new to web applications in general, and I'm starting with Rails. I'm trying to create a _dropdown_ menu in the `html.erb` file using the `form.collection_select` command, but I'd like it to inc...
Hossein Vatani posted

How do render different show pages for my blog posts.
0
Rails
I have 3 different categories : themes, snippets, projects.
Each blog post must related with those three categories.
If anyone click post(assume related category is snippets), it display in diffe...
Medves Larisa Viviana posted

Getting stuck on this query
0
Rails
What am I missing? I have a model called Exhibit that belongs to a Request model. I have a Note model with a polymorphic relationship as the note can be about either an exhibit or a request but n...
Clint Baker posted

Does anyone know how to add logout functionality in JWT based Rails API?
0
Rails
what is the right way to give the session destroy method with JWT in rails API?
ratnarajsukale posted