How to use <script> in Rails 7

4
Javascript
How do I display a that holds a url with the .js I want to display. For example, &lt;script src="https://greatsite.com/widgets/awesomescript.js"&gt;. I am very new to Rails, been learning for only...
Clay Dennis replied

Bundler's New Ruby Version File Option Discussion

1
General
Quick note, some of the documentation for some Ruby version managers (such as `chruby` which I use) instruct users to store the string literal "ruby-x.x.x" with the version in the `.ruby-version`. ...
Chris Oliver replied

Can NOT watch videos in China !!!

1
General
There are almost no Ruby tutorials in China, I chose this platform to study. But all your videos are on YouTube, Chinese consumers can NOT watch them. Do you have a solution. Thanks.
Chris Oliver replied

Start development instantly using devcontainers

0
Rails
Hello everyone, I learnt about devcontainers weeks ago and start using them and they are very helpful and easy to use. So, I putted this GitHub repo with a starter devcontainer template to setup an...

Is there any gem to transform pdf files to html?

2
Ruby
i need to convert a pdf file to html or some way to edit an existing pdf

Understand Scope Returns Discussion

4
General
Excellent episode Collin! Another tip is you could keep the `future_events` scope returning a Relation. And possibly break the sorting out in case it’s used for other queries as your application g...
KRUPA replied

Parallel ActiveRecord Queries with load_async in Rails 7 Discussion

2
General
Are there any downsides to using load_async on everything if we know for a fact that we’ll be using the data during the request? It seems like a no-brainer if we can keep db connections in check?

Extending Rails (Gently) Discussion

0
General
This was a fun discussion with Kasper, we talked for quite a bit longer but it was edited to make it shorter. Also, be sure to check out Kasper's Open Source retreat if you want to hear more and ...
Kentastic posted

Best way to relate models on Jumpstart Pro

1
Ruby
Whats the best way to relate models? Im building a real estate app with Jumpstart Pro and would like to add property owners (contact/users) to the a property, so on the show page of a property I ca...
Oliver Sawtell replied

Editing Passwords Discussion

0
General
Hey Chris! Enjoyed the video! Any issue with using: ... @password = Password.new(password_params) if @password.save current_user.passwords &lt;&lt; @password redirect_to @password .... In th...
Ann Cascarano posted

MySQL 8 and Rails 7 JSON fields

1
Databases
Rails 7 and MySQL 8 support JSON fields. Migrations support them. I have been using a combination of raw MySQL and other techniques to extract data. What's the proper ActiveRecord way of searching...
Joseph replied

Tracking Metrics with Ahoy and Blazer Discussion

20
General
Awesome episode! Thanks Chris!
CF Pro Tools replied

Slack forum notifications

3
Site Feedback
Just testing out slack forum notifications.

Will there be GoRails as open source project?

1
Rails
There are a lot of cool stuff that made with love. It'll be very usefull to learning advanced stuff from source code of GoRails

Prevent spam bots from hitting app

7
General
Hi guys and gals Wasn't sure which category to put this in but here goes anyway... I have a Rails 5 app in production hosted on Heroku. I recently noticed a particularly high load on the servers ...

Mapping API Resources & Handling Pagination Discussion

2
General
Looks like the code in this episode has evolved over time, I'm watching it (paid my subscription too) in 2022, post pandemic, and the source code is quite different now at GitHub, where can I find ...
Brandon replied

Rails 6/7 Template Recommendations for SaaS

1
Rails
Hi 👋 Can you recommend any good SaaS oriented (e.g. including user authentication, admin panel, stripe integration, basic landing-page) templates based on Rails 6/7 which don't require a yearly su...
Chris Oliver replied

Limit the file size of Direct Upload ActiveStorage and ActionText Attachments

0
Rails
As the title says, I'm looking for ways of limiting the file upload size of both ActiveStorage attachments and ActionText attachments. I know this problem will require both client side and server s...
Tonksthebear posted

Need guidance regarding my project: Neophyte LMS system

2
Rails
Hi guys, I'm developing a LMS system (in Rails 5) for my university project which is about training new employees in any compnay by setting projects and challenges (sequentially) to start with. For...

routing problem with devise

0
Rails
my root path is root "static_pages#index" but when i hit the url in development it redirects me to user/sign_in of devise..

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.