
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

Rails 5.0 - How to implement in-place editing without using best_in_place gem
1
Rails
I'm building an Events site using RoR which I've just upgraded to v5.0.1 (not moving to 5.1 just yet). My events show page has a comments section at the foot of the page which, so far, only has a c...
Humusk1 replied

Guide to installing/configuring Rails 7 on MacOS Monterey 12.01
0
Rails
Any idea where I can find an installation/configuration guide for Rails 7 on my MacOS Monterey? I have seen some tutorials on GoRails for specific Rails 7 issues, but no tutorial on how to install ...
Joseph posted

Regarding 2 imports when running `rails hotwire:install`
1
Rails
Hi,
When running `rails hotwire:install`, it shows 2 warnings:
```
You must import "./controllers" in your JavaScript entrypoint
You must import @hotwired/turbo-rails in your JavaScript entrypoint ...
Askar replied

(Active Storage) How to check for an existing blob in another AWS bucket?
1
Rails
Hi there,
I'm trying to do something quite simple, which is:
- A user uploads a video to a chat (a message can have many attachments)
- The video uploaded automatically gets transcoded with Elast...
Chris Oliver replied

Rails for Beginners Part 24
1
Rails
A great tutorial. I'm a little stumped and looking for a little guidance. I followed along with the tutorial and added on ```<%= button_to "Connect Twitter", "/auth/twitter", method: :post, clas...
Jeremy Lincoln replied

FTX.com REST API POST Authentication FAILS with Ruby on Rails and net/https
0
Rails
Hoping for some help as this one has me baffled...
I created a user account and API credentials at FTX.com.
They have an interesting Auth setup which is detailed here: xhxtxtxpxsx://docs.ftx.com/...
Joergen posted

How Do I send a "Turbo Hotwire Broadcast" only when a record with a specific name value is created or updated, and for a specific partial?
0
Rails
Hello, you have a great community in Gorails. I have a Rails View with 3 numerical integer indicators: speed, temperature and pressure.
These values are stored in SavedObject model as serialized ...
Luis Cuevas posted

Question on getting started tutorial
1
Rails
Hi,
I've been following allow with your awesome series, thanks really well done. At about lesson 20 when it comes to setting up token for user password reset email I've tried using user.signed_id a...
Immase replied

Trello Clone with VueJS and Rails
0
Rails
Wondering if anyone could shed any light on how to only return cards for the logged in user?
So basically when a user goes into that board, he would only see the cards he has created.
Alan Reid posted

Pagination with Stimulus
3
Rails
I'm trying to migrate to Stimulus and I thought a good place to start would be to move all my UJS style partials that are using jQuery to Stimulus. It would be great to use one Stimulus controller ...
Cory Johnson replied

eager loading with custom joins
0
Rails
problem statement:
Can I write a custom join for the included association?
e.g. Course.includes(:course_details).joins(left outer join course_details on course_details.......)
I want to add more ...
Daud Sadiq posted

Contact form that sends email directly from the page
3
Rails
Hello. I'm currently building my web dev portfolio using Rails. I just graduated coding bootcamp and it's all still pretty new, now that I'm doing it on my own. On my contact page, I just want to h...
Bri replied
Solved