Ruby on Rails Thursday, April 2, 2015

On 2 April 2015 at 08:21, Edward Maya <lists@ruby-forum.com> wrote:
> Hello guys,
> i have created a simple app using devise and paperclip gem.
> I created my model using devise and i created a seperate controller to
> show what user has uploaded and generated the view file for it too.
> i have uploaded .Doc file and in the browser i'm getting my table as
> Name, Email and Document as per my show file, But Under Document i am
> getting the url for the doc i uploaded
> How can i view the doc file i uploaded and generate a download link of
> that.
>
> Attachments:
> http://www.ruby-forum.com/attachment/10648/list_controller.jpg
> http://www.ruby-forum.com/attachment/10649/sessions_controller_Of_Devise.jpg
> http://www.ruby-forum.com/attachment/10650/show_File.jpg
> http://www.ruby-forum.com/attachment/10651/User_Model.jpg

Please don't use images to show code, include relevant code here,
provided it is only a few lines, or put it somewhere like pastebin to
make it available.

Whether a file is downloaded or opened in the browser when the user
clicks on a link to it depends on whether the browser has the right
plugins or not.
What happens if you click on the link to the document?

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLtvN_U%2B%2BxmYvnWrj5i3-LbpMsZkdMmpUYU63G6oF-BrTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment