
Today I Learned!
1
General
I thought it would be fun to start a thread where we can post the things we've learned recently.
Today I learned that `__dir__` returns a full path while `File.dirname(__FILE__)` returns a relativ...
cjilbert504 replied

Best practices for structuring reusable frontend components (coming from Angular/React) ?
0
Rails
Hey I'm an Angular developer diving into the Ruby on Rails, and I'm trying to figure out the best way to structure reusable frontend components, like buttons, in a Rails project. Especially because...
Cengiz Gürtusgil posted

Changing Contexts To Objects With IRB Discussion
2
General
pretty neat! Thanks for sharing
phanilkumar replied

can't install rails
3
General
i have sqlite3 3.43.2 and ruby 3.2.2 on windows 11
I'm trying to download rails but nothing seems to be working. not homebrew, ubuntu or gem install rails bundler --no-document
i'm not sure which t...
anamint minths replied

convert from svg to png in active storage
0
Rails
Can I convert a uploaded svg file to png format? In previewer class?

How do I merge query parameters into URL like Nomad List?
0
General
[Nomad List](https://nomadlist.com/) is a crowdsourced database of cities for Digital Nomads. They do this really cool thing for SEO where as you apply filters, the database is queried and the home...

I'm feeling lost about learning JavaScript, HELP!
10
Javascript
Hello people,
for the past weeks or months I've been trying to learn JS by my self.
I started learning with Modern JavaScript and read most of the basic stuff but I couldn't continue and I stoppe...

Setup Windows 10 Discussion
236
General
Hi,I got all the way through this so thanks for the walk through! I run "rails server -b 0.0.0.0" and the server boots fine but when I go to localhost:3000 in the browser, the browser icon spins bu...

How do I prevent ActiveRecord::PreparedStatementCacheExpired errors during deploys?
1
General
I'm using Hatchbox to deploy my Rails 7 application.
However, occasionally during deployment, I encounter the ActiveRecord::PreparedStatementCacheExpired error.
How can I avoid this issue to ensure...

Rails for Beginners Part 27: Twitter Accounts Page Discussion
17
General
This episode has been updated for Omniauth 2.0. 👍

Rails 7.1 Authentication From Scratch Discussion
18
General
Authentication got a TON of great improvements in Rails 7.1 with `authenticate_by`, `generates_token_for`, `normalizes`, etc. Super duper excited for these things and they should clean up a lot of ...

How to use Fixtures to create sample test data Discussion
1
General
Chris, thanks for all the great videos. These are super informative.
I have a question about fixtures and TDD in general.
Should I be creating a fixture for every potential variation in my model?...

How do i make chat app real time on Digital Ocean?
2
Rails
I am trying to make a Chat web application based on Rails 4.0 using "private_pub" gem which works perfectly on my localhost server. You can check out my application at curatethelens.com. Now my sit...
Maria Kenneth replied

how to properly configure webpack for production
0
Rails
root@ubuntu:~/Make-Rails# ./bin/webpack
[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
- configuration.no...
Sourabh Soni posted

Email Unsubscribe Links with ActionMailer in Rails Discussion
8
General
Hey Chris, is there any major difference between the newish Active record signed IDs in Rails 6.1 vs the Global ID signed IDs? A quick glance leads me to think the only real difference is that AR s...
Soren replied

How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?
4
General
How do I post comment with ajax in rails 4.2 ? Can I please have a detailed example?

Authenticate By & Password Challenge Methods In Rails 7.1 Discussion
1
General
Great episode Collin! The `authenticate_by` method really is a bug piece of making _secure_ authentication from scratch in Rails. These are nuances that are important (and already done in Devise), ...

Restrict devise routes
1
General
Hi,
How can I restrict access to the devise sign_up route to logged in users only?
Controller:
```ruby
# frozen_string_literal: true
class Users::RegistrationsController < Devise::Registrati...
Earnest Claran replied

How do I display several posts in related "weeks"
17
General
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks.
I want to have 12 teaserboxes on my index page which can then be clicked and if I click o...