[Rails] store pdf directly to amazon

2013-01-25 Thread Saravanan P
Hello Everyone, I am using wicked pdf and rails 3.2.8. I can generate pdf (html to pdf). How can i store my pdf file into amazon s3 without storing in *Local.* * * *Please help* -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk group. To

[Rails] Pass data to javascript

2013-01-25 Thread Linus Pettersson
Hi! I'm creating a bar graph using Morris.js. What I'm showing in the graph is dates on the X-axis and the number of times an event has occurred on that date on the Y-axis. So, I followed Ryan Bates episode on Morris.js: http://railscasts.com/episodes/223-charts-graphs-revised (It's a PRO

[Rails] Re: Pass data to javascript

2013-01-25 Thread Linus Pettersson
Another option would be to fetch the raw JSON data using javascript from .../events.json and then do the grouping and whatever client-side and pass to the graph... Maybe too inefficient? // Linus Den fredagen den 25:e januari 2013 kl. 10:35:40 UTC+1 skrev Linus Pettersson: Hi! I'm

Re: [Rails] Usage of ram for Sunspot Search engine

2013-01-25 Thread Colin Law
On 25 January 2013 06:21, keerthi priya emailtokeerthipr...@gmail.com wrote: Hi all, I am using Sunspot Search Engine in my app. When I deployed my app in production It it bit slower side. My Server Details: ram 256 Ubuntu 11.10 How can I check why my app is slow in production can any

Re: [Rails] group by + sum

2013-01-25 Thread Werner
Well.. I cant get it working Try to explain it again.. db_table: week_id, project_id, user_id, hour ex. = 33, 1, 1, 10 33, 4, 1, 20 33, 1, 2, 0 34, 1, 2, 15 34, 1, 1, 0 So, user with the id 1 worked 10 hours in week 33 and 20 in the week 33, but other project I want to show all hours summed

Re: [Rails] group by + sum

2013-01-25 Thread Jim Ruther Nill
On Fri, Jan 25, 2013 at 9:42 PM, Werner webagentur.la...@googlemail.comwrote: Well.. I cant get it working Try to explain it again.. db_table: week_id, project_id, user_id, hour ex. = 33, 1, 1, 10 33, 4, 1, 20 33, 1, 2, 0 34, 1, 2, 15 34, 1, 1, 0 So, user with the id 1 worked 10

Re: [Rails] Usage of ram for Sunspot Search engine

2013-01-25 Thread Hassan Schroeder
On Fri, Jan 25, 2013 at 2:44 AM, Colin Law clan...@googlemail.com wrote: I am using Sunspot Search Engine in my app. When I deployed my app in production It it bit slower side. ram 256 profile rails As Colin says, you need to look at your Rails app's performance (NewRelic rpm is extremely

Re: [Rails] Usage of ram for Sunspot Search engine

2013-01-25 Thread Colin Law
On 25 January 2013 15:42, Hassan Schroeder hassan.schroe...@gmail.com wrote: On Fri, Jan 25, 2013 at 2:44 AM, Colin Law clan...@googlemail.com wrote: I am using Sunspot Search Engine in my app. When I deployed my app in production It it bit slower side. ram 256 profile rails As Colin

Re: [Rails] group by + sum

2013-01-25 Thread Werner
Hi Jim.. thanks.. looks good now.. I had a mistake in another model..so the grouping was not correct. my god.. what a trip sometimes.. Werner Am Freitag, 25. Januar 2013 14:50:53 UTC+1 schrieb jim: On Fri, Jan 25, 2013 at 9:42 PM, Werner webagent...@googlemail.comjavascript: wrote:

[Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread sagar p.
Part of the Rails application, I want to let the client keep the location string of a video file in the database at Heroku(My plan is to deploy the application at Heroku). So, when the client wants to access his or her file, the Rails application gets the location string from the database and

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 8:44 PM, sagar p. li...@ruby-forum.com wrote: Part of the Rails application, I want to let the client keep the location string of a video file in the database at Heroku(My plan is to deploy the application at Heroku). So, when the client wants to access his or her file,

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Dave Aronson
On Fri, Jan 25, 2013 at 9:44 PM, sagar p. li...@ruby-forum.com wrote: the Rails application gets the location string from the database and opens the matching local file from his or her computer. Is this possible??? To expand on Jordon's Just no: Heroku does not provide any local filesystem

[Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread sagar p.
Thank you, Jordon and Dave. I apologize if I am unclear. My question was to access client's local file system, not the Heroku's. I wonder if your answer still sticks to 'NO'. S3 is not an option for me right now, because the application would require user to save the video clip and get ready

Re: [Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 9:24 PM, sagar p. li...@ruby-forum.com wrote: I apologize if I am unclear. My question was to access client's local file system, not the Heroku's. I wonder if your answer still sticks to 'NO'. This is exactly what my no, just no referred to. And not for any more reason

Re: [Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Jordon Bedwell
On Fri, Jan 25, 2013 at 9:48 PM, Jordon Bedwell envyge...@gmail.com wrote: On Fri, Jan 25, 2013 at 9:24 PM, sagar p. li...@ruby-forum.com wrote: I apologize if I am unclear. My question was to access client's local file system, not the Heroku's. I wonder if your answer still sticks to 'NO'.

[Rails] Re: Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread sagar p.
Thank you both of you. Regards, Sagar Jordon Bedwell wrote in post #1093870: On Fri, Jan 25, 2013 at 9:48 PM, Jordon Bedwell envyge...@gmail.com wrote: On Fri, Jan 25, 2013 at 9:24 PM, sagar p. li...@ruby-forum.com wrote: I apologize if I am unclear. My question was to access client's local

Re: [Rails] Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread tamouse mailing lists
On Fri, Jan 25, 2013 at 8:44 PM, sagar p. li...@ruby-forum.com wrote: Part of the Rails application, I want to let the client keep the location string of a video file in the database at Heroku(My plan is to deploy the application at Heroku). So, when the client wants to access his or her file,

Re: [Rails] Re: Access Client's File System from Rails application deployed at Heroku (for instance)

2013-01-25 Thread Miguel Morales
Depending on what you're trying to do there might be some java or flash applet that will let you do that. Theoretically you could just store the path and tell the applet to open that file. Your users would have to agree to install the applet and understand the risks. On Fri, Jan 25, 2013 at 7:50