Using render(:action => “action”) in a js.erb file?

It is a bug in your application. Actually it is a bug in your new action in controller.

That's probably not the very best idea. As you said, the code works when you use partial, and that's what you should use. This is from official Rails guides: Using render with :action is a frequent source of confusion for Rails newcomers.

The specified action is used to determine which view to render, but Rails does not run any of the code for that action in the controller. Any instance variables that you require in the view must be set up in the current action before calling render. guides.rubyonrails.org/layouts_and_rende....

It should not run any code! It should just render the view for the given action. – Freya May 10 at 9:22.

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