Lewix has quit [Quit: Connection closed for inactivity]
schne1der has quit [Ping timeout: 268 seconds]
conta has quit [Quit: conta]
jenrzzz has joined #ruby
DaRock has joined #ruby
schne1der has joined #ruby
ou-tis is now known as sdu
jenrzzz has quit [Ping timeout: 260 seconds]
ooheitooh has joined #ruby
leitz has joined #ruby
schne1der has quit [Ping timeout: 265 seconds]
greengriminal has joined #ruby
schne1der has joined #ruby
banister has quit [Quit: banister]
banister has joined #ruby
cc_ has joined #ruby
markopasha has quit [Ping timeout: 240 seconds]
_phaul has joined #ruby
banister has quit [Client Quit]
banister has joined #ruby
banister has quit [Remote host closed the connection]
banister has joined #ruby
phaul has quit [Ping timeout: 265 seconds]
banister has quit [Client Quit]
banister has joined #ruby
greypack has quit [Read error: Connection reset by peer]
greypack has joined #ruby
za1b1tsu has joined #ruby
drincruz_ has joined #ruby
banister has quit [Quit: banister]
banisterfiend has joined #ruby
cc__ has joined #ruby
chalkmonster has joined #ruby
cc_ has quit [Ping timeout: 272 seconds]
hsiktas has quit [Ping timeout: 265 seconds]
hahuang65 has quit [Ping timeout: 265 seconds]
leitz has quit [Quit: Leaving]
burningserenity has joined #ruby
d10n-work has quit [Ping timeout: 260 seconds]
integral has quit [Ping timeout: 245 seconds]
BuildTheRobots has quit [Ping timeout: 248 seconds]
n1v has quit [Ping timeout: 245 seconds]
Pillus has quit [Ping timeout: 246 seconds]
alnk has quit [Ping timeout: 260 seconds]
Net has quit [Ping timeout: 245 seconds]
banisterfiend has quit [Quit: banisterfiend]
banisterfiend has joined #ruby
tag has quit [Ping timeout: 260 seconds]
Helenah1 has quit [Read error: Connection reset by peer]
iamdevnul has quit [Ping timeout: 246 seconds]
Helenah1 has joined #ruby
solars has quit [Ping timeout: 260 seconds]
ratah has quit [Ping timeout: 265 seconds]
alexherbo27 has joined #ruby
jojo_ has joined #ruby
alex`` has quit [Ping timeout: 240 seconds]
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo27 is now known as alexherbo2
alex`` has joined #ruby
siasmj has quit [Ping timeout: 260 seconds]
chalkmonster has quit [Quit: WeeChat 2.7]
jojo_ has quit [Remote host closed the connection]
banisterfiend has quit [Changing host]
banisterfiend has joined #ruby
lineus_ has joined #ruby
lineus has quit [Ping timeout: 240 seconds]
drincruz_ has quit [Ping timeout: 272 seconds]
ropeney has joined #ruby
ropeney_ has quit [Ping timeout: 265 seconds]
vondruch has quit [Ping timeout: 268 seconds]
Jonopoly has joined #ruby
ellcs has quit [Remote host closed the connection]
iamdevnul has joined #ruby
siasmj has joined #ruby
schne1der has quit [Ping timeout: 260 seconds]
hsiktas has joined #ruby
n1v has joined #ruby
tag has joined #ruby
ratah has joined #ruby
d10n-work has joined #ruby
solars has joined #ruby
lucasb has joined #ruby
Pillus has joined #ruby
Net has joined #ruby
royal_screwup21 has joined #ruby
banisterfiend has quit [Quit: banisterfiend]
banisterfiend has joined #ruby
hahuang65 has joined #ruby
integral has joined #ruby
banisterfiend has quit [Client Quit]
<lmat>
I have a app/helpers/sessions_helper.rb with def logged_in?; !current_user.nil?; end; in it. I'm trying to call that function from an integration test, but I get undefined method error. Should I be able to call helper function like this from integration tests?
ellcs has joined #ruby
banisterfiend has joined #ruby
alfiemax has quit [Remote host closed the connection]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banisterfiend has joined #ruby
<fercell>
lmat: do you use the helper method in views or controllers?
<lmat>
fercell: I use it in controllers (and maybe views?)
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<fercell>
Please share your helper and test files
banisterfiend has joined #ruby
<lmat>
fercell: okay
<lmat>
Oh, I just needed include SessionsHelper in my integration test \o/
FastJack has quit [Ping timeout: 265 seconds]
SuperLag has quit [Remote host closed the connection]
wallace_mu has joined #ruby
xco has joined #ruby
chalkmonster has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
bvdw has quit [Read error: Connection reset by peer]
PaulePan1er is now known as PaulePanter
bvdw has joined #ruby
FastJack has quit [Ping timeout: 265 seconds]
BuildTheRobots has joined #ruby
fercell has quit [Quit: WeeChat 2.7]
vipaca has joined #ruby
vipaca is now known as Guest41846
FastJack has joined #ruby
drincruz_ has joined #ruby
za1b1tsu has quit [Read error: Connection reset by peer]
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chalkmonster has quit [Quit: WeeChat 2.7]
rippa has joined #ruby
schne1der has joined #ruby
banisterfiend has joined #ruby
FastJack has quit [Ping timeout: 265 seconds]
hutch has joined #ruby
leitz has joined #ruby
chalkmonster has joined #ruby
chalkmonster has quit [Client Quit]
alexherbo2 has quit [Remote host closed the connection]
alex`` has quit [Quit: WeeChat 2.7]
burningserenity has quit [Remote host closed the connection]
SuperLag has joined #ruby
FastJack has joined #ruby
burningserenity has joined #ruby
Helenah1 has quit [Read error: Connection reset by peer]
spacesuitdiver has joined #ruby
<leitz>
Have folks moved from GitHob to some place else? The only option I know of is GitLab. Recently, gist.github.com seems to have quit working with FireFox 60, where I am.
Helenah1 has joined #ruby
<leitz>
Unless it's just my setup.
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<leitz>
havenwood, FF broke the ability to read an XML formatted document as a "regular" web page, sometime post 60. My paying job requires me to study that document, and it changes often.
<leitz>
Being able to read it easily, and also work with the XML programatically, is critical.
Helenah1 has quit [Ping timeout: 272 seconds]
_phaul has quit [Ping timeout: 268 seconds]
x0n has joined #ruby
Helenah has joined #ruby
<adam12>
leitz: Yeah weird. It was broken for me a while back too; the editor looked blank. But either Github or Firefox resolved it.
<leitz>
Hmm..okay, I'll hang out then. I pay a little for GH, but after the acquisition I'm a bit judgemental.
AndroidKitKat has quit [Quit: バイバイ〜!]
Helenah has quit [Ping timeout: 272 seconds]
plutes has quit [Ping timeout: 240 seconds]
plutes has joined #ruby
Helenah has joined #ruby
sergioro has joined #ruby
wallace_mu has quit [Remote host closed the connection]
AndroidKitKat has joined #ruby
DaRock has quit [Ping timeout: 260 seconds]
greengriminal has quit [Quit: Leaving]
impermanence has joined #ruby
impermanence has quit [Remote host closed the connection]
<leitz>
havenwood, I know a lot of my anti-MS mindset is from ages ago, and I try to think before I grump. However, the Chef Sugar thing really angers me. I find the developers behavior reprehensible; both as a citizen and as a programmer.
jenrzzz has joined #ruby
<leitz>
That may seem harsh, but I really feel that way.
ttoocs has quit [Ping timeout: 240 seconds]
ellcs has quit [Ping timeout: 265 seconds]
<havenwood>
leitz: I'm afraid a chef with sugar and ice isn't easy to search for...
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
leitz: I just see an empty readme with someone saying they yanked code because they found it offensive to have it used for oppression. Then all I remember is Chef claimed copyright and restored some repos.
<leitz>
havenwood, my perceptions may be my own, so don't take this as gospel. If I write Open Source code to help make the world a better place, I accept that some nitwit may use that code in a way I disagree with. Yet I hope, in the grander scheme of things, that the code does more good than harm. That is a social contract I sign by releasing open source code. Pulling code that others depend on, just because one entity I disagree with uses it,
<leitz>
violates the social contract I agreed to.
<leitz>
If I, as a citizen, am protected by the government, then whether or not I agree with everything that government does is not a decider if I produce code.
<leitz>
The same with Google's withdrawal of a project (I forget the name), because the developers didn't want to support the Department of Defense. Yet they enjoy one of the planet's highest quality of life because of the very people they won't support. Hypocritical.
wallace_mu has quit [Ping timeout: 260 seconds]
<leitz>
And of course, nothing prevents a hostile state from doing for their own ends what Google engineers didn't want to do to protect others.
<leitz>
Make sense?
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aloy has left #ruby ["WeeChat 2.7"]
davidw has joined #ruby
<havenwood>
leitz: I think I understand your position, but I'm not sure I agree with how it applies to the facts in this case.
<havenwood>
leitz: As far as I can tell, and open source author deleted a repo as a form of protest. I reserve the right to delete whatever I want as an open source maintainer. The open source license keeps the code open source no matter where it's hosted.
<havenwood>
an*
cc__ has quit [Remote host closed the connection]
<havenwood>
leitz: I don't think folk who right code owe us to keep hosting it, and the licence explicitly disclaimed any warranty of any kind, express or implied. If there's a duty, it's not in the law.
<havenwood>
write code*
<havenwood>
jeesh, I need coffee.
<leitz>
havenwood, I'm happy to respect you, and support your choice to disagree. What I understood from the events, as I read them (always factual, of course), is that removing the repo caused issues. Further, if the code was developed on "Chef time", it wasn't the developers to begin with.
<havenwood>
leitz: I am glad we don't have political licenses, but want to let open source authors protest however they'd like within the license.
<havenwood>
In any case, the protest worked in this case.
<havenwood>
leitz: They may be able to sue the author, but that's another question.
sergioro has quit [Quit: leaving]
<leitz>
Understood. If I were asked, by a business, "Should we use Chef?", I would give an emphatic "no". The secondary concern is for all open source software; businesses see a much higher risk now, and will likely move to closed source options.
<leitz>
I think the protest will cause Chef to fail as a company. Sorry for them, but I spend a lot of time with large organizations. They are risk averse.
<havenwood>
leitz: I don't think most folk noticed, but if they should take anything away from this it's don't rely on a single repo as a point of failure. That's brittle.
<leitz>
So, they protest wins the battle but will likely lose the war.
Intelo has joined #ruby
<Intelo>
When `rake aws:restore_db` is run, which file /script is actually run?
<leitz>
they/the
<havenwood>
Intelo: It's unclear from that code. Is there a Rakefile?
<Intelo>
yes havenwood
<havenwood>
Intelo: Is that task defined in the Rakefile?
<havenwood>
Intelo: Ah, Rails. Is there a lib/tasks directory?
gnufr33d0m has joined #ruby
<Intelo>
havenwood, yes; and thers aws file. It seems thats the one but how did you guess and what relation does it makes? Its not mentioned in rakefile
<havenwood>
Intelo: I guessed because of Rails convention, nothing else.
sdu has quit [Remote host closed the connection]
<leitz>
Intelo, if I understand correctly, Rails has a a certain way of doing things. Learning those ways is a part of the process.
<havenwood>
Intelo: Convention over configuration helps keep it "normal."
<Intelo>
hm
<havenwood>
Intelo: If folk follow the convention, you can jump into a project and know just what drawer to check in.
<Intelo>
hm
duderonomy has joined #ruby
null__ has joined #ruby
Fernando-Basso has quit [Quit: Leaving]
chalkmonster has quit [Quit: WeeChat 2.7]
alfiemax has joined #ruby
Jonopoly has quit [Quit: WeeChat 2.5]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti>
more appropriately, there is lot of magic pixie dust which makes it very fast to build things
<ytti>
because things are inferred for you
<ytti>
you need to do quite little as long as you understand how to do it so that inferring works
<ytti>
so rails is not very productive for first project
<ytti>
but for 5th project you can do like twitch copy literally in 5min
<ytti>
it's pretty much a DSL
spacesuitdiver has joined #ruby
clemens3 has quit [Quit: WeeChat 2.1]
cthu| has joined #ruby
tpanarch1st has joined #ruby
Helenah has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
duderonomy has quit [Client Quit]
Inoperable has quit [Quit: All your buffer are belong to us!]
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
howdoi has joined #ruby
suukim has joined #ruby
akemrir has quit [Quit: WeeChat 2.7]
alfiemax has quit [Ping timeout: 260 seconds]
Helenah has joined #ruby
gix has joined #ruby
burningserenity has quit [Quit: Leaving.]
burningserenity has joined #ruby
royal_screwup21 has joined #ruby
duderonomy has joined #ruby
schne1der has quit [Ping timeout: 240 seconds]
Helenah has quit [Ping timeout: 240 seconds]
i9zO5AP has joined #ruby
lineus_ has quit [Remote host closed the connection]
lineus has joined #ruby
Ai9zO5AP has quit [Ping timeout: 260 seconds]
Helenah has joined #ruby
royal_screwup21 has quit [Remote host closed the connection]
bsdbandit-01 has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
spacesuitdiver has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
spacesuitdiver has joined #ruby
ruby[bot] has joined #ruby
alex` has joined #ruby
jenrzzz has joined #ruby
alex` is now known as Guest73131
ratah has quit [Quit: Connection closed for inactivity]
jenrzzz has quit [Ping timeout: 260 seconds]
<lmat>
In rails, how are model attributes specified? For instance, how would I add a new attribute? How would I add a new *transient* attribute?
drincruz has joined #ruby
dStromboli has joined #ruby
drincruz_ has quit [Ping timeout: 265 seconds]
<lmat>
"Active Record maps your tables columns to attributes in your model" so rails starts by getting reflective information from the database? :-?
alfiemax has joined #ruby
dStromboli has quit [Ping timeout: 268 seconds]
Intelo has quit [Ping timeout: 265 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
Helenah has quit [Read error: Connection reset by peer]
<dStromboli>
Hey all, I have a question about link_to. I'm working with a codebase that has many instances of lines in .haml like: "link_to 'link name' some_path", but I can't find where some_path is defined in any file. Any ideas?
<dStromboli>
The repo I'm working with is a rails tutorial here, if it helps: https://github.com/paammar/rottenpotatoes-rails-intro . I know rails has it's own channel but link_to is a ruby function so I thought this would be the approprate place for that.
spiette has joined #ruby
<phaul>
some_path is probably defined dynamically by rails. if you do rails routes in the console you will see a list of routes supported by your app. With the routes you also get the _path methods too
<phaul>
the whole thing is largely controlled by config/routes.rb
<dStromboli>
That's helpful, routes.rb looks mostly desolate but it has "resources :movies" which I think maps functions to routes or something similar
<phaul>
dStromboli: it defines what requests your app responds to and how to map those requests to controller actions. _path method is getting a url for the request endpoints
cliluw has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
jcalla has quit [Quit: Leaving]
suukim has quit [Quit: Konversation terminated!]
yokel has joined #ruby
<dStromboli>
I understand much better now
drincruz has quit [Ping timeout: 265 seconds]
<dStromboli>
What I'm still having difficulty with is where the prefixes come from, I ran "rake routes" to see what all routes existed, and it of course lists what route prefixes exist. Where are those defined, cause they're not controller function names or in routes.rb
impermanence has quit [Remote host closed the connection]
<leitz>
Anyone know the state of business at Travis-CI? I thought they were having issues a year or so ago, have things gotten better?
Azure has joined #ruby
lxsameer has quit [Quit: WeeChat 2.6]
drincruz has joined #ruby
fig-le-deunch has joined #ruby
alexherbo21 has joined #ruby
alex`` has quit [Ping timeout: 260 seconds]
alexherbo2 has quit [Ping timeout: 268 seconds]
alexherbo21 is now known as alexherbo2
alex`` has joined #ruby
Xiti has joined #ruby
spacesuitdiver has quit [Ping timeout: 240 seconds]
drincruz has quit [Read error: Connection reset by peer]
drincruz has joined #ruby
mwlang has joined #ruby
jaequery has joined #ruby
<mwlang>
I know that Rack turns HTTP headers into a hash of key/values where the header key becomes “HTTP_FOO” if the original header was “foo”. Is it also “HTTP_FOO” when the scheme was HTTPS? or does it become “HTTPS_FOO” in such case?
<adam12>
mwlang: Scheme never changes the value.
<adam12>
leitz: Not sure of state of business, but I found CircleCI much easier for my Ruby apps for configuration. Easier to define matrixes, etc. All IMHO of course.
jaequery has quit [Remote host closed the connection]
alfiemax has joined #ruby
davidw has quit [Remote host closed the connection]