andromedian

Activity Graph

Page 1 of 1

2016-07-05

[10:11:44] andromedian: has joined #ruby
[10:13:29] andromedian: what is the rails channel?
[10:15:09] andromedian: has joined #RubyOnRails
[10:15:27] andromedian: Thanks I wonder why it isn't in the topic
[10:15:53] andromedian: I have a link inside a view and I want to show this link in specific pages what method shall I use?
[10:18:58] andromedian: jhass, but let's say that this view is rendered in application.html.erb
[10:19:23] andromedian: which is called everywhere and inside that view I want the link to be shown only on 10pages out of 100
[10:19:36] andromedian: is there an easy way to do that or what is the recommended way
[10:21:48] andromedian: Cool thanks again
[12:09:22] andromedian: is there a better way to write this? ads_targeting_what == ['for-sale']
[15:16:57] andromedian: Quit: Leaving

2016-06-23

[09:48:47] andromedian: has joined #ruby
[10:02:54] andromedian: do you know how I can display the value of the additional_sizes? https://gist.github.com/anonymous/8c1cf2dfc9fe72be23cbe03ad9793bc8 I'm getting right now #<Property::AdditionalSize:0x007f88148fc2c8> if I true to use an each loop on object.additional_sizes ?
[10:04:32] andromedian: libraries manual?
[10:05:20] andromedian: those are values that are coming from rails model
[10:05:32] andromedian: has joined #RubyOnRails
[10:05:43] andromedian: Thanks for pointing me in the right direction norc
[10:06:06] andromedian: do you know how I can display the value of the additional_sizes it seems they are coming from a rails model https://gist.github.com/anonymous/8c1cf2dfc9fe72be23cbe03ad9793bc8 I'm getting right now #<Property::AdditionalSize:0x007f88148fc2c8> if I true to use an each loop on object.additional_sizes ?
[10:06:33] andromedian: if i try to use*
[10:09:34] andromedian: thanks again norc I will try to do that.
[10:23:25] andromedian: norc, https://gist.github.com/anonymous/2d68a806a128eaa8d2f7b60f58c2a549 so I'm trying to get @property.additional_sizes and I get in the view #<Property::AdditionalSize:0x007f88148fc2c8>#<Property::AdditionalSize:0x007f88148fc048>
[10:46:30] andromedian: Thanks again norc I will try to figure out.
[12:57:09] andromedian: Quit: This computer has gone to sleep
[13:52:32] andromedian: has joined #ruby
[13:52:32] andromedian: has joined #RubyOnRails

2016-06-13

[15:21:42] andromedian: has joined #ruby
[15:33:45] andromedian: what does the ActiveRecord::Base double :: refers to?
[15:34:41] andromedian: and does the double colon has a special name?
[15:36:31] andromedian: Thanks a lot ghr!
[15:36:48] andromedian: I've seen this operator used in other languages as well does it have the same logic more or less?
[15:37:34] andromedian: anyway that's off topic :) thanks again
[17:24:41] andromedian: Quit: This computer has gone to sleep

2016-05-23

[01:54:52] andromedian: Quit: Leaving

2016-05-22

[22:24:08] andromedian: has joined #ruby
[22:24:51] andromedian: how can I make this format in rails 4 "June 14th, 2010" ?
[22:38:51] andromedian: mytime.published_on.strftime("%B #{mytime.published_on.day.ordinalize}, %Y") => undefined method 'day' for "2016-05-19 22:36:15 UTC":String
[22:42:31] andromedian: Thanks I've fixed it

2016-05-12

[11:23:35] andromedian: has joined #ruby
[11:24:50] andromedian: I have a hash = {foo: '1', bar: '2'} how can I print the key foo: ?
[11:29:14] andromedian: it prints the value =>1 I want => 'foo'
[11:29:23] andromedian: is this possible adaedra?
[11:31:28] andromedian: yes 'foo' from :foo
[11:32:53] andromedian: lets' say that I have image = {medium:'500px' } I want to print medium and 500px without using each
[11:33:10] andromedian: but it seems like this is not the best way to do it.
[11:34:33] andromedian: the second option
[11:36:49] andromedian: thanks apeiros
[13:23:17] andromedian: Quit: This computer has gone to sleep
[13:27:57] andromedian: has joined #ruby

2016-05-04

[20:24:23] andromedian: has joined #ruby
[20:30:15] andromedian: Ping timeout: 250 seconds
[21:19:44] andromedian: has joined #ruby
[21:20:54] andromedian: def set_results_layout(default: :grid) what does exactly (default: grid) does? Where I can read more in order to understand it?
[21:20:54] andromedian: what does def set_results_layout(default: :grid)
[21:35:31] andromedian: thanks adaedra I understand that is a keyword argument but is this consider like one? I guess I don't get the ruby code inside the argument
[21:37:30] andromedian: so default: is a ruby keyword that sets the default value for the argument if it is not passed?
[21:38:40] andromedian: I think I understand what you are saying but thanks for elaborating
[21:43:33] andromedian: and can I do foo(:something) ? or i need to do foo(bar: :something:)?
[21:44:13] andromedian: ok thanks a lot! adaedra
[21:49:46] andromedian: Thanks again adaedra
[22:32:34] andromedian: Quit: thanks adaedra

2016-05-02

[17:47:22] andromedian: has joined #ruby
[20:27:13] andromedian: Quit: This computer has gone to sleep
[20:38:55] andromedian: has joined #ruby

2016-04-28

[08:33:59] andromedian: has joined #ruby
[08:39:19] andromedian: disease.presence && disease.name (I think abusing the && operator here is probably not the right decision, people would generally expect this statement to return true, rather than the value of the second object.) what does this code review wants me to change?
[08:39:23] andromedian: I don't get this
[10:30:02] andromedian: Quit: Leaving

2015-12-08

[01:10:17] andromedian: Ping timeout: 250 seconds

2015-12-07

[23:51:44] andromedian: has joined #ruby
[23:52:46] andromedian: <%= 'results__grid-details-empty' if property.address.blank? %> why this statement works even though the text is on the left of if?
[23:54:41] andromedian: jbrhbr, thanks for answering is there a link to read more on that?
[23:55:26] andromedian: Thanks everyone for answering