I have been working quite a few hours on this one but I can\'t figure out this one.
I am willing to have the user select a corresponding currency for the price he i
SOLVED!!
Solved by adding one line in create method :
def create
@power_plant_substrate = PowerPlantSubstrate.new(params[:power_plant_substrate])
# here I am setting the currency with what was sent in params
@power_plant_substrate.currency = params[:power_plant_substrate][:currency] <=== this line
...
end