Spohnz

Joined

50 Experience
0 Lessons Completed
0 Questions Solved

Activity

Hello, I am so very new to Rails that my question might seem odd. But I will try to be as explicit as possible.
I have a controller named clients, It shows

<%= @client.client_identifier %> - <%= @client.client_name %>

in the view that renders a clients ID and a Name. I click on "new Appliance" for this client and have it take me to a new controller. I would like to in the new controller view to show the ID of the client so I can eventually concatenate to it and save it as a hostname.
Any help on how I can get <%= @client.client_identifier %> to show up in my "new appliance" page?

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.