Re: [Rails] Looking for help on how to incorporate Stripe into my existing files

2018-08-09 Thread David Merrick
Still can't the stripe integrated into my App New users controller class UsersController < ApplicationController before_action :logged_in_user, only: [:index, :edit, :update, :destroy, :following, :followers] before_action :correct_user, only:

[Rails] bootstrap cards

2018-08-09 Thread Joe Guerra
https://res.cloudinary.com/dlfodsgbd/image/upload/v1485912958/photo_not_available.png);"> Saepe Delectus Consequatur Eius numquam optio corporis exercitationem eaque optio Active: 2018-07-15 - 2018-08-15 I got these bootstap cards I'm trying to loop thru, but I'm not having

Re: [Rails] How to test Redis Lock via Rspec?

2018-08-09 Thread Hassan Schroeder
On Thu, Aug 9, 2018 at 3:32 AM, Saurav Kothari wrote: > We have a Lockable concern that allows for locks via Redis > When testing this action, I want to test that the correct generated_key is > being sent to Redis to initiate a lock. What is the definition of "correct" here? Wouldn't it be

Re: [Rails] Looking for help on how to incorporate Stripe into my existing files

2018-08-09 Thread Walter Lee Davis
There is a link at the bottom of each message you receive from this list, where you can do just that. Nobody else here can delete you, we are all users, not admins. Walter > On Aug 9, 2018, at 5:30 AM, Mauro Sanna wrote: > > Please delete me. -- You received this message because you are

[Rails] How to test Redis Lock via Rspec?

2018-08-09 Thread Saurav Kothari
We have a Lockable concern that allows for locks via Redis module Lockable extend ActiveSupport::Concern def redis_lock(key, options = {}) Redis::Lock.new( key, expiration: options[:expiration] || 15, timeout: options[:timeout] || 0.1 ).lock { yield if

Re: [Rails] Looking for help on how to incorporate Stripe into my existing files

2018-08-09 Thread Mauro Sanna
Please delete me. On Wed, 8 Aug 2018 at 18:01, Hassan Schroeder wrote: > On Tue, Aug 7, 2018 at 9:39 PM, David Merrick > wrote: > > I want to know how I can successfully put this part of the > > create method of the charges controller > > into the users create method of the users controller >

Re: [Rails] Postgres issue

2018-08-09 Thread Piyush Chowhan
In terminal I have created a role user and password what I have given in database.yml file by this command below and I solved the problem. Thanks for your reply. psql -U postgres -- run console CREATE ROLE WITH LOGIN SUPERUSER PASSWORD 'X'; --- to create a role On