Proper routing language

Proper routing language

I need help figuring out how to turn the information from 'rake routes' into the correct path to use with <%= link_to %>.

I need help figuring out how to turn the information from 'rake routes' into the correct path to use with <%= link_to %>.

I have tried everything I know and spent hours trying to research this. I've read the Ruby documentation and I'm just getting more confused. I know this is a simple fix but it has completely eluded me.

<li><%= link_to 'Company Dash', tenant_corp_path(tenant_id: :tenant.id, corp_id: params[:corp_id]) %></li>

Rake routes show the tenant_corp_path GET as follows: /tenants/:tenant_id/corps/:id(.:format).

How do I properly turn that into a tenant_corp_path statement?

Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Ruby on Rails vs PHP

Understanding the pros and cons of Ruby on Rails versus PHP is important when deciding how to create your business-critical applications.