ziyadb

Activity Graph

Page 1 of 5 | Next »

2019-07-09

[11:56:01] ziyadb: *.net *.split
[12:01:27] ziyadb: has joined #RubyOnRails

2019-05-22

[05:29:42] ziyadb: Ping timeout: 252 seconds
[05:33:37] ziyadb: has joined #RubyOnRails
[13:23:17] ziyadb: General architecture question, I have a "post" model with uuids as their primary key, and it doesn't exactly play nice with the polymorphic models it's associated with. i.e. commentable, eventable, and action_text_rich_texts, what's the best practice in this case?
[13:24:27] ziyadb: I'm leaning towards simply no longer using uuids for the post model, because it's creating more trouble than it's worth.
[14:34:58] ziyadb: thoughts on the above, gentlemen?
[19:11:01] ziyadb: weaksauce: ^
[19:14:28] ziyadb: weaksauce: the polymorphic association expects an integer type for the commentable type (post), which is a uuid, so it's not playing nice
[19:25:43] ziyadb: fair enough...

2019-05-21

[00:00:08] ziyadb: tell me about it...
[00:02:36] ziyadb: I didn't even touch it, it's all the generated default
[00:08:04] ziyadb: weaksauce: I'm starting to suspect that it's probably something else in my rather effed codebase. I'll continue troubleshooting and let you know what happens
[00:08:13] ziyadb: thank you for your help!
[00:08:43] ziyadb: thanks :)
[00:18:05] ziyadb: weaksauce: okay so when I do user.has_role?(:moderator, space) it returns true, but when I do space.users.with_role(:moderator), user is not included.
[00:18:51] ziyadb: that is where the problem begins and ends, are there any particular "params" I need to whitelist in the space controller? Probably not...
[00:20:21] ziyadb: perhaps I should look into that since we couldn't identify an issue with my pundit setup

2019-05-20

[06:47:15] ziyadb: Read error: Connection reset by peer
[06:47:27] ziyadb: has joined #RubyOnRails
[23:09:23] ziyadb: anyone using Pundit for authorisation? I'm having trouble with a pretty basic issue
[23:12:00] ziyadb: the "record" object I'm trying to verify against is empty: Space(id: integer, name: string, description: text, organisation_id: integer, created_at: datetime, updated_at: datetime), so when I do like user.has_role(:moderator, record) it returns false, because record is a new instance, whereas if I try the console with the actual record it works fine.
[23:13:09] ziyadb: So the problem is the actual object isn't being passed to the "record" on the policy, IDK why that is the case, I have "authorize @object" in the relevant actions, so it shouldn't be a problem...I'm clearly missing something here
[23:13:43] ziyadb: I have resourcify the model in question
[23:13:45] ziyadb: s/the/in the/
[23:14:41] ziyadb: weaksauce: thanks :)
[23:24:18] ziyadb: https://gist.github.com/ziyadbasheer/5dfcaf3dd1a34e85a3a7f9c483db034a
[23:25:04] ziyadb: I excluded irrelevant parts, association between spaces <-> users are set up correctly.
[23:29:36] ziyadb: Supposedly? I’ll verify
[23:34:54] ziyadb: weaksauce: pretty sure, since the view would error out if it didn't exist..
[23:36:47] ziyadb: yup, I verified it worked fine
[23:43:48] ziyadb: weaksauce: nope, just the default initialize method application_policy.rb which space_policy inherits from
[23:48:29] ziyadb: weaksauce: close, but not quite:
[23:48:52] ziyadb: pretty much the same.. https://www.irccloud.com/pastebin/Rwhol4t6/record%20vs%20%40record
[23:51:08] ziyadb: Would adding an initializer to the space policy do the trick?
[23:52:26] ziyadb: That makes two of us
[23:52:42] ziyadb: But this issue is fairly trivial I mean the sensible defaults should kick in
[23:53:24] ziyadb: authorize @space should pretty much do it here but clearly it’s not
[23:54:44] ziyadb: And I don’t understand pundit well enough to override the record definition
[23:55:28] ziyadb: That’s intentional to raise the better errors so I can access the instance var “record”
[23:55:51] ziyadb: And see whether it contains the actual record or not (which it doesn’t)
[23:58:07] ziyadb: edit which relegates to update

2019-05-04

[12:45:16] ziyadb: good morning
[12:47:33] ziyadb: I'm trying to eager load the action_text_rich_texts object stored in actiontext via includes but it's not clear to me how the association between my model "Post" and action_text_rich_texts works.
[12:47:41] ziyadb: @posts = @space.posts.includes(???)

2019-05-03

[22:25:07] ziyadb: Ping timeout: 264 seconds

2019-04-30

[14:51:01] ziyadb: I'm trying to upgrade from 5.2.3 to 6, so I added "gem 'rails', github: 'rails/rails', branch: '6-0-stable'" to my gemfile
[14:51:18] ziyadb: when I run bundle install/update it just gets stuck there
[14:53:56] ziyadb: any ideas how I can get it to complete the bundle?
[14:58:05] ziyadb: havenwood: Running `bundle update --verbose` with bundler 1.17.2
[14:58:32] ziyadb: I've tried just bundle, bundle install and they all get stuck and do nothing, I tried source 'http://rubygems.org' vs https but nothing
[14:59:13] ziyadb: even tried removing the branch to attempt bundling edge, but nada
[14:59:52] ziyadb: At this point I suspect it's either due to the bundler version I'm using or my connection
[15:05:16] ziyadb: havenwood: you're right, attempting to clone: Receiving objects: 1% (9390/686813), 3.79 MiB | 254.00 KiB/s I had no idea it was this huge
[15:05:42] ziyadb: havenwood: thank you for your help. I'll just be more patient.
[16:57:00] ziyadb: I'm having trouble with bundler dependencies upgrading to 6.0.0.rc1, here's the output: https://gist.github.com/ziyadbasheer/02b8b9c4989c41fd41a671b852f19297
[16:57:35] ziyadb: all the gems it's complaining about are available in the required versions, I don't understand what the problem is
[17:12:26] ziyadb: figured it out, just had to work a little harder

2019-04-24

[13:47:27] ziyadb: has joined #RubyOnRails

2019-04-20

[08:28:30] ziyadb: has left #ruby: ()

2019-04-17

[08:44:23] ziyadb: any idea why devise would use get instead of post?
[08:44:42] ziyadb: i've been stuck on this for 2 days now...
[09:01:39] ziyadb: garyserj: I wish. I mean why would my devise use GET instead of POST when submitting?
[09:01:40] ziyadb: https://beta.mattersource.com/users/sign_up
[09:02:05] ziyadb: At this point I'm considering scrapping the whole application and rebuilding it from scratch.
[09:02:18] ziyadb: because I have no idea where to even troubleshoot
[09:09:01] ziyadb: garyserj: I'll review the search form, as since I added it, the user form no longer works. i.e. submitting through it does nothing, it only rerenders the registrations#new method instead of going to registrations#create (hence get vs. post issue)
[09:12:05] ziyadb: I tried removing the search form, but the user form is still not working
[09:13:05] ziyadb: this is what ends up happening after clicking submit:
[09:13:17] ziyadb: http://localhost:3000/users/sign_up?utf8=%E2%9C%93&authenticity_token=mu3NiAS0tA%3D%3D&user%5Bname%5D=Ziyad+Basheer&user%5Busername%5D=ziyadb&user%5Bemail%5D=ziyadbasheer%40gmail.com&user%5Bpassword%5D=MyPassword&user%5Bpassword_confirmation%5D=MyPassword&button=
[09:13:26] ziyadb: which clearly isn't supposed to happen if it was POSTing like it should
[09:14:28] ziyadb: I’m really just wondering what could possibly make devise break so badly
[09:19:18] ziyadb: Hi terens
[09:25:16] ziyadb: terens: review https://guides.rubyonrails.org/routing.html#routing-concerns
[09:30:31] ziyadb: I'm still stuck on the devise GET/POST issue...
[09:36:33] ziyadb: If I don't resolve this I'll have to take the params passed through get and pass them onto the create method... Since devise won't use POST for some reason that I cannot decipher

2019-04-16

