szymon_

Activity Graph

Page 1 of 1

2017-07-17

[02:19:09] szymon_: Quit: Leaving

2017-07-16

[19:24:12] szymon_: has joined #RubyOnRails
[19:26:36] szymon_: have someone have idea how to do nested pagination on index page with will_pagination and expose
[19:28:02] szymon_: i hava actors= pagination
[19:28:34] szymon_: and actor.each do |actor| actor.movies pagination
[21:42:27] szymon_: i looking some fast method to find in all my actors who played in most movies using activ record
[22:06:20] szymon_: ok i do it that Actor.all.max_by { |actor| actor.movie.size }
[22:06:41] szymon_: but it is to lazy

2017-07-14

[05:48:14] szymon_: has joined #ruby
[05:48:27] szymon_: Client Quit

2017-07-13

[12:47:18] szymon_: has joined #ruby
[12:55:16] szymon_: omg it was so simply thanks
[12:55:35] szymon_: dminuoso, it`s work thanks
[13:54:19] szymon_: Quit: Leaving

2017-07-12

[14:47:41] szymon_: has joined #ruby
[15:00:11] szymon_: im looking to some help
[15:01:29] szymon_: i have a array [[-1,-1],[-1,1],[1,-1],[1,1]]
[15:01:45] szymon_: a tray to bulid from this array
[15:02:18] szymon_: [[-1,-1],[-1,1],[1,-1],[1,1],[-2,-2],[-2,2],[2,-2],[2,2]]
[15:02:38] szymon_: and i can`t find som claver method for this
[15:03:52] szymon_: my solution was
[15:03:55] szymon_: Array << [Array[index][0] * iterration, Array[index][1] * iterration]
[15:03:55] szymon_: 4.times do |index|
[15:03:55] szymon_: 2.upto 4 do |iterration|
[15:06:13] szymon_: wow simply thanks
[15:24:13] szymon_: ow this is not i want exacliy it is vector Bishops moves on cheese board
[15:25:50] szymon_: ow this is not i want exacliy it is vector Bishops moves on cheese board # havenwood _
[15:28:57] szymon_: havenwood: ow this is not i want exacliy it is vector Bishops moves on cheese board
[15:29:42] szymon_: first time on irc :) thanks
[15:32:21] szymon_: havenwood, that give me for example [-1,2][-2,1] this i don`t want
[15:33:02] szymon_: havenwood, and sorry :)
[15:38:09] szymon_: havenwood, [number,the_same_number] positiv and negaton no mater
[15:41:49] szymon_: havenwood, this i looking fo thanks
[15:45:35] szymon_: havenwood, great i looking this about 4h thanks you so much
[18:28:26] szymon_: Quit: Leaving