I have been trying to import a .rake file into my controller using import 'file.rake' but I seem to get an error saying undefined method 'import' for Main:object. I have tried to look online for any documentation on how to use import but I can't find anything. Does anyone have a solution or have come across this error before?
Thanks in advance.