Set @image
instance variable in your Controller action's which are rendering these forms.
Currently @image
is nil, so you are getting the error as First argument in form cannot contain nil or be empty
.
As per the comment,
In my index.html.erb I have two buttons that link_to the get routes I posted
you would need to set @image
instance variable in two actions : new_sm
and new_lrg
as these are the actions rendering your views.