Re: [Rails] NoMethodError (undefined method `gsub' for #) when gsub was never used!
I was incorrectly using instance variables which I replaced with session variables. However the problem persists.
On Monday, March 5, 2012 7:13:38 PM UTC+5:30, Colin Law wrote:
On 5 March 2012 13:23, Myth17 <nitishupreti@gmail.com> wrote:--
> I am presented with this error in my code, the line number happens to be -->
>
> Filestore.create(:filename => uploaded_file.original_filename , :fileblob =>
> uploaded_file.open, :bunch => @current_bunch )It probably means you are passing a parameter of the wrong type, so
the underlying code is calling gsub, expecting it to be a string I
imagine, but it is actually a File.What is a Filestore? You should use the techniques described in the
Rails Guide on Debugging to break in and inspect the data to check
that it is what you expect.Colin
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/m5O6KA2mlCIJ.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home