I want my new view and action (which displays the form in a modal dialog) to be contained in the index view. How can i do this? I am getting an error right now, and I am assuming this because I have <%= form_for(@video) do |f| %> <%= form_for(@video) do |f| %> when @video is defined only in the new view, not in the index view. I'm not sure how to fix this though ...
source share