infoget

Activity Graph

Page 1 of 1

2016-03-01

[07:37:52] infoget: has joined #ruby
[10:43:01] infoget: Read error: Connection reset by peer

2016-02-29

[10:18:38] infoget: has joined #ruby
[10:19:07] infoget: has left #ruby: ()

2016-02-28

[18:57:00] infoget: has joined #ruby
[19:20:14] infoget: Quit: My Mac has gone to sleep. ZZZzzz…
[23:47:48] infoget: has joined #ruby
[23:47:52] infoget: has left #ruby: ("Textual IRC Client: www.textualapp.com")

2016-02-27

[14:02:50] infoget: has joined #ruby
[15:01:57] infoget: Read error: Connection reset by peer

2015-12-20

[14:02:26] infoget: has joined #ruby
[14:02:46] infoget: Hi guys, is it possible to shuffle hash?
[14:11:48] infoget: but how can I do it, could u give me some hint/
[17:06:27] infoget: Quit: Leaving.
[19:05:25] infoget: has joined #ruby
[20:44:30] infoget: has left #ruby: ()

2015-12-03

[07:27:54] infoget: has left #RubyOnRails: ()

2015-12-02

[07:34:38] infoget: has joined #RubyOnRails
[07:35:05] infoget: Hi guys, I would like to use created_at.lte method for
[07:35:37] infoget: Model, but sometimes created_at param is empty, then it throws error, is it good to put there Date.new object instead?
[07:46:30] infoget: sevenseacat: sometimes created_at.lte or created_at.gte is empty, then it throws error, is this clear solution? http://pastie.org/10597438
[12:08:29] infoget: Quit: Leaving.
[22:11:55] infoget: has joined #RubyOnRails
[22:14:13] infoget: Hi guys, I'm looking for 3rd party services (translators), which can translate my ror application to other languages, I've found localehero, do u know other?
[22:24:05] infoget: yeah second works :)
[22:25:46] infoget: for localeapp I have to manually find translators?
[22:31:28] infoget: Quit: Leaving.
[23:19:33] infoget: has joined #RubyOnRails

2015-10-06

[01:11:44] infoget: has joined #RubyOnRails
[01:12:25] infoget: Hi guys, I have a category which has many a
[01:14:21] infoget: Hi guys, I have a category which has many adverts and advert has many items, how can I get all items which belongs to category?
[02:05:15] infoget: Can I do has_many :through, when it is same model? I mean, it's self-referential association, here is my code http://pastie.org/10462977
[02:59:46] infoget: Quit: Leaving.
[10:00:12] infoget: has joined #RubyOnRails
[13:52:37] infoget: has left #RubyOnRails: ()

2015-09-25

[08:24:36] infoget: has joined #RubyOnRails
[10:37:55] infoget: Quit: Leaving.
[16:55:44] infoget: has joined #RubyOnRails
[17:22:29] infoget: has left #RubyOnRails: ()

2015-09-24

