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

2018-08-07 Thread David Merrick
I want to know how I can successfully put this part of the create method of the charges controller # Amount in cents @amount = 2000 customer = Stripe::Customer.create( :email => params[:stripeEmail], :source => params[:stripeToken] ) charge = Stripe::Charge.create( :customer=> cus

[Rails] [ANN] Rails 5.2.1 has been released!

2018-08-07 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 5.2.1 has been released. ## CHANGES since 5.2.0 To view the changes for each gem, please read the changelogs on GitHub: * [Action Cable CHANGELOG](https://github.com/rails/rails/blob/v5.2.1/actioncable/CHANGELOG.md) * [Action Mailer CHANGELOG](h

Re: [Rails] Postgres issue

2018-08-07 Thread Piyush Chowhan
Ya, I have tried with the login from the shell which I have given in the database.yml file. On Tue, Aug 7, 2018 at 7:58 PM, Hassan Schroeder wrote: > On Mon, Aug 6, 2018 at 10:59 PM, Piyush Chowhan > wrote: > > FATAL: Peer authentication failed for user "admin" > > Couldn't create database for

Re: [Rails] Postgres issue

2018-08-07 Thread Hassan Schroeder
On Mon, Aug 6, 2018 at 10:59 PM, Piyush Chowhan wrote: > FATAL: Peer authentication failed for user "admin" > Couldn't create database for {"adapter"=>"postgresql", > "encoding"=>"unicode", "database"=>"bookingsaround_diy_development", > "username"=>"admin", "password"=>"password"} > rake aborted

Re: [Rails] Need guidance on an inline editing design

2018-08-07 Thread John Sanderbeck
Got it but I think I want to do it with Ajax instead... :-) One Click = 1 update Would be cleaner for the teachers... John -- 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

Re: [Rails] Best OS for production self hosting

2018-08-07 Thread Robby O'Connor
Ubuntu, Debian, Fedora, CentOS -- basically Linux and dockerize your application. On 08/04/2018 09:15 PM, fugee ohu wrote: > I've been hosting my rails apps on freebsd Anyone have preferences > which OS to host on? > -- > You received this message because you are subscribed to the Google > Group

[Rails] Re: OT: Rails and DDNS

2018-08-07 Thread Piyush Chowhan
Sorry wrongly posted On Monday, July 9, 2018 at 9:09:51 PM UTC+5:30, Ralph Shnelvar wrote: > > Ruby on Rails Talk, > > So I have an ASUS TM-AC1900 router that offers DDNS (Dynamic DNS). > > I have a Rails app (call it some-old-app) and a domain (call it > some-old-app.com) and got it working with

Re: [Rails] OT: Rails and DDNS

2018-08-07 Thread Piyush Chowhan
Hi, Thanks for replying me back Now I am facing this when I run this command rake db:create FATAL: role "root" is not permitted to log in Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"bookingsaround_diy_development", "pool"=>5, "username"=>"root", "p

[Rails] OT: Rails and DDNS

2018-08-07 Thread Mike
Not sure I understand all of this but As long as you can send some-new-app.com to your IP address and some-old-app.com to the same address it should not be a problem You could use a CNAME record to forward both of these to myrouter.asuscomm.com which is your actual device Once it gets there I

[Rails] Postgres issue

2018-08-07 Thread Mike
Peer Authentication used your OS username and password for access, you may need to change pg_hba.conf and change instances of peer to md5. This also assumes that the user has been created correctly in the PostgreSQL system. It may also help to use the lines host: localhost port: 5432 In your