FileStore is my model name and I have a table too.

On Monday, March 5, 2012 7:13:38 PM UTC+5:30, Colin Law wrote:
>
> On 5 March 2012 13:23, Myth17 <[email protected]> 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/-/D1Hc2owEpPQJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to