[09:50:06] infoget: has joined #RubyOnRails
[17:18:24] infoget: Hi guys, I have a simple views counter on the topics, but I would like to protect against counting when page is simple refreshed more times. I was trying to use referer, but it isn't possible to use, because it's using same address from the user came (simple, url didn't change when refresh is made). How I should to fix it?
[17:21:25] infoget: Papierkorb: oh I forgot to mention, I don't want to store extra data to the db, only count of views...
[17:28:24] infoget: Papierkorb: thanks! I will use it
[21:26:03] infoget: Ping timeout: 260 seconds

2015-09-16

[07:17:25] infoget: has joined #ruby
[07:19:39] infoget: has left #ruby: ()

2015-09-15

[08:56:33] infoget: has joined #RubyOnRails
[09:09:08] infoget: has left #RubyOnRails: ()
[09:48:24] infoget: has joined #RubyOnRails
[09:51:16] infoget: Hi guys I would like to extend method from model's concerns by self.test, but it doesn't work, because the method seems that is private: "private method `test' called for", how come?
[12:02:00] infoget: has left #RubyOnRails: ()
[12:02:04] infoget: has joined #ruby
[12:03:56] infoget: Quit: Leaving.
[12:04:14] infoget: has joined #ruby
[12:05:16] infoget: Hi folks, (["1"] && ["1","2","3","4"]).count, I would like to get conformity of the arrays (1) insteed of I get count of last array => 4, how can I achieve it short way?
[12:07:34] infoget: oh man, thanks, my inattention...
[14:44:28] infoget: Quit: Leaving.
[16:25:36] infoget: has joined #ruby
[17:02:37] infoget: Read error: Connection reset by peer
[17:03:47] infoget: has joined #ruby
[17:04:14] infoget: Read error: Connection reset by peer
[17:05:14] infoget: has joined #ruby
[17:57:34] infoget: Quit: Leaving.
[19:20:39] infoget: has joined #ruby
[23:39:00] infoget: Quit: Leaving.

2015-09-14

[12:46:05] infoget: has joined #RubyOnRails
[12:51:35] infoget: Hi guys, I need help... I have article, taggin and tag models. Tagging model is connecting article and tag to many-to-many association. I would like to select article with tag_id = 1 and tag_id 2 from taggings model, but when I do : Article.all.joins(:taggings).where(:taggings => { tag_id: 1 }).where(:taggings => { tag_id: 2 })
[12:51:36] infoget: it doesn't work, how can I achieve "anding" correct way?
[12:57:52] infoget: pwnd_nsfw: it's working, but it didn't find any article with both tags (with id 1 and id 2)
[13:00:18] infoget: pwnd_nsfw: I think, it will be same sql query with: WHERE tag_id = 1 AND tag_id = 2
[13:01:05] infoget: SELECT `articles`.* FROM `articles` INNER JOIN `taggings` ON `taggings`.`taggable_id` = `articles`.`id` AND `taggings`.`taggable_type` = 'Article' WHERE `taggings`.`tag_id` = 1 AND `taggings`.`tag_id` = 2
[13:02:55] infoget: pwnd_nsfw: but I would like to find article with those provides tags (both)
[13:04:41] infoget: pwnd_nsfw: its OR logic
[13:06:25] infoget: when I do: tag_id: [1,2]
[13:06:36] infoget: it's generate: WHERE `taggings`.`tag_id` IN (1, 2)
[13:07:23] infoget: and it find articles with tag1 or tag2, but I would like to find only article which has both tags
[13:09:05] infoget: FailBit: MySQL
[13:09:43] infoget: FailBit: really doesn't exist any solution for that? :O
[13:12:35] infoget: FailBit: doesn't work
[13:12:38] infoget: SELECT `articles`.* FROM `articles` INNER JOIN `taggings` ON `taggings`.`taggable_id` = `articles`.`id` AND `taggings`.`taggable_type` = 'Article' WHERE (taggings.tag_id IN (1) AND taggings.tag_id IN (2))
[13:14:21] infoget: but this works: SELECT `articles`.* FROM `articles` INNER JOIN `taggings` ON `taggings`.`taggable_id` = `articles`.`id` AND `taggings`.`taggable_type` = 'Article' WHERE (taggings.tag_id IN (1))
[13:22:12] infoget: pwnd_nsfw, FailBit here is the method which is looking for multiple tags, that's what I want, but I don't understand it well how it works... https://github.com/mbleigh/acts-as-taggable-on/blob/master/lib/acts_as_taggable_on/taggable/core.rb#L87
[13:24:19] infoget: pwnd_nsfw: this gem is too complex for my case
[14:03:27] infoget: pwnd_nsfw: man, thank you very much, it's working :)
[14:07:26] infoget: Read error: Connection reset by peer
[14:07:54] infoget: has joined #RubyOnRails
[17:02:42] infoget: Quit: Leaving.
[17:03:14] infoget: has joined #RubyOnRails
[20:15:27] infoget: Quit: Leaving.
[21:19:07] infoget: has joined #RubyOnRails
[23:50:56] infoget: Quit: Leaving.

2015-09-11

[00:21:38] infoget: has left #RubyOnRails: ()

2015-09-10

[12:43:04] infoget: has joined #RubyOnRails
[12:47:02] infoget: Hi guys, I have 2 locale files en.yml and nl.yml The file for English translation is still updated with new keys. I would like to update nl.yml file with new keys what are missing in dutch translation, is it possible?
[13:02:52] infoget: elaptics: thanks!
[14:42:28] infoget: has left #RubyOnRails: ()
[21:50:09] infoget: has joined #RubyOnRails
[21:51:34] infoget: Hi guys, is it normal behavior of mongoid? User.pluck(:id) has result [BSON::ObjectId('55f1ef3761757258d5000000')], it shouldn't be plain id?
[21:55:23] infoget: centrx: thx
[21:58:40] infoget: FailBit: because I would like to put ids to array by pluck and then compare if some object has id in the array, but didn't work

2015-09-07

[16:27:25] infoget: has joined #RubyOnRails
[16:28:43] infoget: Hi guys, I would like to two merge two activerecords and sort by date, is it possible?
[18:07:53] infoget: has left #RubyOnRails: ()

2015-08-13

[19:31:12] infoget: has joined #RubyOnRails
[19:35:15] infoget: Hi guys, I would like to generate one route from two objects. I have resource magazines with nested resource ads in a book namespace, but this line generate incorrect output: <%= link_to 'Ad details', [@magazine, @ad] %>, insteed of book_magazine_ad_path generates this: book_magazine_book_ad_path, is it possible to resolve this problem?
[21:26:54] infoget: Quit: Leaving.

2015-08-12

[10:03:36] infoget: has joined #RubyOnRails
[10:08:19] infoget: Hi guys I have this association: ("=>" means "has_many") categories => topics => posts. I have a category object and I would like to get number of posts, is it possible?
[10:19:22] infoget: universa1: yeah, I'm working on forum, counting is used quite a lot for each a category
[10:19:29] infoget: universa1: thanks
[10:33:31] infoget: universa1: thanks, I would like to ask you, I have already a blog site with admin namespace and I want to add a forum feature to this site. Drawback of Forem is that admin namespace is already there, but I would to have common admin namespace for both (blog and forem). Is it better to create own forum or rebuid Forem?
[11:27:46] infoget: Quit: Leaving.
[11:46:40] infoget: has joined #RubyOnRails
[13:39:53] infoget: Quit: Leaving.
[13:54:02] infoget: has joined #RubyOnRails
[15:01:18] infoget: has left #RubyOnRails: ()

2015-07-22

[09:38:56] infoget: has joined #RubyOnRails
[10:52:54] infoget: Hi guys, I would like to ask, I'm developing bigger rails app, which includes users,roles,invitations,articles,tags,news and forum. I would like to ask, if it's better do it modular way, split those things to the modules. Second question is about forum engine - Forem, I would like to use it, but disadvantage is, that it is using separated authorization and admin namespace, I would like to integrated (admin namespace, authorization)
[13:15:50] infoget: has left #RubyOnRails: ()

2015-07-19

[00:28:05] infoget: has joined #RubyOnRails
[00:32:07] infoget: Ping timeout: 244 seconds
[00:55:46] infoget: has joined #RubyOnRails
[06:51:21] infoget: Quit: Leaving.
[07:00:48] infoget: has joined #RubyOnRails
[11:10:40] infoget: Quit: Leaving.
[12:56:39] infoget: has joined #RubyOnRails
[17:08:35] infoget: Ping timeout: 246 seconds
[17:16:37] infoget: has joined #RubyOnRails
[21:18:29] infoget: Ping timeout: 256 seconds
[21:19:36] infoget: has joined #RubyOnRails
[21:19:37] infoget: has left #RubyOnRails: ()

2015-07-18

[20:03:28] infoget: has joined #RubyOnRails
[20:29:16] infoget: Hi guys, I'm working on activation of an account after registration, is it secure from security point (sqli) when it's directly looking for a token (not hashed) in user model? uri looks like this: example.com/activation/<token> Or is better first look for a email address and then check if token (hashed) is valid?
[20:46:59] infoget: ok, but when I set time period, let's say 2hrs, then it should to be secure, right?
[20:51:27] infoget: rhizome: I mean, when user's password_reset_token is generated, then the token will be valid only 2hrs, after this time attacker can't change password
[22:33:37] infoget: Quit: Leaving.
[22:35:43] infoget: has joined #RubyOnRails
[23:36:23] infoget: Quit: Leaving.

2015-06-21

[09:02:08] infoget: has joined #RubyOnRails
[09:08:26] infoget: has left #RubyOnRails: ()

2015-06-16

[13:15:18] infoget: has joined #ruby
[13:28:57] infoget: Ping timeout: 252 seconds
[13:33:17] infoget: has joined #ruby
[17:42:39] infoget: Quit: Leaving.
[19:01:41] infoget: has joined #ruby
[19:32:28] infoget: has left #ruby: ()

2015-06-15

[07:10:21] infoget: has joined #RubyOnRails
[10:03:36] infoget: Quit: Leaving.
[11:03:00] infoget: has joined #RubyOnRails
[12:38:23] infoget: has left #RubyOnRails: ()

2015-05-20

[14:16:30] infoget: has joined #RubyOnRails
[14:19:57] infoget: Hi guys, when you are developing new rails app, do you prefer own authentication or Devise?
[14:33:10] infoget: Quit: Leaving.
[15:01:38] infoget: has joined #RubyOnRails
[15:05:14] infoget: Client Quit
[16:39:53] infoget: has joined #RubyOnRails
[16:42:59] infoget: has left #RubyOnRails: ()

2015-03-05

[19:17:45] infoget: Hi guys, I have 3 same forms with same attributes on one page, is it possible distinguish/resolve it?

2015-02-25

[10:52:46] infoget: Hi guys, I am trying to get value via json like ths: format.json { render json: @data }, it's working when @data is array, but when it's string it doesn't work, where is the problem?

2015-02-07

[15:51:57] infoget: I would like to extend Redcarpet class, where is best way save extended file?

2015-02-04

[10:06:33] infoget: Hi guys, I need user_id from created object of mongoid document, but it's BSON::ObjectId, I was running to the problem, when I attempting like this: @gallery.used_id (I get: undefined method `gsub'), I fixed like this: @gallery.used_id.to_s, is it ok?

