sekmo

Activity Graph

Page 1 of 1

2017-12-04

[11:19:53] sekmo: has joined #RubyOnRails
[11:19:53] sekmo: has joined #ruby
[12:18:50] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[22:15:30] sekmo: has joined #RubyOnRails
[22:15:30] sekmo: has joined #ruby
[22:46:51] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-11-20

[10:16:50] sekmo: has joined #ruby
[10:16:50] sekmo: has joined #RubyOnRails
[10:51:35] sekmo: Read error: Connection reset by peer

2017-11-07

[10:44:54] sekmo: has joined #ruby
[10:44:54] sekmo: has joined #RubyOnRails
[11:36:29] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-10-25

[08:52:43] sekmo: has joined #RubyOnRails
[08:52:44] sekmo: has joined #ruby
[08:53:55] sekmo: Hi everyone! I'm looking for very simple ruby katas in order to get good with object modelling with Ruby. Could you send me some simple examples?
[08:54:50] sekmo: I've found the famous elevator and bowling problems.. but I'm looking for something simpler :- )
[08:57:24] sekmo: actually, something very simple and oop-oriented :-)
[09:04:51] sekmo: Hi everyone! I'm looking for very simple ruby katas in order to get good with object modelling with Ruby. Where can I find some simple examples?
[09:51:13] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-10-20

[07:29:10] sekmo: has joined #RubyOnRails
[07:29:11] sekmo: has joined #ruby
[07:31:37] sekmo: Hi everyone! On my server I'm using two instances of puma for two rails applications, behind nginx. What's the simplest way to demonize the servers? (I plan to use Capistrano)
[07:39:54] sekmo: oh sorry, I mean how to start automatically on boot...
[07:49:20] sekmo: thank you very much :-)
[08:47:44] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[09:03:58] sekmo: has joined #ruby
[09:03:59] sekmo: has joined #RubyOnRails
[09:29:31] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:04:57] sekmo: has joined #RubyOnRails
[10:04:57] sekmo: has joined #ruby
[10:11:58] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-10-12

[16:53:04] sekmo: has joined #RubyOnRails
[16:53:04] sekmo: has joined #ruby
[17:29:09] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:31:40] sekmo: has joined #RubyOnRails
[17:31:40] sekmo: has joined #ruby
[17:35:59] sekmo: Ping timeout: 246 seconds

2017-10-05

[14:34:57] sekmo: has joined #ruby
[14:34:57] sekmo: has joined #RubyOnRails
[15:12:42] sekmo: Hi everyone! Is it ok to use something like `movie = Movie.where(tmdb_code: params[:tmdb_code]).first_or_create!(title: params[:title])`, or it's more idiomatic to use the `create_with` method?
[15:14:53] sekmo: Here it is: https://github.com/sekmo/movienight/blob/master/app/controllers/wishes_controller.rb
[15:19:33] sekmo: why is it an internal method?
[16:14:52] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-09-26

[08:51:27] sekmo: has joined #RubyOnRails
[08:51:27] sekmo: has joined #ruby
[09:53:11] sekmo: Read error: Connection reset by peer

2017-09-15

[05:59:43] sekmo: has joined #RubyOnRails
[05:59:43] sekmo: has joined #ruby
[06:26:53] sekmo: Quit: Textual IRC Client: www.textualapp.com
[08:57:31] sekmo: has joined #RubyOnRails
[08:57:32] sekmo: has joined #ruby
[09:21:05] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-09-14

[11:38:52] sekmo: has joined #ruby
[11:38:52] sekmo: has joined #RubyOnRails
[11:39:08] sekmo: hi folks! Could you help me with a problems that I have with routes?
[11:39:36] sekmo: https://gist.github.com/sekmo/789c8551a549be5c36e3cf1b066301d1
[11:40:47] sekmo: I've created a PagesController to have some static pages on my app, such as "pages/welcome", that just renders a partials from "views/pages"
[11:43:42] sekmo: Even going to http://localhost:3000/pages/welcome it works, I can't test the controller :(
[12:25:18] sekmo: dballenger you're right, but now I get this error: No route matches {:action=>"/pages/welcome", :controller=>"pages"}
[12:26:58] sekmo: I'm not sure about this route: get 'pages/:page', to: 'pages#show', as: 'pages'
[13:36:49] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-09-13