[17:30:02] ziyadb: has joined #RubyOnRails
[17:30:08] ziyadb: has joined #ruby
[17:30:45] ziyadb: I'm having trouble with devise, it's been frustrating me for a day. I've uninstalled the gem and reinstalled it, nothing seems to make any difference
[17:33:35] ziyadb: the worst part is it passes everything in the URL like:
[17:33:41] ziyadb: http://localhost:3000/users/sign_up?utf8=%E2%9C%93&authenticity_token=rGqn0XsnFvp4XUiUe44IJ7jnPicgira3n9ugSZeSSVGu4z3AgLKri5B8UzZjw9ueUxfISNaYEPs7dwvOeglIQQ%3D%3D&user%5Bemail%5D=test%40example.com&user%5Bpassword%5D=MyPassword&user%5Bpassword_confirmation%5D=MyPassword&commit=Sign+up
[17:33:49] ziyadb: and then it just rerenders registrations#new
[17:33:57] ziyadb: so the create method is not even called
[17:37:48] ziyadb: the forms are practically dead
[17:59:09] ziyadb: I would appreciate any help...
[18:10:15] ziyadb: Vaevictus: that makes two of us. but the get/post issue is a critical one, indicates that there's something terribly broken.
[18:11:46] ziyadb: I don't think there's much I can do beyond share the entire codebase, since what caused the problem wasn't resolved by a reinstall of devise
[18:12:02] ziyadb: here's an online version for you to inspect https://beta.mattersource.com/users/sign_up
[18:12:57] ziyadb: does it though? Rails Panel just makes it GET GET GET #new
[18:13:14] ziyadb: on the logs no #create request comes in
[18:13:40] ziyadb: other than that the devise install is 100% vanilla..let me make a gist of the routes and all
[18:19:37] ziyadb: https://gist.github.com/ziyadbasheer/08d7dd0c75379e8651276fb098133959
[18:20:42] ziyadb: I don't think errors are getting displayed, since they aren't showing up even if I deliberately poison the fields
[18:22:10] ziyadb: users go in postgres, I added the schema and the model.rb to the gist (refresh)
[18:23:13] ziyadb: https://www.irccloud.com/pastebin/5HHkSvT3/
[18:23:34] ziyadb: clearly, since it's not posting, or if it is, the #create action is never triggered
[18:24:45] ziyadb: I don't suppose <%= notice %> in my layout/application.html.erb would cut it?
[18:25:32] ziyadb: Vaevictus: I don't believe so, since devise has its own _error_messages partial
[18:27:04] ziyadb: it's called in the new.html.erb, so it should show if there are errors, that is to say, whenever I used to input invalid information for example, it would return an error, but it's not even getting there to render and error, whats happening here is completely invisible to me since no errors are raised
[18:27:21] ziyadb: s/and error/an error/
[18:28:14] ziyadb: users/sign_up -> users/registrations#new hence new.html.erb

2019-01-20

[16:33:00] ziyadb: has joined #RubyOnRails
[16:33:06] ziyadb: has joined #ruby
[22:12:42] ziyadb: Quit: Connection closed for inactivity

2019-01-19

[05:30:31] ziyadb: has joined #RubyOnRails
[05:30:37] ziyadb: has joined #ruby
[07:40:03] ziyadb: Quit: Connection closed for inactivity

2019-01-14

[07:10:01] ziyadb: has joined #RubyOnRails
[07:10:07] ziyadb: has joined #ruby
[22:59:38] ziyadb: Quit: Connection closed for inactivity

2019-01-13

[01:27:57] ziyadb: Quit: Connection closed for inactivity

2019-01-12

[05:08:12] ziyadb: has joined #RubyOnRails
[05:08:18] ziyadb: has joined #ruby

2019-01-11

[19:45:19] ziyadb: has joined #RubyOnRails
[19:45:25] ziyadb: has joined #ruby
[23:29:31] ziyadb: Quit: Connection closed for inactivity

2019-01-10

[00:29:44] ziyadb: Quit: Connection closed for inactivity

2019-01-09

[10:27:58] ziyadb: has joined #RubyOnRails
[10:28:04] ziyadb: has joined #ruby

2016-04-07

[10:07:23] ziyadb: has joined #ruby
[10:07:23] ziyadb: has joined #RubyOnRails
[14:04:51] ziyadb: Quit: Connection closed for inactivity

2016-03-24

[06:34:48] ziyadb: Quit: Connection closed for inactivity

2016-03-23

[02:30:40] ziyadb: has joined #ruby
[02:30:40] ziyadb: has joined #RubyOnRails
[06:44:48] ziyadb: Quit: Connection closed for inactivity
[11:07:22] ziyadb: has joined #RubyOnRails
[11:07:23] ziyadb: has joined #ruby
[17:14:48] ziyadb: Quit: Connection closed for inactivity
[21:35:38] ziyadb: has joined #ruby
[21:35:38] ziyadb: has joined #RubyOnRails

2016-03-18

[02:34:47] ziyadb: Quit: Connection closed for inactivity

2016-03-17

[03:24:46] ziyadb: Quit: Connection closed for inactivity
[06:23:44] ziyadb: has joined #ruby
[06:23:44] ziyadb: has joined #RubyOnRails
[08:34:46] ziyadb: Quit: Connection closed for inactivity
[11:05:49] ziyadb: has joined #ruby
[11:05:49] ziyadb: has joined #RubyOnRails
[15:04:46] ziyadb: Quit: Connection closed for inactivity
[20:30:24] ziyadb: has joined #ruby
[20:30:24] ziyadb: has joined #RubyOnRails

2016-03-16

[02:44:46] ziyadb: Quit: Connection closed for inactivity
[09:46:05] ziyadb: has joined #ruby
[09:46:05] ziyadb: has joined #RubyOnRails
[21:24:46] ziyadb: Quit: Connection closed for inactivity
[22:40:36] ziyadb: has joined #ruby
[22:40:36] ziyadb: has joined #RubyOnRails

2016-03-15

[00:08:11] ziyadb: has joined #ruby
[00:08:11] ziyadb: has joined #RubyOnRails
[04:04:46] ziyadb: Quit: Connection closed for inactivity
[08:58:43] ziyadb: has joined #RubyOnRails
[08:58:44] ziyadb: has joined #ruby
[12:44:46] ziyadb: Quit: Connection closed for inactivity
[21:13:39] ziyadb: has joined #ruby
[21:13:39] ziyadb: has joined #RubyOnRails

2016-03-14

[04:34:46] ziyadb: Quit: Connection closed for inactivity
[07:47:11] ziyadb: has joined #ruby
[07:47:11] ziyadb: has joined #RubyOnRails
[10:04:46] ziyadb: Quit: Connection closed for inactivity
[10:30:46] ziyadb: has joined #ruby
[10:30:46] ziyadb: has joined #RubyOnRails
[13:04:45] ziyadb: Quit: Connection closed for inactivity
[13:30:36] ziyadb: has joined #ruby
[13:30:36] ziyadb: has joined #RubyOnRails
[22:34:46] ziyadb: Quit: Connection closed for inactivity

2016-03-13

[00:05:36] ziyadb: has joined #ruby
[00:05:36] ziyadb: has joined #RubyOnRails
[02:34:45] ziyadb: Quit: Connection closed for inactivity
[09:14:19] ziyadb: has joined #ruby
[09:14:19] ziyadb: has joined #RubyOnRails
[16:24:45] ziyadb: Quit: Connection closed for inactivity
[19:55:26] ziyadb: has joined #ruby
[19:55:26] ziyadb: has joined #RubyOnRails

2016-03-12

[01:14:45] ziyadb: Quit: Connection closed for inactivity

2016-03-11

[01:34:45] ziyadb: Quit: Connection closed for inactivity
[13:08:03] ziyadb: has joined #ruby
[13:08:03] ziyadb: has joined #RubyOnRails
[21:04:45] ziyadb: Quit: Connection closed for inactivity
[22:45:41] ziyadb: has joined #ruby
[22:45:41] ziyadb: has joined #RubyOnRails

2016-03-10

[07:53:12] ziyadb: has joined #ruby
[07:53:12] ziyadb: has joined #RubyOnRails
[14:04:45] ziyadb: Quit: Connection closed for inactivity
[19:40:10] ziyadb: has joined #ruby
[19:40:10] ziyadb: has joined #RubyOnRails

2016-03-09

[15:48:21] ziyadb: has joined #ruby
[15:48:21] ziyadb: has joined #RubyOnRails
[18:26:41] ziyadb: nfk: I guess you'll have to test and find out.
[18:27:04] ziyadb: entertain us with a rant on 'someone else's problems' during deployment.
[22:44:45] ziyadb: Quit: Connection closed for inactivity

2016-03-08

[01:04:44] ziyadb: Quit: Connection closed for inactivity

2016-03-07

[02:04:44] ziyadb: Quit: Connection closed for inactivity
[07:49:56] ziyadb: has joined #ruby
[07:49:56] ziyadb: has joined #RubyOnRails
[11:04:44] ziyadb: Quit: Connection closed for inactivity
[11:16:30] ziyadb: has joined #ruby
[11:16:30] ziyadb: has joined #RubyOnRails
[20:14:44] ziyadb: Quit: Connection closed for inactivity
[21:11:25] ziyadb: has joined #ruby
[21:11:25] ziyadb: has joined #RubyOnRails

2016-03-06

[03:24:45] ziyadb: Quit: Connection closed for inactivity
[10:16:08] ziyadb: has joined #ruby
[10:16:08] ziyadb: has joined #RubyOnRails

2016-03-05

[18:33:18] ziyadb: has joined #ruby
[18:33:18] ziyadb: has joined #RubyOnRails

2016-03-04

[12:34:44] ziyadb: Quit: Connection closed for inactivity

2016-03-03

[03:54:43] ziyadb: Quit: Connection closed for inactivity
[17:53:43] ziyadb: has joined #ruby
[17:53:43] ziyadb: has joined #RubyOnRails

2016-03-02

[05:04:43] ziyadb: Quit: Connection closed for inactivity
[07:49:32] ziyadb: has joined #ruby
[07:49:32] ziyadb: has joined #RubyOnRails

2016-03-01

[09:22:38] ziyadb: has joined #ruby
[09:22:38] ziyadb: has joined #RubyOnRails

2016-02-29

[02:34:42] ziyadb: Quit: Connection closed for inactivity
[06:04:17] ziyadb: has joined #ruby
[06:04:17] ziyadb: has joined #RubyOnRails
[12:34:42] ziyadb: Quit: Connection closed for inactivity

2016-02-28

[01:34:42] ziyadb: Quit: Connection closed for inactivity
[05:03:50] ziyadb: has joined #RubyOnRails
[05:03:53] ziyadb: has joined #ruby
[07:34:51] ziyadb: Read error: Connection reset by peer
[13:29:03] ziyadb: has joined #RubyOnRails
[13:29:05] ziyadb: has joined #ruby

2016-02-27

[01:34:41] ziyadb: Quit: Connection closed for inactivity
[07:24:29] ziyadb: has joined #ruby
[07:24:29] ziyadb: has joined #RubyOnRails
[22:49:27] ziyadb: Ping timeout: 313 seconds
[22:53:52] ziyadb: has joined #ruby
[22:53:52] ziyadb: has joined #RubyOnRails

2016-02-26

[02:54:41] ziyadb: Quit: Connection closed for inactivity
[09:56:30] ziyadb: has joined #ruby
[09:56:30] ziyadb: has joined #RubyOnRails

2016-02-25

[10:49:32] ziyadb: has joined #ruby
[10:49:32] ziyadb: has joined #RubyOnRails

2016-02-24

[16:05:43] ziyadb: has joined #ruby
[16:05:43] ziyadb: has joined #RubyOnRails
[18:24:41] ziyadb: Quit: Connection closed for inactivity

2016-02-23

[11:54:39] ziyadb: Quit: Connection closed for inactivity
[13:16:17] ziyadb: has joined #ruby
[13:16:17] ziyadb: has joined #RubyOnRails
[16:04:39] ziyadb: Quit: Connection closed for inactivity
[18:51:21] ziyadb: has joined #ruby
[18:51:21] ziyadb: has joined #RubyOnRails

2016-02-22

[19:46:47] ziyadb: has joined #RubyOnRails
[19:46:48] ziyadb: has joined #ruby