dopie

Activity Graph

Page 1 of 45 | Next »

2019-06-20

[22:14:24] dopie: has joined #RubyOnRails
[22:14:33] dopie: hey all how can I make these routes better
[22:14:34] dopie: https://gist.github.com/staycreativedesign/56517e66ea94785efa296324be0ad0f6
[22:39:47] dopie: Your missing the params[:id]
[22:40:26] dopie: Post.find(params[:id])
[22:41:01] dopie: ok u = User.find(params[:id])
[22:41:20] dopie: do you have a has_many ?
[22:41:25] dopie: and a belongs_to
[22:41:31] dopie: in the model?
[22:41:44] dopie: do you have
[22:41:49] dopie: user has_many posts?
[22:42:34] dopie: You basically won't get any help here.. Like 90% of all the people here are all the ones who think they are godly programmers... Just an advice
[22:43:23] dopie: thats fine
[22:43:36] dopie: have you googled rails paginate ?
[22:43:53] dopie: well have you done any basic rails course?
[22:44:53] dopie: 2015?? thats still new
[22:51:19] dopie: Quit: leaving

2019-06-01

[02:49:04] dopie: Ping timeout: 248 seconds

2019-05-31

[20:18:04] dopie: has joined #RubyOnRails
[20:18:59] dopie: Good day all... Using active storage here and its great but now how cna I define lets say a title for each document...
[20:21:20] dopie: how can I give it a new attribute like title: ?
[21:19:47] dopie: https://gist.github.com/staycreativedesign/c49a4718fd7302e05cf51a4df46d7726

2019-02-20

[15:40:57] dopie: has joined #RubyOnRails
[15:41:15] dopie: I need help here https://gist.github.com/staycreativedesign/6e8a1424f46e15c62840c1158f1ae393 how can I make this work in production ?
[23:11:16] dopie: Ping timeout: 268 seconds

2018-11-26

[00:01:06] dopie: has joined #RubyOnRails
[00:01:51] dopie: How can I create a user which uses password_digest without a password? I keep on getting PG::NotNullViolation: ERROR: null value in column "password_digest"
[00:06:15] dopie: Quit: leaving

2018-11-04

[21:59:25] dopie: has joined #RubyOnRails
[21:59:54] dopie: https://gist.github.com/staycreativedesign/c23cc96728b9cd9cf81b4623403f2234 what am I doing wrong here?? I everything gets hit
[22:21:17] dopie: Quit: Lost terminal

2018-09-06

[18:16:50] dopie: has joined #RubyOnRails
[18:16:57] dopie: I was wondering what you think of this... I have a Post Model... should I have an adjoining Meta model that hasll the seo stuff on it like meta_description, meta_keywords, or should I just put them on the same modell?
[18:17:07] dopie: like post.meta_description or post.meta.description
[20:08:57] dopie: Quit: leaving

2018-08-12

[22:05:18] dopie: has joined #RubyOnRails
[22:05:22] dopie: %img.background-image{:alt => "Background Image", :src => "app/assets/images/video-bg.jpg"}/
[22:05:22] dopie: hey guys .background-image-holder
[22:05:34] dopie: how can i use of the assest pipeline for this image?
[22:06:17] dopie: thats a dopie question
[22:06:19] dopie: figured it out
[22:06:22] dopie: Client Quit

2018-07-26

[18:54:44] dopie: has joined #RubyOnRails
[18:55:33] dopie: Hey guys I have a polymorphic Image and I want to delete it but since its polymorphic I am trying to deelte it and re-render the page it was deeleted on I tried :back but it goes back a page and im using rails 5
[22:02:54] dopie: Ping timeout: 244 seconds

2018-07-16

[13:42:29] dopie: Ping timeout: 260 seconds

2018-07-15

[03:02:45] dopie: has joined #RubyOnRails
[03:02:50] dopie: Can anyone help
[03:02:51] dopie: https://gist.github.com/staycreativedesign/fb36e7e559ed16def9236fd211a6f353
[03:03:04] dopie: why isnt it getting the local i set?

2018-06-19

