X Modek object into Y controller

How to use x.new() in y_controller.rb where x is model and y is
controller?

Thanks

How to use x.new() in y_controller.rb where x is model and y is

controller?

Thanks

Nothing to it, just type

X.new

like you said. What trouble are you having?

Awijeet Mr. wrote:

How to use x.new() in y_controller.rb where x is model and y is
controller?

Thanks

Thanks got the solution.