In my web application, The client has to enter a set of values and I want to write them to a text file. This is what I am doing to achieve that.
class SollusController < ApplicationController
But after I enter the values from the the browser, nothing gets saved in the file “network.txt”. On the contrary, If I do this whole thing in ruby console as below,
s.input=“I need to write this to text file”
After i run the above lines, I can see the text in the intended file.
Can you please help me in debugging this part?