[12:50:12] sekmo: has joined #ruby
[12:50:12] sekmo: has joined #RubyOnRails
[13:08:31] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-09-09

[11:43:19] sekmo: has joined #ruby
[11:43:20] sekmo: has joined #RubyOnRails
[13:01:39] sekmo: Quit: Textual IRC Client: www.textualapp.com
[15:19:54] sekmo: has joined #RubyOnRails
[15:19:54] sekmo: has joined #ruby
[16:01:30] sekmo: Hi! I'm writing an authentication spec. It would be a feature spec or a controller spec? (I just have the "before_action :authenticate_user!" devise helper on application_controller.rb)
[16:48:37] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-09-08

[15:34:47] sekmo: has joined #ruby
[15:34:47] sekmo: has joined #RubyOnRails
[15:38:38] sekmo: Hi folks! Is the behavior of the "merge" method changed by any chance? I'm following the POODR book and I can't figure out why I'm getting different results from the book...
[15:42:42] sekmo: I've made a gist here: https://gist.github.com/sekmo/4c0045adbf3e1d3b98f9d9ea761da791
[15:50:10] sekmo: yep, that's what I thought too..
[15:50:52] sekmo: I even copied the code from the GH repo - the issue is that the book says that it should return the hash with a tire_size: "23"
[15:53:00] sekmo: I'm concerned about the "if style == :road"
[16:02:38] sekmo: exactly.. but I can't find this issue on the errata and I was going crazy :-)
[16:10:28] sekmo: Thanks for your time :-)
[16:47:26] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-09-01

[10:02:43] sekmo: has joined #ruby
[10:02:44] sekmo: has joined #RubyOnRails
[10:55:52] sekmo: hi folks! I have a plain rails app with a StaticPagesController and two views. Why is Rails setting the session even the controller action is emtpy?
[17:07:04] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:19:51] sekmo: has joined #ruby
[17:19:51] sekmo: has joined #RubyOnRails
[17:22:01] sekmo: Read error: Connection reset by peer

2017-08-30

[11:58:36] sekmo: has joined #RubyOnRails
[11:58:36] sekmo: has joined #ruby
[11:58:46] sekmo: Client Quit

2017-08-29

[17:41:12] sekmo: has joined #RubyOnRails
[17:41:12] sekmo: has joined #ruby
[18:03:05] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-08-24

[15:19:46] sekmo: has joined #ruby
[15:19:46] sekmo: has joined #RubyOnRails
[16:42:02] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-08-07

[14:55:30] sekmo: has joined #ruby
[14:55:30] sekmo: has joined #RubyOnRails
[15:23:41] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-08-01

[01:39:57] sekmo: Ping timeout: 240 seconds

2017-07-31

[15:45:06] sekmo: has joined #RubyOnRails
[15:45:06] sekmo: has joined #ruby
[15:49:17] sekmo: Hi all! My controller inherits the "check_logged_in" method and has a "before_action" that triggers it
[15:49:18] sekmo: https://gist.github.com/sekmo/c4bc4331df1fc22c933712fcd43d85e1
[15:49:21] sekmo: https://gist.github.com/sekmo/b15b3269a574ac00003c220ec1f89745
[15:50:38] sekmo: There is a devise built-in helper that does the exact job of "check_logged_in"?
[15:58:24] sekmo: Thank you so much :-)

2017-07-21

[12:59:47] sekmo: has joined #RubyOnRails
[12:59:47] sekmo: has joined #ruby
[13:01:24] sekmo: Client Quit

2017-07-20

[12:16:48] sekmo: has joined #RubyOnRails
[12:16:48] sekmo: has joined #ruby
[12:18:30] sekmo: Hi all! Could I have some suggestions on how to improve this test? https://gist.github.com/sekmo/255497a9bbfeb20451857b943bb8d382
[12:18:33] sekmo: (at the moment rspec whines `sign_in` is not available on an example group (e.g. a `describe` or `context` block)
[12:23:39] sekmo: I used a context since I thought it was the exact place...
[12:30:32] sekmo: so does it make sense to have a context "when user is logged in" at all?
[12:43:25] sekmo: Ping timeout: 255 seconds
[13:07:32] sekmo: has joined #ruby
[13:07:32] sekmo: has joined #RubyOnRails
[13:12:19] sekmo: Client Quit

2017-07-19

[16:38:01] sekmo: has joined #RubyOnRails
[16:38:01] sekmo: has joined #ruby
[16:38:29] sekmo: HI guys! Do I need database_cleaner when working with rspec?
[16:38:47] sekmo: What's your setup? :-)
[16:43:42] sekmo: thanks tbuehlmann_ , will try it! :-)
[17:12:27] sekmo: Ping timeout: 240 seconds

2017-07-14

[13:36:26] sekmo: has joined #ruby
[13:36:26] sekmo: has joined #RubyOnRails
[13:54:03] sekmo: Read error: Connection reset by peer

2017-07-12

[09:37:05] sekmo: has joined #ruby
[09:37:05] sekmo: has joined #RubyOnRails
[09:41:40] sekmo: Hi! I'm struggling with a very simple migration that adds a 'date' column and set the value the timestamp of the row... Could you have a look please? :-)
[09:41:41] sekmo: https://gist.github.com/sekmo/413bbaa2646e47cff57402be44935bef
[09:44:16] sekmo: (At this moment the 'created_at' method gets called on the migration class, there's a way to call it for every row?)
[09:59:05] sekmo: Oh, it worked even I was assigning a timestamp to a date! Postgres magic or what? :-)
[11:20:10] sekmo: Hi again! I'm struggling with webfonts once again.. How can I list all the resources loaded on the assets path?
[12:21:44] sekmo: Ping timeout: 255 seconds

2017-07-11

[17:10:59] sekmo: has joined #RubyOnRails
[17:11:00] sekmo: has joined #ruby
[17:12:52] sekmo: https://gist.github.com/sekmo/0b6086fa80908079ed97fa13ebcf36fc
[17:12:52] sekmo: hi all! Rails newbie here! I got a "undefined method total pages" with kaminari... could you give a look at this gist please?
[17:16:47] sekmo: actually I got a hash with a date on the key and an array as value...
[17:17:25] sekmo: so there's no way to face it? :(
[17:46:47] sekmo: tbuehlmann Now it works, many thanks! :-) I updated the gist, do you think that there's a way to have less repetitions on the index method in notes_controller?
[17:54:43] sekmo: Thanks again :-)
[17:54:48] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:55:56] sekmo: has joined #RubyOnRails
[17:55:56] sekmo: has joined #ruby
[17:58:52] sekmo: Client Quit
[18:40:12] sekmo: has joined #ruby
[18:40:12] sekmo: has joined #RubyOnRails
[19:01:24] sekmo: Read error: Connection reset by peer
[19:04:54] sekmo: has joined #RubyOnRails
[19:04:54] sekmo: has joined #ruby
[19:13:10] sekmo: Ping timeout: 246 seconds
[21:10:32] sekmo: has joined #RubyOnRails
[21:10:32] sekmo: has joined #ruby
[22:10:11] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-07-04

[09:27:00] sekmo: has joined #RubyOnRails
[09:27:00] sekmo: has joined #ruby
[09:51:17] sekmo: Read error: Connection reset by peer

2017-07-03

[10:03:59] sekmo: has joined #ruby
[10:03:59] sekmo: has joined #RubyOnRails
[10:29:38] sekmo: hi all! :- ) Now that ruby-forum.com is no more active, which forum will replace it?
[11:06:54] sekmo: Quit: Textual IRC Client: www.textualapp.com
[15:44:27] sekmo: has joined #RubyOnRails
[15:44:27] sekmo: has joined #ruby
[15:47:10] sekmo: hi all! Could you have a look at this snippet? https://gist.github.com/sekmo/c4bc4331df1fc22c933712fcd43d85e1
[15:49:19] sekmo: I'm not sure about the set_note method... I cannot avoid repeating the call to "redirect_to_root_with_request_error"
[15:50:06] sekmo: ...and about the exception, do I always need begin/rescue or can I use rescue in that way?
[15:52:33] sekmo: thank you very much :-)
[15:53:11] sekmo: since it's a very small application, do you think that pundit is really needed?
[16:06:42] sekmo: @ tbuehlmann have you used find_by because it returns nil instead of throwing an exception, right? (I read some times ago to stay away from find_by to avoid sql injection...)
[16:06:57] sekmo: Quit: Textual IRC Client: www.textualapp.com
[16:07:16] sekmo: has joined #RubyOnRails
[16:07:16] sekmo: has joined #ruby
[16:12:58] sekmo: Thanks a lot for the assistance tbluehlmann!
[16:45:10] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[19:51:40] sekmo: has joined #ruby
[19:51:40] sekmo: has joined #RubyOnRails
[19:57:30] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:49:39] sekmo: has joined #RubyOnRails
[20:49:40] sekmo: has joined #ruby
[20:53:41] sekmo: Read error: Connection reset by peer

2017-06-26

[06:30:21] sekmo: has joined #ruby
[06:30:21] sekmo: has joined #RubyOnRails
[06:57:31] sekmo: I think that it could be improved with some object oriented programming
[06:59:43] sekmo: Quit: Textual IRC Client: www.textualapp.com

2017-06-25

[17:47:33] sekmo: has joined #RubyOnRails
[17:47:34] sekmo: has joined #ruby
[17:51:03] sekmo: Hi all! Which Rails features are essential to know for a Rails apprenticeship/internship in your opinion?
[19:53:14] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:15:18] sekmo: has joined #ruby
[20:15:18] sekmo: has joined #RubyOnRails
[20:30:20] sekmo: @chare are you using nginx?
[20:46:26] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:54:05] sekmo: has joined #ruby
[20:54:05] sekmo: has joined #RubyOnRails
[20:55:44] sekmo: Client Quit

2017-06-23

[07:01:57] sekmo: has joined #RubyOnRails
[07:01:57] sekmo: has joined #ruby
[08:04:37] sekmo: Ping timeout: 260 seconds

2017-06-22

[08:17:44] sekmo: has joined #ruby
[08:17:44] sekmo: has joined #RubyOnRails
[08:53:55] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[10:27:17] sekmo: has joined #ruby
[10:27:17] sekmo: has joined #RubyOnRails
[10:51:20] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[11:12:19] sekmo: has joined #RubyOnRails
[11:12:19] sekmo: has joined #ruby
[11:15:07] sekmo: Client Quit
[12:52:42] sekmo: has joined #RubyOnRails
[12:52:42] sekmo: has joined #ruby
[16:35:54] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-06-21

[17:59:14] sekmo: has joined #ruby
[19:33:51] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[21:36:52] sekmo: has joined #ruby
[21:44:45] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…

2017-06-19

[08:14:46] sekmo: has joined #RubyOnRails
[08:14:46] sekmo: has joined #ruby
[08:27:08] sekmo: Hi all! :-) I'm checking the presence of flash[:notice] in application.js.erb, but I get a "Undefined method `flash`"... Why it isn't available on application.js.erb?
[08:27:17] sekmo: https://gist.github.com/sekmo/e5526be534fd89ded6cc02d2130358be
[08:36:44] sekmo: Oh.. right :-) Thank you!
[08:39:35] sekmo: Which is the best practice when you have to inject a piece of javascript conditionally to the presence of the flash message? I put a simple fade in effect on the gist, but obviously it get executed also when the flash hash is empty...
[08:42:57] sekmo: That's ok.. but the js will get executed anyway... Do you mean to move the js from application.js to elsewhere?
[08:44:12] sekmo: it's just a piece of javascript inside application.js.erb that gets executed whether the flash hash is empty or not
[08:44:31] sekmo: (sorry for my english)
[08:52:14] sekmo: Quit: Textual IRC Client: www.textualapp.com
[09:06:17] sekmo: has joined #RubyOnRails
[09:06:17] sekmo: has joined #ruby
[09:06:52] sekmo: Client Quit
[10:00:47] sekmo: has joined #RubyOnRails
[10:00:47] sekmo: has joined #ruby
[11:11:12] sekmo: Read error: Connection reset by peer

2017-06-16

[09:52:55] sekmo: has joined #ruby
[09:57:48] sekmo: Client Quit
[16:08:58] sekmo: has joined #ruby
[16:13:36] sekmo: Client Quit
[19:20:48] sekmo: has joined #ruby
[19:21:31] sekmo: Client Quit

2017-06-15

[18:11:21] sekmo: has joined #ruby
[18:52:48] sekmo: Quit: My MacBook has gone to sleep. ZZZzzz…
[20:09:31] sekmo: has joined #ruby
[20:52:20] sekmo: Read error: Connection reset by peer