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

2014-02-16 Thread Rick
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 server. The ActiveRecord docs for a MySQL connection have explicit SSL options, whereas with Postgres it seems one

[Rails] Update 'strong_parameters' from 0.1.4 to 0.2.3

2014-02-16 Thread Eric Jefcoat
Hello, Can anyone tell me how to upgrade 'strong_parameters' from 0.1.4 to 0.2.3 on the Terminal? When I use 'update strong_parameters' it tell me that it no longer uses update. When I say upgrade it says command not found. I am using RVM. Thank you so much for your help, Eric -- You

[Rails] RVM group in Terminal

2014-02-16 Thread Eric Jefcoat
Hello, I need to fix some RVM permissions. How do I make sure I'm in the RVM group in the Terminal? Thank you for your help, Eric -- 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

[Rails] Re: RVM group in Terminal

2014-02-16 Thread Eric Jefcoat
When I try to fix permissions, with 'rvm fix-permissions' it tells me that it's fixing them in 'users/group'. I need to fix them in the rvm group but don't know how to fix them IN the rvm group. Thank you for your help, Eric On Sunday, February 16, 2014 9:44:55 PM UTC-7, Eric Jefcoat wrote:

[Rails] CanCan: How to define ability with some conditions

2014-02-16 Thread Роман Ярыгин
Hello everyone! I have code: if user.role == topmanager can :read, ActiveAdmin::Page, :name = Dashboard can :manage, Realty, agent: {agency_id: user.agency_id} ... And I want to add another condition, can :manage, Realty, agent: nil How to do it? Defining it two times gets

Re: [Rails] Re: Sender Email

2014-02-16 Thread Daynthan Kabilan
Thanks for your reply, i want to add current user's email address in our default :from in user mailer On Fri, Feb 14, 2014 at 11:35 PM, Frederick Cheung frederick.che...@gmail.com wrote: Al On Friday, February 14, 2014 3:18:29 PM UTC, James Davis, PhD wrote: *example* mail(:to =

Re: [Rails] StatementInvalid error when adding a tagging system to a blog

2014-02-16 Thread Nadia Vu
On Friday, February 14, 2014 9:12:38 AM UTC+11, Colin Law wrote: On 13 February 2014 06:57, Nadia Vu winte...@gmail.com javascript: wrote: Hi there, I'm very new to RoR please be kind. I wasn't sure where to go but I was hoping I could find help here after days of hair pulling.