2015-01-31

[12:35:48] infoget: Hi guys, I'm using dropzone its drag and drop uploader, it's based on js. I have a problem, I would like to processing this request as JS, but this library is using JSON, how can I change it? Is it limitation of the library and it's not possible change it?

2015-01-21

[21:48:49] infoget: Hi guys, I am using my custom rails engine for my app, I have defined gem "mongoid-paperclip", :require => "mongoid_paperclip" inside of my engine, I did bundle, but I get this error: "uninitialized constant Mongoid::Paperclip". When I put gem directly to main app, it's working, how come? I have to require paperclip manually or something?

2015-01-10

[13:11:05] infoget: Hi guys, I want to validate email exclusion, but only first part before '@', such as admin@example.com, I want compare only first part 'admin' with reserved words in the array, how can I do that?
[13:12:38] infoget: alecs: you mean this? http://guides.rubyonrails.org/active_record_validations.html#performing-custom-validations
[13:18:01] infoget: alecs: oh thanks!
[13:20:07] infoget: alecs: Heh, I just wanted to ask if is possible use some lambda before 'exclusion' and I have already full solution :D
[13:27:07] infoget: alecs: right, but in my case I have to use only custom validation, right?
[13:42:07] infoget: alecs: I sent you IM, have you seen?

2014-12-30

