Topic: Concatenate Fields while those are getting entered and assign them
Pardon me for my li'l knowledge as I'm a naive Ruby Programmer. In my view for _form.rhtml, when user enters a few fields, I need to concatenate all those and set them in Real number field.
I'm using this currently which doesn't get the results apparently since I haven't set them in the @subreq variable, How to set them?
field_a <%= text_field :subreq, :field_a, :size => 11 %> <br><br>
field_b <%= text_field :subreq, :field_b, :size => 5 %> <br><br>
Real number <%= @subreq.field_a unless @subreq.field_a.nil? %> <%= @subreq.field_b unless @subreq.field_b.nil? %>