I keep getting the following error:
NoMethodError in Students#show
undefined method `student_accounts_path' for
I am trying to implement a has_one model. I followed the rails guide
that used the :post has_many :comments example and tweaked it a bit.
my routes.rb file looks like this:
resources :students do
My Students.controller, Account.controller files are attached.
Along with the /app/views/students/show.html.erb file
I have no idea what I'm doing wrong.
Can anyone please help me?