[19:28:23] infoget: Hi guys, How can I get float number from string? "09:30" to 9.3, this way? "9:30".tr(':','.').to_f
[19:34:17] infoget: apeiros_: If exists other solution, but thx
[19:35:41] infoget: apeiros_: Bcs I have timezone in this format "+10:00" and I need to convert to float
[19:38:34] infoget: Yeah, I working with DB where is example such as ( 4.3 - Kabul, -10 - Hawaii )
[19:40:13] infoget: Like I wrote, 4.3
[19:40:33] infoget: It's little bit strange, right?
[19:42:27] infoget: apeiros_: How could I do that when should to be like 4.5 insteed of 4.3 ?
[19:46:23] infoget: apeiros_: thanks!

2014-12-28

[13:36:41] infoget: Hi guys, I want print either p.number or p.iban, but this doesn't work -> p.number || p.iban, how can I print p.iban when p.number is false?
[13:43:51] infoget: crome waxjar, sry, it's working, I have p.number and p.iban attributes, but I want print p.iban when p.number is empty

2014-09-29

[16:36:25] infoget: Hi guys, how can I save variable between sessions / after refresh site?

2014-09-16

[15:58:51] infoget: Hi guys, is this correct? XXX::Application.config.secret_key_base = ENV['SECRET_TOKEN'].to_s
[15:59:08] infoget: Bcs without .to_s I had a problem
[15:59:34] infoget: How can I found out, that secret_token is working properly?

2014-09-09

[05:42:34] infoget: Hello, I have deployed my project via Capistrano, but it doesn't show image from wmd-rails gem, it has path to image like this: /assets/wmd/wmd-buttons-3d266c567df065dae8c963e357c6eb4e.png but image doesn't exist on server, where can be problem?
[05:45:34] infoget: rvanlieshout: No, Capistrano do it automatically, isn't? Bcs stylesheets and js from gem working correctly, except image...
[06:02:12] infoget: rvanlieshout: I have precompiled it, but still doesn't work, it didn't create folder wmd in public/assets/ what I need...
[06:37:30] infoget: rvanlieshout: hey, I know where is the problem, rails4 doesn't compile image expect default path to images, so I had to define path to specific img or general like this, config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
[06:39:10] infoget: sevenseacat: I had a problem with wmd-rails gem, it didn't show images from the gem (in production)
[06:40:07] infoget: sevenseacat: in my case, it didn't
[06:40:29] infoget: sevenseacat: look, here is the same prob
[06:40:34] infoget: http://stackoverflow.com/questions/14194752/rails-4-asset-pipeline-vendor-assets-images-are-not-being-precompiled
[06:42:06] infoget: sevenseacat: Hm it's working already, so where can be the prob?

