Today I learned a new way to render forms from my views with a Rails method, especially for Forms: form_with. My previews post was about how display a form with previously written data, edit the form and then submit it to update the element in questi...
After testing my controllers on my previous post, I encountered I wanted to add an edit button to my views and allow the chance to edit a previous entry in case there was an error. So I began finding more and more questions and how can this be implem...
My previews post was about testing my controllers and tried to understand why they were not passing and the alternatives I had. With the help of my mentor I manage to understand how my test was working, why it was failing and of course new questions ...
Today I wrote a pair of tests for my controller and found a couple of things I would like to understand in deep and begin to practice them more. While testing the #delete from my controller in my controller tests, I needed to test if at the end the c...
I have worked this week on testing my controller for my Rails application, and I found something interesting about strong parameters and my results, of course I would like to dig deeper and learn more about why this difference shows in my tests. Firs...
Today I learned how to test Devise with RSpec and Capybara. I used the Devise gem to authenticate my users, there are other alternatives like CanCan but I haven't tried yet. First of all, why bothering testing now all the things if : "Applications is...