I'm still fairly new to rails and I have what is probably an easy question to answer. So I'm trying to build a simple video upload application. I've decided to go with paperclip to deal with the video attachment. Once the app redirects after the save I would like to have access to the @video variable or maybe or maybe another instance variable that is in the create action in the view that I am redirecting to.
My form in the new view looks like this
<%= form_for(@video) do |f| %>
<%= f.file_field :video %>
<%= f.submit "Upload" %>
<% end %>
My ClipUpload controller
@video = ClipUpload.new
@video = ClipUpload.new(clip_upload_params)
redirect_to clip_uploads_path, :notice => "Upload worked"
params.require(:clip_upload).permit(:video, :video_title, :video_file_name)