[Rails] Re: Best way to securely connect to remote Postgres server from Rails.

2014-02-20 Thread Eric Hayes
Thanks for your insight, Rick. I am the server provider :) On Sunday, February 16, 2014 4:56:32 PM UTC-8, Rick wrote: On Saturday, February 15, 2014 4:46:54 PM UTC-5, Eric Hayes wrote: I'm wonder how most people securely connect to a Postgres database on a server separate from the app

[Rails] Best way to securely connect to remote Postgres server from Rails.

2014-02-15 Thread Eric Hayes
I'm wonder how most people securely connect to a Postgres database on a server separate from the app server. The ActiveRecord docs for a MySQL connection have explicit SSL options, whereas with Postgres it seems one would pass SSL options as documented for libpq. However a quick Googling

[Rails] Re: Retrieve duration (in string format) from database and convert to Ruby syntax for calculation

2013-09-20 Thread Eric Hayes
Take a look at this gem: https://github.com/peleteiro/ruby-duration —it will convert an arbitrary duration (like 1 month, 2 weeks, etc.) into seconds which can be stored in the DB. It is very similar to what Raj is recommending, just a little more formal. Either way you can avoid eval'ing code,

[Rails] Re: How to increase the css and js file loading speed in rails 3

2013-09-20 Thread Eric Hayes
Without the Asset Pipeline, the answer is to send less CSS or JS. With JS you could move as much as possible to the bottom of your HTML and include as few files as possible. On Friday, September 20, 2013 4:49:54 AM UTC-7, chandra sekar wrote: Hi All Right now i am working on rails 3 . Is