Manipulating forms input in ruby on rails
<p>I am very new to Ruby and ROR. Been learning by myself for self interest. I am toying with constructing an app but i have reached a stage whereby i need help.</p>

<p>Here's the scenario:</p>

<p>I have a form that requires users to input their employer which is tagged to the :employer object.</p>

<p>Somewhere in the app, the users are listed down in a <code>ul</code> if their <code>employer</code> input matches the company name in a jobsearch of an api as such:</p>

<p><code>@user.employer == @job.company</code></p>

<p>However, there is an error of <code>undefined method employer for #&lt;Class:0x007f9d54f66e10&gt;</code>. Checked on the console and tried <code>User.first.employer</code>. This returns the employer which was keyed in in the form when signing up. </p>

<p>I have tried defining <code>employer</code> in the controller and view files but to no avail.</p>