shrinerb / shrine

File Attachment toolkit for Ruby applications

Home Page:https://shrinerb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NoMethodError - undefined method `<column>_url'

lunaisnotaboy opened this issue · comments

Brief Description

Whenever I try to call <column>_url or other related methods, I get a NoMethodError.

This has happened across three different applications on two seperate machines, so I am convinced that it is nothing on my end.

Expected behavior

I expected the functions to actually be there when I call them.

Actual behavior

I receive a NoMethodError.

Code Snippets

See this gist for all required files.

System configuration

Ruby version: 2.7.4
Shrine version: 3.4.0

Hi @lunaisnotaboy,

I was unable to reproduce your issue, given your template.

Here is my script file:

Perhaps I've made a mistake somewhere? IF you could amend it so it could reproduce the NoMethodError error , that would be inordinately helpful in discovering the root cause. Without the reproduction, how would i be able to discover the problem?

rgds

Ben

@benkoshy Of course! However, my development laptop is currently experiencing unrelated issues, so I will not be able to provide you with updated files until later today. Apologies.

@benkoshy As I was looking over the code, it turns out that I had forgot to put Shrine.plugin :activerecord in my shrine.rb file.

This was purely a misconfiguration error, and I apologize. Thank you for trying to help.