You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading from 1.2.3 to 1.3.0 I have failing tests. The problem is when rendering a form which attempts to display the filename of an uploaded file. I get the error:
ActionView::Template::Error: ActionView::Template::Error: undefined method url' for class NilClass'
reported on the code:
<%= a.object.filename.to_s.split('/').last %>
As I have no 'url' method I turned on a full trace and find the error actually comes from line 502 in fog.rb in:
While I don't begin to understand what may be going on, this code does not seem to be in version 1.2.3 and it looks suspicious that the parameter 'local_file' is not actually used. Indeed blindly changing the code to:
parameters = local_file.method(:url).parameters
results in the test passing.
Perhaps someone who does understand could comment?
The text was updated successfully, but these errors were encountered:
After upgrading from 1.2.3 to 1.3.0 I have failing tests. The problem is when rendering a form which attempts to display the filename of an uploaded file. I get the error:
ActionView::Template::Error: ActionView::Template::Error: undefined method
url' for class
NilClass'reported on the code:
<%= a.object.filename.to_s.split('/').last %>
As I have no 'url' method I turned on a full trace and find the error actually comes from line 502 in fog.rb in:
While I don't begin to understand what may be going on, this code does not seem to be in version 1.2.3 and it looks suspicious that the parameter 'local_file' is not actually used. Indeed blindly changing the code to:
parameters = local_file.method(:url).parameters
results in the test passing.
Perhaps someone who does understand could comment?
The text was updated successfully, but these errors were encountered: