shilon

Activity Graph

Page 1 of 5 | Next »

2019-03-18

[18:49:06] shilon: has joined #RubyOnRails
[18:50:53] shilon: Hello there, I'm trying to use ActiveStorage to store multiple images attached to a post. It saves correctly but for some reason the image never shows up. I followed multiple tutorials but got to no avail.
[18:54:18] shilon: I got the image to show up once by adding image.blob but after a recreation of the DB it stopped working again
[20:36:35] shilon: Ping timeout: 256 seconds

2017-12-12

[01:20:27] shilon: Quit: Shilon
[01:20:52] shilon: has joined #RubyOnRails
[01:21:15] shilon: Client Quit
[21:42:54] shilon: has joined #RubyOnRails
[22:21:04] shilon: has left #RubyOnRails: ()

2017-12-11

[21:34:44] shilon: has joined #RubyOnRails

2017-11-24

[00:38:41] shilon: has left #RubyOnRails: ()
[02:54:40] shilon: has joined #RubyOnRails
[02:54:50] shilon: Client Quit

2017-11-23

[00:27:39] shilon: has joined #RubyOnRails
[00:40:25] shilon: Quit: Shilon
[00:42:53] shilon: has joined #RubyOnRails
[00:44:14] shilon: has left #RubyOnRails: ()
[08:24:21] shilon: has joined #RubyOnRails
[08:35:03] shilon: Quit: Shilon
[08:38:53] shilon: has joined #RubyOnRails
[08:47:40] shilon: has left #RubyOnRails: ()
[09:59:39] shilon: has joined #RubyOnRails
[10:00:05] shilon: Client Quit
[18:37:46] shilon: has joined #RubyOnRails

2017-11-22

[01:53:45] shilon: Quit: Shilon
[09:11:28] shilon: has joined #RubyOnRails
[09:31:57] shilon: Quit: Shilon
[09:32:21] shilon: has joined #RubyOnRails
[09:32:45] shilon: Client Quit
[09:35:48] shilon: has joined #RubyOnRails
[09:36:06] shilon: Client Quit

2017-11-21

[00:54:17] shilon: has joined #RubyOnRails
[02:42:00] shilon: Quit: Shilon
[08:13:27] shilon: has joined #RubyOnRails
[08:13:58] shilon: Client Quit
[08:14:23] shilon: has joined #RubyOnRails
[08:14:45] shilon: Client Quit
[22:01:27] shilon: has joined #RubyOnRails
[22:44:17] shilon: Quit: Shilon
[22:46:38] shilon: has joined #RubyOnRails

2017-11-20

[22:18:33] shilon: has joined #RubyOnRails
[22:23:48] shilon: hello everyone, I have devise user and another one non devise. The devise user I want to connect to multiple omniauths and the non devise I want to use just facebook. For some reason I can’t use devise and omniauth config at the same time. Anyone experienced this issue?
[22:25:56] shilon: baweaver: can I have both users with devise?
[22:26:13] shilon: ok thanks. :)
[22:28:23] shilon: Radar: the non devise user stops connecting to facebook when I try to add omniauthable to the devise user.
[23:48:36] shilon: Quit: Shilon

2017-10-11

[00:10:35] shilon: Ping timeout: 240 seconds
[00:51:20] shilon: Quit: Shilon
[08:15:59] shilon: has joined #RubyOnRails
[08:25:27] shilon: Quit: Shilon
[08:33:36] shilon: has joined #RubyOnRails
[08:52:58] shilon: Quit: Shilon
[08:58:53] shilon: Client Quit
[08:58:53] shilon: has joined #RubyOnRails

2017-10-10

[21:38:40] shilon: has joined #RubyOnRails
[23:21:31] shilon: Ping timeout: 255 seconds
[23:35:29] shilon: Ping timeout: 248 seconds
[23:36:23] shilon: has joined #RubyOnRails

2017-10-06

[10:08:55] shilon: has joined #RubyOnRails
[13:47:39] shilon: Quit: Shilon

2017-09-04

[11:02:49] shilon: has joined #RubyOnRails
[11:02:52] shilon: has left #RubyOnRails: ()

2017-09-03

[11:49:01] shilon: has joined #RubyOnRails
[17:33:36] shilon: Quit: Shilon
[19:38:38] shilon: has joined #RubyOnRails
[20:18:28] shilon: Quit: Shilon
[20:39:25] shilon: has joined #RubyOnRails
[21:20:17] shilon: Quit: Shilon

2017-09-01

[00:51:33] shilon: has joined #RubyOnRails
[02:02:27] shilon: Quit: Shilon
[02:02:50] shilon: has joined #RubyOnRails
[02:03:12] shilon: Client Quit
[08:26:54] shilon: has joined #RubyOnRails
[10:00:31] shilon: hello, I had turbolinks and had my bootstrap modals working, now I removed turbolinks and added npm, reinstalled all JS libraries and now when I open my model I get ActionController::RoutingError (No route matches [GET] "/assets/bootstrap.css.map")
[10:00:40] shilon: anyone ever had this problem?
[10:01:02] shilon: can it be because I’ve removed @import "bootstrap-sprockets”; ?
[16:20:46] shilon: Quit: Shilon
[17:48:04] shilon: has joined #RubyOnRails
[19:12:13] shilon: Quit: Shilon
[21:12:07] shilon: has joined #RubyOnRails
[22:45:19] shilon: Quit: Shilon

2017-08-30

[08:05:43] shilon: has joined #RubyOnRails
[10:16:07] shilon: Quit: Shilon
[10:55:20] shilon: has joined #RubyOnRails
[11:54:30] shilon: Quit: Shilon

2017-08-29

[00:31:28] shilon: Quit: Shilon
[09:34:47] shilon: has joined #RubyOnRails
[09:42:28] shilon: Hi everyone, how can I have 2 different reset_password mailers. I need a different maler for the first time the user sets up the account, but I’m not being able to generate a token as reset_password_instructions does...
[10:48:44] shilon: Quit: Shilon
[12:52:25] shilon: has joined #RubyOnRails
[13:16:26] shilon: Quit: Shilon
[13:23:09] shilon: has joined #RubyOnRails
[13:57:24] shilon: Quit: Shilon
[15:30:17] shilon: has joined #RubyOnRails
[17:21:46] shilon: Quit: Shilon
[21:18:51] shilon: has joined #RubyOnRails
[23:15:35] shilon: Quit: Shilon

2017-08-28

[18:47:49] shilon: has joined #RubyOnRails
[18:52:08] shilon: how can I create a similar token to reset_password_instructions but with custom mailer?
[19:13:43] shilon: Quit: Shilon
[23:18:07] shilon: has joined #RubyOnRails
[23:42:21] shilon: Quit: Shilon
[23:52:30] shilon: has joined #RubyOnRails

2017-08-26

[00:39:43] shilon: Quit: Shilon
[18:04:53] shilon: has joined #RubyOnRails
[19:36:46] shilon: Quit: Shilon
[20:18:56] shilon: has joined #RubyOnRails
[20:18:59] shilon: Client Quit

2017-08-25

[01:42:20] shilon: Quit: Shilon
[01:42:46] shilon: has joined #RubyOnRails
[03:44:34] shilon: Quit: Shilon
[08:56:34] shilon: has joined #RubyOnRails
[09:34:54] shilon: hello everyone, how can I increment a value on a attribute?
[09:43:33] shilon: tbuehlmann_: not working
[09:44:12] shilon: tbuehlmann_: don’t need to do your_model.save?
[09:45:33] shilon: nice, had to save :)
[10:17:56] shilon: tbuehlmann_: thanks :)
[11:24:06] shilon: hey, I have a model with 2 attributes, invitations_limit and invitations_used. I’m trying to add bootstrap progressbar to work with these values. I need to pass invitations_limit as 100% so I can inject style="width: %” dynamically. Is it possibe to do this?
[11:25:34] shilon: tbuehlmann_: width is always 5% because invitations_limit is currently 5…
[11:36:44] shilon: tbuehlmann_: no, it gives me 0
[11:38:19] shilon: I want to have invitations_limit as 100% and everyime I add a user I want to remove 1 from limit and add 1 to count
[11:40:42] shilon: https://gist.github.com/jamesalbuquerque/f458f24a49e8e9ebbd49c44ac2968638
[11:47:29] shilon: sevenseacat: should I do to_f?
[11:48:09] shilon: it gives me 5%
[12:01:54] shilon: sevenseacat: think what I needed was this @invitations_available = (Float(@invitations_limit - @invitations_used) / @invitations_limit * 100).ceil
[12:03:18] shilon: :P still need to test it
[17:26:47] shilon: Quit: Shilon
[17:29:36] shilon: has joined #RubyOnRails
[18:02:26] shilon: Quit: Shilon
[18:11:11] shilon: has joined #RubyOnRails
[18:20:18] shilon: Quit: Shilon
[21:24:25] shilon: has joined #RubyOnRails
[21:29:49] shilon: Quit: Shilon
[21:38:09] shilon: has joined #RubyOnRails
[22:55:27] shilon: Ping timeout: 248 seconds

2017-08-24

[22:35:49] shilon: has joined #RubyOnRails
[22:36:56] shilon: hello everyone, I have a noob question. When adding system admin users, should I add them via seed or with a task?
[22:45:53] shilon: Read error: Connection reset by peer
[22:46:32] shilon: has joined #RubyOnRails

2017-08-12

[11:02:20] shilon: has joined #RubyOnRails
[11:13:23] shilon: Hello everyone. I’m having trouble with this https://gist.github.com/jamesalbuquerque/70597efeb8238e4877f093b0a13d80d4
[11:15:05] shilon: I’m trying to to add to the assocations table the user_id, when creating a location. Anyone can tell my why does it only save the brand_id and location_id but not the user_id
[11:16:48] shilon: ups, but that line shouldn’t be needed right?
[11:17:04] shilon: I get the brand_id and the location_id with the strong params
[11:17:33] shilon: with this @location = @brand.locations.create(location_params)
[11:17:38] shilon: I forgot to add the strong params
[11:17:41] shilon: wait a sec
[11:18:50] shilon: https://gist.github.com/jamesalbuquerque/70597efeb8238e4877f093b0a13d80d4
[11:18:58] shilon: now it’s correct
[11:19:03] shilon: but it doesnt work
[11:20:33] shilon: do I need to add it as a hidden_field?
[11:21:12] shilon: so I should do @location.user_id = @user.id before save?
[11:21:45] shilon: but will that pass the user_id to the brand_locations?
[11:25:32] shilon: undefined method `user_id=' for nil:NilClass I get this
[11:25:55] shilon: so it might be @brand.location.user_id = @user.id?
[11:28:58] shilon: I want create multiple locations for a brand and add the user that created it…
[11:32:02] shilon: maybe I don’t need it
[11:32:24] shilon: sorry. :/
[11:36:26] shilon: and with user?
[11:37:50] shilon: on each location we need a user_id
[11:37:59] shilon: so we don’t need the brand_locations right?
[11:39:14] shilon: loool why?
[11:39:23] shilon: is it strange?
[11:39:43] shilon: I need to keep the brand_locations table up
[11:39:55] shilon: but I don’t need the brand_location model?
[11:40:36] shilon: don’t understand...
[11:40:58] shilon: so I’ll add 3 references :user, :brand, :location to the brand_locations table
[11:41:04] shilon: as I had previous.
[13:08:00] shilon: Quit: Shilon
[13:30:01] shilon: has joined #RubyOnRails
[14:37:09] shilon: sevenseacat: thanks, i did it :)
[14:55:31] shilon: Ping timeout: 246 seconds

2017-08-10

[10:20:31] shilon: has joined #RubyOnRails
[10:47:48] shilon: Ping timeout: 255 seconds
[10:54:41] shilon: has joined #RubyOnRails
[11:48:04] shilon: Quit: Shilon
[13:05:13] shilon: has joined #RubyOnRails
[14:06:50] shilon: Quit: Shilon
[14:30:54] shilon: has joined #RubyOnRails
[15:27:53] shilon: Read error: Connection reset by peer
[15:30:38] shilon: has joined #RubyOnRails
[16:03:30] shilon: Read error: Connection reset by peer
[16:08:03] shilon: has joined #RubyOnRails
[17:47:36] shilon: Quit: Shilon
[18:25:49] shilon: has joined #RubyOnRails
[18:26:27] shilon: Client Quit

2017-07-18

[11:41:13] shilon: has joined #RubyOnRails
[12:49:15] shilon: Quit: Shilon
[13:02:05] shilon: has joined #RubyOnRails
[13:38:20] shilon: hello there, I’m starting to use money and currencies. To switch between currencies do I need to make add the rate myself or can I use a gem for that? How can I have a select_field with only currencies I want? Can I define the currencies available?
[14:08:05] shilon: Quit: Shilon
[14:08:21] shilon: has joined #RubyOnRails
[14:08:54] shilon: Client Quit
[14:39:25] shilon: has joined #RubyOnRails
[15:02:59] shilon: Quit: Shilon
[16:42:51] shilon: has joined #RubyOnRails
[18:29:47] shilon: Quit: Shilon
[18:31:53] shilon: has joined #RubyOnRails
[18:38:54] shilon: Quit: Shilon
[18:39:19] shilon: has joined #RubyOnRails
[18:39:32] shilon: Client Quit

2017-07-10

[02:09:48] shilon: Quit: Shilon
[02:42:04] shilon: has joined #RubyOnRails
[03:23:23] shilon: Quit: Shilon
[03:23:56] shilon: has joined #RubyOnRails
[03:24:11] shilon: Client Quit
[18:07:41] shilon: has joined #RubyOnRails
[18:25:08] shilon: Quit: Shilon
[18:26:32] shilon: Client Quit
[18:26:32] shilon: has joined #RubyOnRails

2017-07-09

[02:15:09] shilon: Quit: Shilon
[10:33:50] shilon: has joined #RubyOnRails
[11:33:29] shilon: Quit: Shilon
[12:19:03] shilon: has joined #RubyOnRails
[13:42:40] shilon: Quit: Shilon
[13:56:03] shilon: has joined #RubyOnRails
[14:59:34] shilon: Quit: Shilon
[15:32:32] shilon: has joined #RubyOnRails
[16:32:10] shilon: Quit: Shilon
[16:49:43] shilon: has joined #RubyOnRails
[17:56:04] shilon: Quit: Shilon
[18:17:17] shilon: has joined #RubyOnRails
[18:25:31] shilon: Quit: Shilon
[19:53:32] shilon: has joined #RubyOnRails
[20:58:52] shilon: Quit: Shilon
[22:31:17] shilon: has joined #RubyOnRails

2017-07-08

[13:26:27] shilon: Quit: Shilon
[13:54:34] shilon: has joined #RubyOnRails
[14:31:44] shilon: Quit: Shilon
[15:42:38] shilon: has joined #RubyOnRails
[16:12:32] shilon: Quit: Shilon
[16:16:40] shilon: has joined #RubyOnRails
[18:47:03] shilon: Quit: Shilon
[23:34:45] shilon: has joined #RubyOnRails