[19:02:15] dopie: has joined #RubyOnRails
[19:02:20] dopie: %img.background-image{:alt => "Background Image", :src => "app/assets/images/cover11.jpg", :style => "display: none;"}/
[19:02:32] dopie: how would i transform that into rails?
[19:02:44] dopie: asset pipeline
[21:42:32] dopie: Quit: leaving

2018-01-02

[21:47:29] dopie: has joined #RubyOnRails
[22:42:16] dopie: Quit: leaving

2017-12-29

[17:48:40] dopie: has joined #RubyOnRails
[17:49:01] dopie: so get 'ui(/:action)', controller: 'ui'
[17:49:10] dopie: is getting deprecated...
[17:49:15] dopie: what would i do then?
[18:02:05] dopie: havenwood: whatup gangster!
[18:16:39] dopie: Quit: leaving

2017-12-22

[16:16:50] dopie: has joined #RubyOnRails
[16:17:24] dopie: hey guys need help here with this googledrive ruby api... I keep on getting a TypeError and im not sure why
[16:17:27] dopie: https://gist.github.com/staycreativedesign/520ab9b6dad84a943acd3178f0aa25bc
[16:17:37] dopie: has joined #ruby
[16:17:45] dopie: not a rails question
[16:18:33] dopie: hey guyys im using the google drive ruby gem and trying to upload an image to to a folder... I keep on getting a TypeError and im not sure why as I followed the api docs
[16:18:36] dopie: https://gist.github.com/staycreativedesign/520ab9b6dad84a943acd3178f0aa25bc
[16:26:32] dopie: got it working woohoo
[16:26:42] dopie: Quit: leaving

2017-12-21

[18:16:31] dopie: has joined #RubyOnRails
[18:16:43] dopie: im in a rails help channel but most of these guys are assholes
[18:16:55] dopie: youre welcome :)
[18:17:01] dopie: i said MOST OF THEM
[18:17:54] dopie: Client Quit

2017-11-30

[04:58:50] dopie: has joined #ruby
[05:03:27] dopie: hey guys I have a question im currently using sinatra and pony to send emails with attachments my problem is when the user doesnt include an attachment I get this error https://gist.github.com/staycreativedesign/b345aac43ab0bd57f47c2f8b00ac174c
[05:03:45] dopie: how can I have it check if it actually has an attachment?
[05:27:57] dopie: Quit: leaving

2017-11-06

[06:26:12] dopie: Ping timeout: 260 seconds
[08:06:24] dopie: has joined #ruby
[08:15:22] dopie: Ping timeout: 264 seconds
[13:30:19] dopie: has joined #ruby
[13:45:57] dopie: Ping timeout: 240 seconds

2017-11-05

[00:24:39] dopie: has joined #ruby
[00:39:27] dopie: Ping timeout: 248 seconds
[01:58:15] dopie: has joined #ruby
[05:30:09] dopie: Ping timeout: 248 seconds
[13:57:07] dopie: has joined #ruby
[14:28:05] dopie: Ping timeout: 240 seconds
[14:35:25] dopie: has joined #ruby
[14:44:22] dopie: Ping timeout: 258 seconds
[17:48:41] dopie: has joined #ruby
[22:13:34] dopie: Ping timeout: 255 seconds
[23:34:59] dopie: has joined #ruby

2017-11-04

[03:00:02] dopie: has joined #ruby
[03:00:23] dopie: hey guys how can I put this epoch format into a readable date / time format?
[03:00:25] dopie: 1509989400000
[03:00:48] dopie: milliseconds
[05:02:48] dopie: Ping timeout: 240 seconds
[13:15:37] dopie: has joined #ruby
[13:33:27] dopie: Ping timeout: 240 seconds
[13:43:36] dopie: has joined #ruby
[23:16:19] dopie: Ping timeout: 252 seconds

2017-10-26

[15:10:51] dopie: has joined #RubyOnRails
[15:11:45] dopie: hey guys how can I fix this error?
[15:11:46] dopie: https://gist.github.com/staycreativedesign/ad701e4d327d0d38febe549b98c6135e
[16:08:59] dopie: expect { post :create, new_user_params }.to change { ActionMailer::Base.deliveries.count }.by(3)
[16:21:24] dopie: expect { post :create, params: new_user_params }.to change { ActionMailer::Base.deliveries.count }.by(3)
[16:21:29] dopie: forgot params:
[16:38:35] dopie: Ping timeout: 240 seconds

