I have another small question. I have an environment variable set in
environment.rb. The line looks like...
ENV['username'] = 'mike'
What I would like to do is store 'mike' in the database in my 'login'
column. In the controller, if I add this...
@response = Response.new
@response = Response.new(params[:response])
@response.login = ENV['username']
It will add one record that's the username and all the other columns
blank. Then, it'll add another record with all the data.
Essentially, it's adding two records. I used an example on this forum
and it obviously didn't work very well.
I was wondering if anybody had an idea of why I'm getting two
records....and if there is a better way to do this.