I have a Rfq contoller i am creating new or updating existing Rfqs, when i create or update the object is saved, what i want is as i have number of quotes params i want to u
If you're trying to use the params
hash in your model, you are violating principles of MVC. The model should stand alone with arguments. If you are trying to do the following:
# controller
Model.foo
# model
def foo
params[:bar].reverse!
end
You should do the following instead:
# controller
Model.foo(params[:bar])
# model
def foo(foobar)
foobar.reverse!
end