[Rails] Rails 5 migration/schema dump issue/question with postgres and OracleEnhancedAdaptor

2016-03-31 Thread John Landes
I'm using Rails5.0.0.beta3 with multiple database connection, one to postgres and one to Oracle. When I execute rake db:migrate or rake db:schema:dump, an error is generated which appears that the OEA is asking the Postgres adaptor for a listing of it's materialized views. I'm not sure if this

Re: [Rails] PG::DupliacatePstatement: Error: prepared statement already exists

2016-03-31 Thread Colin Law
On 31 March 2016 at 17:39, Vivek Babu wrote: > I am getting the following error in production environment > > "PG::DupliacatePstatement: Error: prepared statement already exists" Show us the lines of code that cause the problem. Colin -- You received this message because you are subscribed to

Re: [Rails] Re: Re: Re: Re: You have a nil object when you didn't expect it!

2016-03-31 Thread Colin Law
On 31 March 2016 at 10:05, Naveed Alam wrote: >> It depends on whether that is ever supposed to be nil. If it is then >> you just need to test for that in your code before using it. >> >> Colin > > > In my controller's edit_privilege method I changed the below line > > from > @user = User.active.

[Rails] Re: Re: Re: Re: You have a nil object when you didn't expect it!

2016-03-31 Thread Naveed Alam
> It depends on whether that is ever supposed to be nil. If it is then > you just need to test for that in your code before using it. > > Colin In my controller's edit_privilege method I changed the below line from @user = User.active.first(:conditions => ["username LIKE BINARY(?)",params[:id]