2017-10-24

[19:33:24] dopie: has joined #RubyOnRails
[19:33:36] dopie: Hey all why am I getting a user error on here??
[19:33:37] dopie: https://gist.github.com/staycreativedesign/ad701e4d327d0d38febe549b98c6135e
[19:37:27] dopie: matthewd: thank you sire
[19:40:16] dopie: Quit: Lost terminal

2017-10-14

[17:09:12] dopie: has joined #RubyOnRails
[17:10:05] dopie: Hey guys I have a question using Rails 5.1 I dont use Database Cleaner anymore, now when I do my tests it deletes each entry but then when I run a test again the ID's are different is there a possible way to rese tthe ID's back to 1?
[19:41:59] dopie: Hey guys I have a question using Rails 5.1 I dont use Database Cleaner anymore, now when I do my tests it deletes each entry but then when I run a test again the ID's are different is there a possible way to rese tthe ID's back to 1?
[22:23:35] dopie: Ping timeout: 240 seconds

2017-10-10

[00:45:58] dopie: Ping timeout: 240 seconds
[01:43:10] dopie: has joined #RubyOnRails
[02:11:10] dopie: Ping timeout: 255 seconds
[20:16:42] dopie: has joined #RubyOnRails
[20:16:57] dopie: hey guys can someone explain why this test is not passing?
[20:16:58] dopie: https://gist.github.com/staycreativedesign/0e2fad6e4f0413be517423f20d8f809b
[20:22:22] dopie: dminuoso: you can?
[20:26:49] dopie: create_list(:team, 4, sponsor: @admin)
[20:27:00] dopie: that creates 4 teams
[20:28:07] dopie: correct but save! gives an AR error while save does not
[20:28:09] dopie: since I have
[20:28:10] dopie: validates_length_of :sponsored_teams, maximum: 4
[20:28:23] dopie: why is .save still creating it?
[20:28:37] dopie: i mean saving it
[20:28:45] dopie: what do you mean its not?
[20:29:50] dopie: I pry it and there are 5 teams which the corresponding sponsor_id:
[20:31:18] dopie: ahhh......
[20:32:00] dopie: so it fails validation, and still saves?!@
[20:32:30] dopie: yes and it is persisted
[20:33:49] dopie: ok hold on
[20:34:59] dopie: when I do that it returns true
[20:35:01] dopie: [3] pry(#<RSpec::ExampleGroups::Team>)> @admin.persisted?
[20:35:15] dopie: https://gist.github.com/staycreativedesign/0e2fad6e4f0413be517423f20d8f809b#file-pry-rb
[20:38:41] dopie: dminuoso: ok :)
[20:48:55] dopie: dminuoso: updated :)
[20:49:07] dopie: still get the 5 team failure
[20:51:55] dopie: but object.persisted? is true
[20:52:45] dopie: admin.persisted is true
[20:57:08] dopie: dminuoso: I will get back to you wne I can as I have to head home now :) Thank you very much for your help and direction
[20:58:25] dopie: dminuoso: so just having
[20:58:26] dopie: expect(admin.valid?).to be(false)
[20:58:26] dopie: expect(admin.save).to be(false)
[20:58:31] dopie: and those passing
[20:58:57] dopie: obviously means that the test is passing and nothing is being saved
[21:01:10] dopie: Failure/Error: expect(admin.persisted?).to be(false)
[21:02:19] dopie: these two pass
[21:02:20] dopie: expect(admin.valid?).to be(false)
[21:02:20] dopie: expect(admin.save).to be(false)
[21:04:01] dopie: admin.changed?
[21:05:25] dopie: got it why is the object kept around?
[21:05:27] dopie: dminuoso:
[21:09:21] dopie: yes I did that but I was just going crazy as to why the object was still there rofl
[21:15:58] dopie: dminuoso: thanks or the explanation
[21:21:05] dopie: Ping timeout: 248 seconds
[23:17:49] dopie: has joined #RubyOnRails
[23:41:53] dopie: Ping timeout: 248 seconds

