How do I pass params to Active Record Model has_many?
Hello everybody,
I have a model: account.rb, with has_many condition like this
```
has_many :purchases, -> { where(available: true, workspace_id: nil).order(id: :desc) }
```
Now I wan...

1
Rails
How do I migrate rich text data from ckeditor to actiontext?
Just upgraded my rails app to rails 6 so decided to switch to actiontext and looking for how to migrate my data from ckeditor to actiontext

2
Rails
How can I get a file object from active storage to attach to a different model?
Found this link on how to reference a blob for use with another model.
https://github.com/rails/rails/issues/31674

2
Rails
Using elasticsearch/searchkick to run a search bar via my navbar and show results in a search.html not index.html? ..
Hello,
I just finished going over Chris's two great railscasts dealing with search. However, I wanted to put my search bar on my navbar so that whenever someone searches the results I will be take...

1
General
Deploy rails project using subdirectories
Hey!
You may try nginx rewrite module - https://www.nginx.com/blog/creating-nginx-rewrite-rules/

2
Servers
My html.erb view is not being loaded with style, after ajax submission.
0
I have created a partial that gets rendered on my index page, via AJAX. This works flawless. However when I access the route, that i also want the rendered partial to show up on, it renders wit...

1
Rails
User_signed_in? doesnt work
It would certainly help if you'd provide some of the actual code. The error you're having is that the method `user_signed_in?` does not exist.
Here are some points I'd suggest you check:
- what i...

3
General
How can I do modeling for items?
Hello all,
Items Category contains general information on that category whether it can be taken on a flight. http://192168101.com/
What I need to here is, if items and the categories are already e...

1
General
How to build simple HLS streaming service (without third party service)?
For some reason, I serve local MP4 videos in Rails ActiveStorage. It works fine.
Now I want to change it **from MP4 to HLS, but it seems weird to store many small pieces in ActiveStorage** (It seem...

1
General
Is there an episode on Post Production Updates?
Yeah, that's what I thought, too. Thanks for answering!
https://happywheels2.io

4
General
Stimuls Reflex
Hello 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 ...

1
Rails
How to run rails initialization code that relies on all classes being loaded?

3
Rails
How to link happening of API calls to tab switching in RoR ?
The 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 a...

1
Rails
jQuery.ajax url: rails
In 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_ta...

1
Rails
Ruby & Rails Courses
Sorry for asking on a one year old thread. But any beginner courses that are out

6
General
Looking to hire strong Ruby on Rails engineers
We are the leading fintech company in Austin texas. Open to hiring across the country. Have a 50 person engineering team and looking to grow. We are solving difficult problems in the vertical so...

1
General
A few issues with tidying up @mentions
Answering 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...

2
Rails