moty66

Activity Graph

Page 1 of 1

2016-06-20

[08:18:04] moty66: Remote host closed the connection

2016-06-17

[13:37:07] moty66: Read error: Connection reset by peer
[13:40:45] moty66: has joined #RubyOnRails
[13:40:45] moty66: has joined #ruby

2016-06-16

[15:06:06] moty66: workmad3: does this work also with rake?
[15:07:24] moty66: so if I need to set the secret key for devise, I have to set that on the shell env or I have to create a product.env file, right?

2016-01-12

[11:27:58] moty66: has joined #ruby
[17:39:03] moty66: has joined #RubyOnRails
[18:20:36] moty66: Ping timeout: 264 seconds

2015-12-07

[01:09:06] moty66: has joined #ruby
[01:09:06] moty66: has joined #RubyOnRails
[09:01:57] moty66: Quit: Sto andando via

2015-12-05

[09:44:00] moty66: Ping timeout: 244 seconds

2015-12-02

[15:37:27] moty66: *.net *.split
[15:41:40] moty66: has joined #ruby
[15:41:50] moty66: has joined #RubyOnRails
[15:51:20] moty66: *.net *.split
[16:47:55] moty66: has joined #ruby
[16:48:09] moty66: has joined #RubyOnRails

2015-12-01

[10:04:33] moty66: has joined #RubyOnRails

2015-11-30

[08:50:14] moty66: has joined #ruby

2015-10-28

[14:56:39] moty66: Ping timeout: 265 seconds
[15:25:09] moty66: has joined #RubyOnRails
[15:25:09] moty66: has joined #ruby
[23:08:52] moty66: Ping timeout: 250 seconds

2015-10-26

[16:57:19] moty66: has joined #ruby
[16:59:03] moty66: how can I translate strings inside a model? I want to translate CONDITION_TYPES in this case
[16:59:05] moty66: http://paste.debian.net/318193/
[17:01:59] moty66: i tried to use I18n.t but I don't know how to add these strings in the en.yml file
[17:02:52] moty66: do I have to add them under the model section or I have to create a new section, something like
[17:03:09] moty66: then underthan i add the types
[17:04:42] moty66: jhass: thanks, I'll ask them
[17:04:44] moty66: has joined #RubyOnRails
[17:15:37] moty66: I want to localize an array inside a model, what is the best way to do that? right now I am calling I18n.t for each item, is that correct?
[17:16:43] moty66: http://paste.debian.net/318197/
[17:21:35] moty66: you mean PRODUCT_DESCRIPTIONS = I18n.t('resources.form.description').values
[17:22:29] moty66: you are right :)
[17:22:39] moty66: this can save me lot of time, thanks again
[17:25:22] moty66: oops, I wrote too fast
[17:25:23] moty66: undefined method `values' for "translation missing: it.resources.form.description":String

2015-10-13

[08:27:40] moty66: has joined #ruby
[10:46:43] moty66: Read error: Connection reset by peer
[10:47:10] moty66: has joined #ruby
[11:03:13] moty66: Read error: Connection reset by peer
[11:04:20] moty66: has joined #ruby
[12:30:30] moty66: Read error: Connection reset by peer
[12:33:02] moty66: has joined #ruby
[16:57:06] moty66: Quit: rebooting

2015-10-08

[00:09:00] moty66: Ping timeout: 246 seconds
[13:01:09] moty66: Ping timeout: 250 seconds

2015-10-07

[07:52:09] moty66: has joined #ruby
[07:56:02] moty66: Hello, looking for help to find a way how to filter submethods of a list of objects, please take a look here https://paste.debian.net/314743/
[08:02:24] moty66: [k-: i have to each loops, one for objects and one for mehtods which I want to get the submehtods
[08:02:51] moty66: [k-: but I don't know to to handle the hashes or the array for the results
[08:12:38] moty66: [k-: thanks, I did like this, in the first loop i crate a @out[m] = [] and in the subloop i di @out[m].push(s)
[08:12:50] moty66: [k-: m is the method name and s is the submethod :)
[08:45:25] moty66: shevy: not really, I'll check the docs for the select method, thanks
[14:13:33] moty66: what do you recommend to use Apache2 or nginx to deploy a rails app on a 2 core server and 2GB of ram? my app uses about 100MB of ram for each process and I expect t oget 1K users each day
[14:16:01] moty66: yes, I don't expect to get lot of traffic
[14:16:44] moty66: [k-: 1K is good enough for me :D
[14:19:15] moty66: so apache2 and passenger is a good idea?
[14:26:24] moty66: it also depend on how much each single user pay for your service
[14:26:41] moty66: my customers pay 1024??? each day to use my app
[14:26:45] moty66: ACTION is kidding
[14:46:55] moty66: no, it is a speakers site, it was really kidding