Ruby on Rails Sunday, July 1, 2018

On Sun, Jul 1, 2018 at 7:30 PM, Pito <pitosalas@gmail.com> wrote:
> $ rails credentials:edit
>
> displays this immediately:
>
> New credentials encrypted and saved.
>
> Before my editor window even opens. And the window then always opens with a
> blank page.
>
> Any idea whats going on?

19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$
rails credentials:edit
No $EDITOR to open file in. Assign one like this:

EDITOR="mate --wait" bin/rails credentials:edit

For editors that fork and exit immediately, it's important to pass a wait flag,
otherwise the credentials will be saved immediately with no chance to edit.
19:31 ~/testcases/rails/rails-5-2/defaults:(scaffold-test)[ruby-2.5.1]$

What editor are you using?

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
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 from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDbe_r9dB_eVZHWgXfh1i86icK%3DWqVhTh9cwFviWhyJOQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

I have a fairly basic Rails 5.2 app, built from scratch. When I type:

rails credentials:edit

It blows up with a stack trace that ends with:

/Users/pitosalas/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/activesupport-5.2.0/lib/active_support/message_encryptor.rb:206:in `rescue in _decrypt': ActiveSupport::MessageEncryptor::InvalidMessage (ActiveSupport::MessageEncryptor::InvalidMessage)


Any idea? Thanks!

--
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 from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2ef788da-c5e8-4065-bc51-cdaaa77bc408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

$ rails credentials:edit


displays this immediately:


New credentials encrypted and saved.


Before my editor window even opens. And the window then always opens with a blank page.

Any idea whats going on? 

--
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 from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8a5bdf5b-4526-4bf8-8593-5b04d3657743%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.