Can you explain what's going on here: form_with(model: [@post, @comment] ....". What's the reason behind specifying more than 1 model?
@MalachiRails8 ай бұрын
In Ruby on Rails, form_with is a helper method used to generate HTML forms. It's commonly used for creating forms associated with models. In your example, @post and @comment are two separate models. This method generates a form that can be used to create or update instances of both models in a single form. This is often useful when you have nested resources or associations between models, such as a post having multiple comments.
@sirac2458 ай бұрын
Is this video suitable for someone who has not used Rails before but has used a different web framework such as React, Nodejs etc.?
@MalachiRails8 ай бұрын
Yes it is.
@CyranicalGoated8 ай бұрын
This can be deployed on Render as well right.
@MalachiRails8 ай бұрын
Yes it can. But you’re gonna need to do extra things that I didn’t cover in my recent tutorial. Things like making sure the images are loaded onto a server and making sure render has redis
@CyranicalGoated8 ай бұрын
@@MalachiRails how do you make sure it has redis
@MalachiRails8 ай бұрын
@@CyranicalGoated This is how. docs.render.com/redis
@CyranicalGoated8 ай бұрын
@@MalachiRails thank you
@MalachiRails8 ай бұрын
@@CyranicalGoated No problem
@perchant29258 ай бұрын
I just jumped through the video, it look great! But please can you increase the quality to at least 1080p please? But overall I really love your videos!
@MalachiRails8 ай бұрын
It will increase just takes a few hours I think
@perchant29258 ай бұрын
@@MalachiRails Ohh nice! Thanks for your content! I really love to watch someone else building something meaningful. And what would you suggest to a starting Ruby dev? Like where to learn the purest basics?
@QuietIbrahim3 ай бұрын
Thanks alot
@MalachiRails2 ай бұрын
No bothers buddy
@alvarobyrne8 ай бұрын
wouldn't you go into the view components world?
@MalachiRails8 ай бұрын
Tell me why
@alvarobyrne8 ай бұрын
@@MalachiRails ah, no, I'm just interested in learning. just if you think it's worthwhile. that is why I'm asking if you wouldn't do it
@MalachiRails8 ай бұрын
@@alvarobyrne I would.
@alvarobyrne8 ай бұрын
@@MalachiRails coool!
@cocoarecords8 ай бұрын
I am worried about the MAC installations
@archangel01378 ай бұрын
The best way to set up Rails is to do it via AWS Cloud 9. It's MUCH faster than installing it locally on your machine, and I highly recommend it. Check out this tutorial here: kzbin.info/www/bejne/p16cYXqigbV1eKssi=sEjO0XInLiwpYoO0 Rails is notoriously hard to set up on Windows, which is why I use AWS Cloud 9 for all my Rails stuff
@cocoarecords8 ай бұрын
@@archangel0137 thanks a lot. I use mac tho, do you still suggest it