[Rails] Send large file with rails

2015-09-22 Thread Nicolò Benigni
Hi, I am having problem with sending file to browser with rails, to let the user download them. Here is my situation: I have built a little webmail client, and I need to make attachments downloadable to the users. I have the base64 ecoded rappresentation of the file, and I don't know how to

[Rails] Rails association in concerns

2015-06-08 Thread Nicolò Benigni
0 down vote favorite I am using concerns for my rails application. I've different kind of users so I have made a loggable.rb concern. In my concern I have ´´´ included do has_one :auth_info end ´´´ because every of my user that will include the concern will have an association with

[Rails] Re: Problem with a simple open-uri request

2015-03-12 Thread Nicolò Benigni
Stupid me! It was a permission problem on the resolv.conf file! thanks anyway! -- Posted via http://www.ruby-forum.com/. -- 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,

[Rails] Re: Problem with a simple open-uri request

2015-03-11 Thread Nicolò Benigni
Scott Ribe wrote in post #1169990: On Mar 11, 2015, at 8:46 AM, Nicolò Benigni li...@ruby-forum.com wrote: getaddrinfo: Name or service not known So it's unable to resolve the host name. Either you've got the name wrong, or there's something in your OS config preventing it from being

[Rails] Problem with a simple open-uri request

2015-03-11 Thread Nicolò Benigni
I need to call third party API in my rails app. I decide to use open-uri (but also tried the NET::HTTP.get and gives me the same error), and to this: open(http://www.example.org;) do |f| puts f.base_uri #= http://www.example.org puts f.status #= [200, OK] end But it gives me:

[Rails] Rails Design Patterns/Good practise

2015-01-29 Thread Nicolò Benigni
Hi to all, I am a junior developer who has worked on differents rails application but never wrote one. Now, I would like to develop my first big rails app. I would love to know if someone has some links that suggest good patterns, organization ecc... -- Posted via http://www.ruby-forum.com/.