2017-10-09

[23:53:09] dopie: has joined #RubyOnRails
[23:54:17] dopie: Hey guys on my test im only expecting 4 and using validates_length_of :sponsored_teams, maximum: 4
[23:54:22] dopie: https://gist.github.com/staycreativedesign/8c6493d99a9bc6b149f21dca0265e107

2017-09-11

[21:20:02] dopie: has joined #RubyOnRails
[21:20:22] dopie: Can anyone provide me some guidance as to why my coach isnt being saved when I try to create it
[21:20:25] dopie: https://gist.github.com/staycreativedesign/860ee3d2ac1fb94bf660eba8bdbaa14c
[21:31:37] dopie: Quit: Lost terminal

2017-09-06

[17:50:57] dopie: has joined #RubyOnRails
[22:20:41] dopie: Ping timeout: 255 seconds

2017-09-01

[23:32:48] dopie: has joined #RubyOnRails
[23:58:50] dopie: Quit: Lost terminal

2017-08-25

[00:34:23] dopie: Quit: Leaving

2017-08-24

[16:49:22] dopie: has joined #RubyOnRails
[16:49:25] dopie: https://gist.github.com/staycreativedesign/058e2cfb0787b584db5b885d04a81d6d
[16:49:37] dopie: hey guys why arent the answer text_fields showing up
[17:04:37] dopie: Quit: This computer has gone to sleep
[22:53:19] dopie: has joined #RubyOnRails
[22:53:21] dopie: https://gist.github.com/staycreativedesign/32274124f3d2de3faed3023ba5038b48
[22:53:34] dopie: why is my route posting to /new instead of /create?
[22:56:50] dopie: its doing "/questionnaire_answers/1/new" as the form action
[22:57:00] dopie: mikecmpbll, no
[22:57:35] dopie: I have a Questionnaire model, a Question model, a Answer model
[22:59:42] dopie: I have a questionnaire which has questions, and the user adds his answers
[23:02:10] dopie: answer is associated only to a question a question is only associated to a questionnaire , various questionnaire is associated to various users
[23:02:18] dopie: questionnaires
[23:02:49] dopie: so a nested resource would be ideal?
[23:03:31] dopie: yes... but each has their own version
[23:03:53] dopie: so questionnaire 1 could have 300 users...
[23:08:42] dopie: changing answers to questionnaire_answers
[23:09:01] dopie: mikecmpbll, I have it like that :)
[23:09:57] dopie: i had that before sorry

2017-08-01

[00:18:13] dopie: Quit: Leaving
[03:07:37] dopie: has joined #RubyOnRails
[03:14:24] dopie: I got almost everything working...
[03:15:31] dopie: https://gist.github.com/staycreativedesign/4911d08a7d60329abc89f9d6e9ccd7d0 how can I have the user submitted values still appear?
[03:22:32] dopie: has left #RubyOnRails: ("Leaving")

2017-07-31

[00:23:37] dopie: Quit: Leaving
[23:17:49] dopie: has joined #RubyOnRails
[23:18:02] dopie: anyone here can help me with the error I'm getting https://gist.github.com/staycreativedesign/0e184957069dde375065928b693ff5e5 whenever you have time...
[23:27:21] dopie: did I overkill trying to implement Service Objects?
[23:28:36] dopie: Radar, rip?

2017-07-30

[22:25:54] dopie: has joined #RubyOnRails
[22:26:18] dopie: Hey Radar
[22:26:33] dopie: how goes there, you haven't moved to elixir yet?
[23:54:01] dopie: Radar, didn't even know you did just figured you'd move into that

2017-07-29

[21:29:54] dopie: has joined #RubyOnRails
[21:30:02] dopie: Client Quit

2017-07-25

[18:45:02] dopie: has joined #RubyOnRails
[18:46:22] dopie: I am having problems with my associations https://gist.github.com/staycreativedesign/ae79ef010b9029ebf8f9bf5b23c73d20 I don't think I set them up correctly, A user, has one job, a job has one business category and has one business industry
[18:55:32] dopie: Quit: Leaving

2017-07-19

[18:57:54] dopie: Quit: Leaving