
Flexible Nested Attributes
0
Rails
I'm working on a practice "Magazine" application, that has **Issues** with nested attributes of **Articles**, which has multiple nested attributes that are **Content Blocks**, which can be one of s...
Terence Devine posted

rails5 + heroku + cloudfront + fonts
7
Gems / Libraries
I tried to configure a rails5 app (deployed on heroku) with cloudfront for assets and fonts. I could make it work for the assets, then I tried to add the config for the fonts as well, but I just sc...
Dev replied

How do I build a multi step wizard in ruby with StimulusJS
6
Ruby
Hi GoRails,
I would like to make a multistep wizard in ruby on rails without making use of the wicked gem. Just stimulusJS and ruby :)
Could you make a tutorial about that?
Thanks in advance!
Fatih replied
Solved

simple_discussion gem vs. discourse for lightweight forum
3
Gems / Libraries
Just checked out the simple_discussion gem (extracted from the GoRails forum here). It looks like exactly what I need for a small forum project.
I'm wondering if anyone else has used the gem in p...
Chris Oliver replied
Solved

Parsing a API source, but the JSON souse is not updating (Cache?)
2
General
I have coded a rake file to monitor and fetch data from a website that has this data in JSON format. The following is the actual source of this data
https://www.thegazette.co.uk/company/07877158/f...
Jacob Montgomery replied

Trying Out Bootstrap 3.0 Discussion
4
General
Hi, I've been trying to install bootstrap 3 with rails. I keep getting this issue when I run the server:/.rvm/gems/ruby-1.9.3-p385/bundler/gems/bootstrap-rails-ff63b9787a34/lib/bootstrap-rails/engi...
Someone replied

How do I temporarily redirect stderr in Ruby on Rails?
2
Rails
Hi, gays. I would like to ask for advice.
I asked this question on [StackOverflow](https://stackoverflow.com/questions/56828359/how-do-i-temporarily-redirect-stderr-in-ruby-on-rails) , but I did no...
Alexey replied

Symbols vs Strings Discussion
15
General
Nice! Some of my upper division CS students struggle with the notion of symbols, and I'll point them this way.

Forcing a file to download instead of displaying in the browser
3
General
I've got a website where users can upload things such as a mp3 and the files are being stored on Amazon S3.
If a user clicks the file it just seems to open as a streaming file in the browser. I c...
Chris Oliver replied

How do i add a ":unique => true" to an already existing reference?
2
Rails
I have my DB already set up, and it references another table. I need to add in `:unique => true` so i don't get duplicates. I cant however drop the table and start over as there are items in the...
Félix Landry-Audet replied
Solved

How would you implement a feature like Youtube's "watched" feature.
2
General
Hi Chris,
I'm interested in implementing a feature similar to Youtube's watched feature. Where after you've watched a video, a small semi transparent overlay is placed over the video thumbnail wi...
James Ferguson replied

A Gorails "Path" series to learn the Rails way of doing Javascript?
2
General
Hey Chris. I'm coming back to Rails after some 2 years.
While I'm able to pick things up, I'm confused by all the new rails way of doing Javascript and Ajax.
Before I left, there was only stimulus...
Chris Oliver replied

How to use Rails Request.js Discussion
4
General
Hey Chris, this looks like a great addition to rails and thanks for adding the turbo stream support!
I'm working on an infinite scroll where at the end of the page a stimulus controller gets the n...

How to mark a post as read, so that it won't show up again for a user?
6
Rails
I was looking at the unread gem but it seems a bit complicated and many seem to run into difficulty with it.
Instead, I was thinking of adding an 'already_read' column (boolean) to the post mode...
Monroe Mann replied

Use datatables like handsontable
1
General
Hi,
I would love to see a episode that explains the use of json/ajax and load and save back data back to the server. For example i want to use handsontable (http://handsontable.com/) but i cant lo...
Chris Oliver replied

Stimulus Autoscroll and Broadcasting Messages Discussion
6
General
Very nice, I'm enjoying these videos where you walk through the approaches and build on them piece-by-piece! One StimulusJS-specific update could be converting your message partial to:
```
...

Rails for Beginners Part 36: Background Jobs with Sidekiq Discussion
16
General
I had to change the timezone in config/application.rb. Rails default's timezone is UTC + 0 and my own timezone is UTC + 1. So at 8:00pm when I was trying to publish at 8:01pm, Time.current was ret...
Shaun Smerling replied

Episode Suggestion: Normalization
0
Site Feedback
I've identified a tendency in myself that I feel like, if overcome, would make me a considerably better developer and produce better software. Here I'll try to characterize/analyze it:
**Descripti...
Chris Zempel posted

How can I add multiple dynmic nested fields in the same form?
0
Rails
I have a registration form that allows tournament directors to select which fields they will request when participants register for a tournament. I followed a video to add dynamic nested form fie...
Scott Moore posted

ActionCable Part 3: can't write unknown attribute `user_id`, what am I missing?
2
General
Having some trouble figuring out what I'm missing with submitting a message in the chatroom, I get the error for my ```messages_controller.rb``` saying that ```can't write unknown attribute `user_i...
Chris Oliver replied
Solved