method "movie_file=" can someone explain this to me please?

It’s an assign method.

def movie_file

#code

end

The above is used to GET the movie file

def movie_file=(x)

#code

end

The above is used to SET the movie file

I’ll simplify a little, but suppose you don’t have a field movie_file in your model (i.e. database table), you can use this method to pretend it’s there. You then handle it with the variable “x” so that it does something useful.

Best regards

Peter De Berdt