2014-09-08

[20:59:54] infoget: Hi guys, I have a problem with assets pipeline (I guess), bcs I have installed wmd-rails gem on rails4, everything is working great in deployment, but I have problem with production enviroment, It doesn't load images from gem, This is generated in the application file, assets/wmd/wmd-buttons-3d266c567df065dae8c963e357c6eb4e.png, but image doesn't exist...
[21:01:04] infoget: Sry I don't mean deployment, but develpment enviroment

2014-09-03

[20:27:28] infoget: Hi guys, how can I present a status of article in DB when I need 3 different state -> published, deleted, draft? Like a simple string or exists something better?
[20:29:34] infoget: bricker`work: thx!

2014-06-24

[14:28:39] infoget: Hi guys, I'm going to install RVM on my production server, but I don't know which way I can install it, for one user or multi-user? It's my personal (first) server...
[14:28:48] infoget: I'm going to use Nginx

2014-06-22

[19:31:24] infoget: Hi guys, what versions of Nginx are you using? Because I would like to install stable version from repositories, but there is newest verstion 1.2 and I guess it's too old...

2014-06-21

[12:26:33] infoget: Hi Guys, I need help, I'm going to build my own webserver with RoR, up to now I wanted to choose Apache, bcs I have more experiences with Apache, but after googling I saw alot tutorial with Nginx, Is better option choose Nginx instead of Apache? Main reason for me is good documentation and better performance
[12:33:14] infoget: WJW: thx for opinion

2014-06-10

[19:10:43] infoget: Hi guys, How can I get ONLY name of files in folder not all path of files? I get this: Dir.glob("app/assets/images/icons_tag/*") => ["app/assets/images/icons_tag/b.jpg", "app/assets/images/icons_tag/c.jpg"] but I want something like this: ["b.jpg", "c.jpg"]
[19:35:29] infoget: tubbo: thanks!

2014-05-29

[10:08:41] infoget: Hi guys, I have a question about authorization, I'm using rails4 with Devise gem and I don't know what kind of gem can I choose for authorization, I'm developing my first, basic app with users, roles (guests, visitors, admins, superadmins...) and later I would like to use Forem gem for communication platform, what is optimal for me?
[10:19:28] infoget: I don't want create authorization from the scratch, it's kind of risky, so what is better choice, Pundit, Cancancan or something else?
[10:28:10] infoget: workmad3: thanks, for your advice! It is helpful!

2014-05-25

[11:40:17] infoget: Hi guys, exists some helper for showing only defined number of line from article body in index?
[11:42:56] infoget: Okay, truncate can be helpful :)

2014-05-21

[14:49:35] infoget: Hi guys, is it possible refill inputs with data which was filled in other page? What I want to say is that, I created register form on my site and from my site is send POST form with data like nickaname, email to other site where I want to refill inputs with those attributes, is it possible do it without adding additional code on site where I'm sending data?

2014-05-14

[10:51:53] infoget: Hi guys, why is this syntaxerror? Without class argument it works... <%= image_tag("logo.png"), :class => "float-left" %>
[10:52:21] infoget: It should to work, or not?
[11:05:26] infoget: Oh thank you guys, I was mindless... :-/

2014-04-24

[07:30:00] infoget: Hi guys, Im trying to change string in en.yml file, but when I have changed something, so there is no effect, still same old string, how it is possible?

2014-03-08

[00:01:49] infoget: smathy: sry, I don't understand well, can you repeat your answer?
[00:11:18] infoget: smathy: that's pitty, bcs I found RefineryCMS and it's perfect for my project, i would like to have blog, news, forum (based on Forem / Radar), users management, what do you suggest (based on rails4)?
[11:20:50] infoget: Hi guys, I have a question, I gonna build a smaller portal, but I have a problem with admin backend stuff, what is better, build own a admin system or used some framework such as RailsAdmin or ActiveAdmin? I would like to use rials4, but I guessing those systems are based on rails3, right? :/
[11:28:23] infoget: elaptics: Second thing is my a case, later I'd like to have extended system, such as multi-users, authorization, authentication (creating own blogs, news from privilege users/admins) and a forum ...
[11:32:39] infoget: elaptics: thank you very much, last question, what do you suggest for authorization / authentication in my case ?
[11:35:19] infoget: elaptics: thanks!

2014-03-07

[23:46:07] infoget: Hi guys, Im new in rails, I'd like to create bigger site based on CMS, RefineryCMS looks really cool, but it runs on rials3, and I have the question, is not too late implement rails3 on new project? thank you