Rails form params changing in controller?

When you get params from a form in Rails, it comes in the form of a hash. For example: params:report_main:waste params:report_main:amount So when you call reportparam = params:report_main you are setting reportparam to a hash, but then you are trying to use it later like an object. For example, instead of reportparam.

Q_pripadnost use reportparam:q_pripadnost You can take a closer look at your variable by temporarily changing your action to show a text version of the variable, for example: def exporttoxiccreate @reportparam = params:report_main render :text => @reportparam. To_yaml end.

When you get params from a form in Rails, it comes in the form of a hash. For example: params:report_main:waste params:report_main:amount So when you call @reportparam = params:report_main, you are setting @reportparam to a hash, but then you are trying to use it later like an object. For example, instead of @reportparam.

Q_pripadnost, use @reportparam:q_pripadnost. You can take a closer look at your variable by temporarily changing your action to show a text version of the variable, for example: def exporttoxiccreate @reportparam = params:report_main render :text => @reportparam. To_yaml end.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions