Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
Ok, I'll try that. I had this crazy problem that I fixed before - if you created a profile using facebook you couldn't update your profile because u didn't have a local password. lol. I fixed that (not needing the password to update the record). On Thu, Oct 4, 2018 at 10:49 PM Walter Lee Davis

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Walter Lee Davis
You may be able to recover your password (since you don't have one to begin with) if you signed up with Facebook and then decide to move to local authentication. You could try that, if you have a Facebook account, try using the password recovery path to add a new password to your account.

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
Yes, both are enabled. So I guess that means you can only use one or the other? On Thu, Oct 4, 2018 at 10:33 PM Walter Lee Davis wrote: > I don't have Facebook, so I can't try that angle, but you have both devise > database_authenticatable and omniauth enabled in your User, right? > > Walter >

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Walter Lee Davis
I don't have Facebook, so I can't try that angle, but you have both devise database_authenticatable and omniauth enabled in your User, right? Walter > On Oct 4, 2018, at 10:25 PM, Joe Guerra wrote: > > I believe I set it up correctly? > Take a look. > >

[Rails] do i have to save a file before i can upload it

2018-10-04 Thread fugee ohu
do i have to save a file before i can upload it to my server with active storage uploader if i have a remote link to the image on the web -- 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

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
I believe I set it up correctly? Take a look. https://cryptic-inlet-13518.herokuapp.com/ On Thursday, October 4, 2018 at 10:07:16 PM UTC-4, Walter Lee Davis wrote: > > You may want to look at OmniAuth for this: > https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview > > You can sign

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Walter Lee Davis
You may want to look at OmniAuth for this: https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview You can sign in using any number of different strategies, including local authentication, if you set it up right. Walter > On Oct 4, 2018, at 9:39 PM, Joe Guerra wrote: > > Sorry, I

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
Sorry, I guess if they have logged in using devise locally initially they can't log in using facebook? On Thu, Oct 4, 2018 at 9:34 PM Joe Guerra wrote: > Ok, then I think I'm going to make a few small changes to the profile form > and the login/sign up pages. > > So you're either registered

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
Ok, then I think I'm going to make a few small changes to the profile form and the login/sign up pages. So you're either registered locally or by facebook. I'll check for a provider in the user table, and if that exists I'll remove the password field (and maybe say that you account is

Re: [Rails] devise & facebook omniauth

2018-10-04 Thread Walter Lee Davis
When you authenticate with an OAuth provider, you don't get a local password. If you want to change the password, you have to do that at Facebook. Walter > On Oct 4, 2018, at 9:48 AM, Joe Guerra wrote: > > I've got these two working together , but I've found out if you sign up > initially

[Rails] Re: Proper Coding Question

2018-10-04 Thread Eric Anderson
I agree with Rob that it is in the realm of taste and preference. I wouldn't have something like this in my view: users = User.where(active: true).join(:transactions).merge(Transaction.where('total > 1000')) form.collection_select users, :id, :name This would be putting model level

[Rails] Login With Civic in ruby on rails

2018-10-04 Thread ro-amit
I am doing login with civic in my rails Project and i am following this link https://docs.civic.com/#Browser and after following this on the Fourth Step I got the Error Require Is not Defined while requiring the node Module. Please Help! -- You received this message because you are

[Rails] devise & facebook omniauth

2018-10-04 Thread Joe Guerra
I've got these two working together , but I've found out if you sign up initially with facebook - the devise password doesn't exist. So I had no way of updating the profile, then I found this ...

[Rails] Re: Proper Coding Question

2018-10-04 Thread John Sanderbeck
Ok, that makes sense... Everything is working fine the way it is coded but I am fairly new to RoR and want to learn proper practices. One of the things I do with pundit is to filter the data by a particular School District, so in the "scope" of Pundit I look to see what role the user has and

[Rails] Re: Proper Coding Question

2018-10-04 Thread Rob Jonson
Hi John, firstly - I don't know pundit, so this is only general advice. secondly - we're definitely in the realm of taste and preference here rather than 'ok' and 'not ok' having said that, my two pence: the rails style guide says 'Never call the model layer directly from a view'