Incorrect setup for Model associations

2
Databases
I feel these associations are incorrectly set up. It's a bit similar to Trello, except I'm adding in a 'client' model too. The main part that's confusing to me is the fact user.rb, it's just buggin...
Masud Hossain replied

Dynamic Nested Forms With Turbo Part 2 Discussion

9
General
Great lesson: thanks Collin! I learned a couple of new tricks there - appreciated!
Dave replied

How do I structure my DB to set up oAuth integrations with Facebook, Instagram, etc.

2
Rails
I have a Shopify app where they (Shopify) handle authentication. If you can login to your Shop on their platform, you can login to the Rails app. Therefore I have no need for Devise. It seems like ...

Are "nonclass singleton methods as rare as class methods are common"

0
General
In his 2011 book "Eloquent Ruby", Russ Olsen makes the states that "nonclass singleton methods [he refers to instance methods] are as rare as class methods are common." He makes the point that th...
TrevorGage 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...

Is there a well-liked solution for handing nested model forms?

6
Gems / Libraries
I am not sure what the consensus is on the best approach to handling nested model forms is. The solution in https://gorails.com/episodes/forum-nested-attributes-and-fields-for can work, but doesn'...
Rutul Dave replied

User Authentication with Devise Discussion

2
General
If like me you need to add some fields in User model. You can simply create your own registration controller and define sign_up_params and account_update_params to overload the devise controller.I ...

Is there an episode on Post Production Updates?

2
General
Love the latest episodes Chris! Was wondering if you have or plan to cover soon how to do post production updates on a rails app. For me that is a scary topic and one i think lots of folks would l...
Sheryl James replied

I am new to rails.

2
General
Just finished with ruby this week and I thought going for rails is the next step. I am a little confused about where to start. I will appreciate if anyone can point me to what to start with .what l...
Christopher Slade replied

How do I make comments show the user who created it?

4
General
I would think that i could do something like the code below but it's not working. How can i approach this so it can show the user who created the comment and other information about the user? I ...
Wes replied

Vue.js Trello Clone in Rails - Part 7 Discussion

11
General
Awesome series! Currently using Vue.js on it's own talking to a PHP Yii2 API but love my Rails so was keen to see how i can use it with Rails.Would love to see more! Thanks.
Holger Quick replied

A/B Split Testing with the Split gem Discussion

5
General
Good video, great help! Yeah, new subjects when your app has already been created is a great idea!
Srinivasa Varma D replied

How to order stimulus reflex morph asc?

2
Javascript
I have a morph for stimulus reflex that updates a portion of the page when todos are created. What the customer would like to have happen is that when they create new todos they are added to the bo...

How do i can add text-alignment to trix ?

1
Rails
Hello. Im trying to add text-alignment functionnality to a trix rich-text editor in a rails 6 app (its for a blog). I find somes example on stack overflow or trix github about adding colors, h ta...
Brendon Muir replied

How can i install Daisy UI?

0
Javascript
I want to be able to use Daisy UI, but i am reading different ways to accomplish this – making me confused on how to actually install node packages. 1. One way is setting up the CDN, which is not ...

To use Rails 6 or Not

2
General
Hey Go Rails Fam, I'm starting a new project this weekend and I was wondering should I user Rails 5.2.3 or just start the project with Rails 6.0.0.rc1? Let me know what you think. Cheers Rob
Rob Thomas replied
Solved

Slow jobs on Sidekiq

0
Gems / Libraries
In my application I have a job which makes several database queries (mysql) to recalculate certain fields of a model. (A kind of counter_caches). Launching individually these methods take about 10...
Roberto Hugo Menéndez posted

Mac Sequoia: Rails installs but command line does not see it

2
Rails
I followed the directions but errors running the mise global command: gorails.com/setup/macos/15-sequoia Now, with this setup the command line sees ruby and gem. export PATH="/opt/homebrew/opt/rub...
Greg S replied

Using Webpack in Rails with the Webpacker Gem Discussion

17
General
I wish our front end guys took 20 minutes to set up webpack on a project!

Nested Forms Tutorial: How do you display the Tasks in the Project Index and Show Views?

2
Rails
I am trying to display the Tasks on the Products#index and get Type Error in Projects#index "can't cast Enumerator" How can I display attributes from tasks on the Products views? Here's my code...
Solved

Want to stay up-to-date with Ruby on Rails?

Join 90,822+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.