« Back to channel list

#RubyOnRails - 12 September 2015

« Back 1 day Forward 1 day »
[00:01:05] bbqsauce: excellent, thanks - currently a linux sysadmin, and want to get into ruby on rails development. don't really wanna get a 9-5 at an office, would rather develop from a coffee shop.
[00:01:12] bbqsauce: thoughts on a good starting point to learn?
[00:01:19] bbqsauce: i've done a bit of php in the past, and don't mind it.
[00:02:08] sam_weerasinghe_: you can spend a week following this good tutorial https://www.railstutorial.org/book
[00:02:23] greengriminal: has joined #RubyOnRails
[00:02:28] ngscheurich: has joined #RubyOnRails
[00:02:34] bbqsauce: sam_weerasinghe_, is this the book that they're selling, only online for free?
[00:03:00] Jon30: has joined #RubyOnRails
[00:03:19] bbqsauce: awesome, thanks for the resource. i'll definitely check this one out.
[00:03:25] greengriminal: has joined #RubyOnRails
[00:03:27] bbqsauce: i'm more of a visual learner, but i'll give it a shot :)
[00:03:29] FailBit: "si, se??or"
[00:03:36] FailBit: ACTION has an ??
[00:03:45] bbqsauce: yo tengo queso caliente en mis pantalones en fuego
[00:03:53] catcher: has joined #RubyOnRails
[00:03:59] sam_weerasinghe_: i have to ask my wife for the translation of that :)
[00:04:05] bbqsauce: wait... that's not what i meant to say in espa??ol at all
[00:04:13] FailBit: that's hilarious
[00:04:15] bbqsauce: but on the serious, resource is much appreciated
[00:04:33] AlHafoudh: has joined #RubyOnRails
[00:05:55] nahtnam: has joined #RubyOnRails
[00:06:38] Radar: bbqsauce: !r4ia is another book you could read
[00:06:38] helpa: bbqsauce: Rails 4 in Action - http://manning.com/bigg2 - An excellent book combining Rails and TDD/BDD development. Written by Rebecca Skinner, Steve Klabnik, Ryan Bigg, Yehuda Katz
[00:07:00] bbqsauce: Radar, thanks :) i'll add that to my reading list
[00:07:16] FailBit: Rails4InAction.order
[00:07:39] rakm: has joined #RubyOnRails
[00:08:29] bbqsauce: ACTION groans at his local library's lack of selection when it comes to this kind of thing
[00:08:38] bbqsauce: ACTION groans further when seeing the cover photo of one of these: http://bit.ly/1F30tJo
[00:08:45] bbqsauce: code power, a teen programmer's guide!
[00:09:35] FailBit: hey I'm secretly a 5 year old
[00:09:39] FailBit: don't judge me
[00:10:07] bbqsauce: i see a 'to catch a predator' joke here...
[00:12:17] stardiviner: has joined #RubyOnRails
[00:13:43] greengriminal: has joined #RubyOnRails
[00:15:46] haz111: has joined #RubyOnRails
[00:15:58] beauby: has joined #RubyOnRails
[00:16:14] poli: has joined #RubyOnRails
[00:17:51] GarethAdams: has joined #RubyOnRails
[00:22:04] jgpawletko: has joined #RubyOnRails
[00:23:13] greengriminal: has joined #RubyOnRails
[00:23:48] annlewis: has joined #RubyOnRails
[00:27:14] ror15: has joined #RubyOnRails
[00:27:39] michael_mbp: has joined #RubyOnRails
[00:32:14] robbyoconnor: has joined #RubyOnRails
[00:33:43] greengriminal: has joined #RubyOnRails
[00:36:55] iamse7en: i have a team model with a league:string attribute. Right now I can access each team under localhost/teams/:id - I would like to change that to localhost/teams/league/:id - can you easily nest a resource under an attribute which belongs to that resource? thank you!
[00:39:56] rhizome: league doesn't have an id, it's a string
[00:40:26] iamse7en: right. the :id applies to the team
[00:41:29] smathy: iamse7en, and "league" in your URL will be dynamic right?
[00:42:19] greengriminal: has joined #RubyOnRails
[00:42:23] iamse7en: each team either has a league of 'nba' 'nfl' 'mlb' etc
[00:42:24] smathy: iamse7en, http://guides.rubyonrails.org/routing.html#dynamic-segments
[00:42:59] iamse7en: smathy: thank you! i was just looking at that but wasn't sure what I needed to be looking for
[00:43:26] draig: rals g controller isnt creating any views for me, any ideas?
[00:43:30] smathy: iamse7en, yeah, that's how to do it.
[00:44:08] smathy: draig, rails g controller doesn't create views.
[00:44:21] draig: its docs seem to say it does
[00:44:42] draig: ah nvm that was just showing urls
[00:45:02] smathy: draig, well, if you provide actions it does.
[00:45:24] draig: im wanting to generate something for my landing page that doesnt have a model
[00:45:42] draig: though maybe i should setup devise first
[00:49:31] dici: has joined #RubyOnRails
[00:51:24] chaicup: has joined #RubyOnRails
[00:53:16] dopamean_: has joined #RubyOnRails
[00:54:35] roxtrongo: has joined #RubyOnRails
[00:56:49] nya: has joined #RubyOnRails
[00:57:20] baweaver: has joined #RubyOnRails
[00:58:15] FailBit: irb(main):004:0> DateTime.parse
[00:58:17] FailBit: => Mon, 01 Jan -4712 00:00:00 +0000
[00:58:43] mices: a:link color not working
[00:58:50] mices: sorry wrong window
[01:08:25] smathy: has joined #RubyOnRails
[01:08:55] havenwood: has joined #RubyOnRails
[01:09:40] draig: what do you guys think of RubyMine?
[01:12:06] draig: ive been using nano on my linode and its a pita
[01:13:30] chouhoulis: has joined #RubyOnRails
[01:14:31] wethu: has joined #RubyOnRails
[01:14:55] FailBit: ACTION likes vim
[01:16:13] havenwood: draig: [:vim, :emacs].sample
[01:16:35] draig: i hate vim
[01:16:53] havenwood: draig: I think RubyMine is probably a very solid choice on the IDE side of things.
[01:17:16] draig: ahhhhh cut peppers earlier and just rubbed my eye!
[01:17:20] FailBit: "i hate vim" y
[01:17:23] havenwood: draig: You might take a look at Atom.
[01:17:39] draig: i have been using it some
[01:17:50] havenwood: draig: And you're wanting more IDE features?
[01:18:13] draig: FailBit I don't like having to learn a bunch of cryptic commands. I have to keep enough stuff in my had as it is
[01:18:43] FailBit: I barely know any vim commands
[01:19:00] herbst: has joined #RubyOnRails
[01:19:05] FailBit: I know i, :q, :wq, :q!, :setf, and visual mode
[01:19:08] draig: if i need something quick and dirty, i use nano
[01:19:27] FailBit: that's all I care to know
[01:19:41] draig: I dont like the way it edits text
[01:19:49] draig: no modes for me!
[01:19:53] FailBit: okay then.
[01:20:17] draig: havenwood know of any good atom plugins for ruby/rails development?
[01:20:23] havenwood: FailBit: dd and x in command mode
[01:20:28] draig: maybe an scm plugin?
[01:20:37] FailBit: I knew dd and p
[01:20:40] FailBit: didn't know about x
[01:20:43] FailBit: what's command mode
[01:22:19] havenwood: draig: https://atom.io/packages/ruby-block
[01:22:38] charliesome: has joined #RubyOnRails
[01:24:16] draig: interesting
[01:24:32] annlewis: has joined #RubyOnRails
[01:26:25] annlewis_: has joined #RubyOnRails
[01:29:39] seank_: has joined #RubyOnRails
[01:31:37] charliesome: has joined #RubyOnRails
[01:34:37] Jasaka: has joined #RubyOnRails
[01:35:22] maz-dev: has joined #RubyOnRails
[01:35:27] havenwood: FailBit: Oops, I missed your query - it's just the default mode.
[01:35:55] havenwood: FailBit: Just deletes a single char. I guess I need to do that a lot. :O
[01:36:13] FailBit: I just hit Del to delete chars
[01:36:22] FailBit: works regardless of wether in insert or command mode
[01:36:43] havenwood: I don't have a Del.
[01:36:45] pwnd_nsfw: I want to be able to remove insert from my computer heh
[01:36:53] FailBit: fun question time: if I have 'x random production box' where do I find its puppetfile
[01:37:35] pwnd_nsfw: ask... the puppet master !
[01:37:59] havenwood: FailBit: Puts the "m" in vim.
[01:39:00] FailBit: pwnd_nsfw: puppet master is on vacation
[01:39:04] havenwood: At least I'm assuming Del doesn't work in vi, I don't actually know.
[01:39:27] FailBit: and I badly require this puppetfile
[01:39:49] FailBit: (okay, it's not critical, but I would very much like to have it.)
[01:42:41] greengriminal: has joined #RubyOnRails
[01:42:49] FailBit: no, locate
[01:43:03] havenwood: mdfind -name
[01:44:28] Pupeno: has joined #RubyOnRails
[01:44:44] chills42: has joined #RubyOnRails
[01:46:47] Lightsword: has joined #RubyOnRails
[01:47:29] rhizome: does a puppet machine run it itself? does a puppet process always run on the machine?
[01:48:08] bendangelo: has joined #RubyOnRails
[01:49:08] acti0nman: has joined #RubyOnRails
[01:49:54] pwnd_nsfw: oh lawd, testing js with capybara is going to make tests take 9999 long to run
[01:53:52] wethu: has joined #RubyOnRails
[01:54:57] rhizome: i have some that take 8sec, mostly because i need a sleep(5) in them
[01:55:08] FailBit: pwnd_nsfw, omai
[01:55:44] Altonymous: has joined #RubyOnRails
[01:56:47] Altonymous: Could anyone point me to a good article/tutortial on how to most effeciently rewrite a tab delimited file with only a subset of the columns? I have a tab-delimited file with about 33 columns in it.. and we use maybe 10 of them. Would be nice to pair down the file to only those 10 so that processes further along in the chain aren???t having to deal with the large file.
[01:57:35] Altonymous: I don???t want to read the entire file into memory.. would be nice to stream from the source to the new file instead of loading it into memory. Also would be nice to be able to throw out records that don???t parse correctly.
[01:59:09] rhizome: a big ol' CSV#foreach with :col_sep should do you nicely.
[01:59:57] d5sx43: has joined #RubyOnRails
[02:00:12] rhizome: alternatively you can use `cut` on the command line
[02:01:21] rhizome: latter part depends entirely on what you mean by "don't parse correctly"
[02:02:28] Altonymous: rhizome: The person sending the file sometimes doesn???t adhere to their own rules..
[02:02:56] Altonymous: instead of tabs for delimiters we???ll get random characters.. othertime???s we???ll get half a line.. sometimes we???ll get two lines on the same line.. ie no line terminator.
[02:03:11] Altonymous: I???d like to throw those lines out rather than let them screw up the parsing of the rest of the file.
[02:03:53] charliesome: has joined #RubyOnRails
[02:04:22] rhizome: you can test the lines before you write them to the file
[02:04:42] beauby: has joined #RubyOnRails
[02:04:47] rhizome: you could change the way they're generating their data
[02:06:13] hnanon: has joined #RubyOnRails
[02:06:56] Altonymous: Will CSV not blow up though?
[02:07:17] rhizome: define "blow up," but no.
[02:07:18] Altonymous: rhizome: Or will it throw an exception? If it throws an exception will it do it on the line or the whole file?
[02:08:03] mices: does anyone else have the problem css colors don't work for a:link
[02:08:05] rhizome: it'll throw whatever you tell it to throw, or it will write garbage lines to the file. it's up to you.
[02:08:09] broman: has joined #RubyOnRails
[02:08:24] rhizome: what is "a:link"?
[02:09:07] mices: css notation for a link is a:link no?
[02:09:15] hnanon: How can I link to a file on S3?
[02:09:25] rhizome: no, it's a. just use the tag name
[02:09:33] rhizome: don't be fancy
[02:09:45] hnanon: I'm using Paperclip...
[02:09:45] catcher: has joined #RubyOnRails
[02:10:03] FailBit: @user.avatar.url
[02:10:27] rhizome: quantum shit right there
[02:10:53] FailBit: my network is being a shit. grrr
[02:10:58] hnanon: Failbit: I have it on the Essay model.
[02:11:10] hnanon: I have this in my view so far: user.essays.where(number: 0, stage: 0).take
[02:11:21] rhizome: yeah FailBit use the proper unspecified method names
[02:11:29] hnanon: When I try user.essays.where(number: 0, stage: 0).take.document.url I get an error.
[02:11:46] hnanon: undefined method `documents' for #<Essay:0x007f7759a06680>
[02:12:14] rhizome: documents method but you're saying document.url. might want to track that discrepancy down
[02:12:52] hnanon: I'm saying document.url because I think that's the paperclip convention.
[02:13:09] FailBit: if your paperclip accessor is named :document
[02:13:16] hnanon: Yes, it is.
[02:13:19] rhizome: maybe i was too subtle in pointing out the pluralization difference
[02:14:22] hnanon: Nah, I'm just slow.
[02:14:36] hnanon: It's pointing to a dummy url, though: /documents/original/missing.png
[02:14:45] hnanon: Not to the file at S3.
[02:16:30] pontiki: has joined #RubyOnRails
[02:17:19] hnanon: Is there a config setting I'm missing somewhere?
[02:17:55] rhizome: config setting for what?
[02:18:04] nya: has joined #RubyOnRails
[02:18:28] michael_mbp: has joined #RubyOnRails
[02:19:44] Altonymous: rhizome: Does this look right? https://gist.github.com/distil-brewmaster/2ed8b07c9f122d190f2a
[02:21:14] Altonymous: rhizome: Not sure how to handle lines that don???t parse correctly.. I assume I???ll get a count on row_in and start with that. If it???s not the value I expect then deal with it
[02:21:24] rhizome: i think foreach includes open
[02:22:33] smathy: has joined #RubyOnRails
[02:23:54] r0bby_: has joined #RubyOnRails
[02:24:12] Altonymous: I???m opening a second file to write to. Have to give it a new path.
[02:24:27] rhizome: oh, you're right
[02:25:06] Altonymous: wonder if I can use CSV.foreach(???).with_index(1) to track line #s
[02:26:20] rhizome: looks like filhandle.lineno does that
[02:26:23] d5sx43: has joined #RubyOnRails
[02:27:12] annlewis: has joined #RubyOnRails
[02:31:02] Altonymous: rhizome: thanks for that??? okay ran a file through it and as I said.. fun with bad files.. here???s an example
[02:31:06] Altonymous: rhizome: ???ArgumentError: invalid byte sequence in UTF-8???
[02:31:27] xcesariox: has joined #RubyOnRails
[02:31:37] Altonymous: rhizome: didn???t write anything to the new file at all because of that :(
[02:32:03] gambl0re: has joined #RubyOnRails
[02:32:47] rhizome: easy enough to fix a codepage issue
[02:32:54] rhizome: character set really
[02:33:13] Altonymous: I wish I knew an easy way to fix it
[02:33:31] Altonymous: I have no idea how to fix that considering there???s not control on what could be in the file
[02:33:52] Altonymous: sometimes it???s arabic, something mandarin, english, german, russian.. etc..
[02:35:04] dopie: has joined #RubyOnRails
[02:36:51] greengriminal: has joined #RubyOnRails
[02:39:10] Altonymous: rhizome: So if you have any suggestions I???m all ears
[02:39:43] krz: has joined #RubyOnRails
[02:40:28] Altonymous: rhizome: because it causes the whole file to fail to parse
[02:40:29] rhizome: cleaning data is a task decades old. you just have to power through it
[02:40:47] greengriminal: has joined #RubyOnRails
[02:40:51] Altonymous: I can???t get to the data.. because CSV won???t even start the iteration
[02:40:57] pwnd_nsfw: Tests are much slower with database cleaner too
[02:40:57] rhizome: because...
[02:41:24] smathy: has joined #RubyOnRails
[02:41:37] rhizome: pwnd_nsfw: why some people move away from all that and use fixtures
[02:42:04] pwnd_nsfw: I am pretty comfortable using what I am right now though. We'll see how uncomfortable I get when testing takes 5 minutes
[02:42:11] djbkd: has joined #RubyOnRails
[02:42:28] greengriminal: has joined #RubyOnRails
[02:49:46] wldcordeiro: has joined #RubyOnRails
[02:50:23] Hamled: Currently I'm using my_model_instance.touch(:a_timestamp_column) to update a specific column on one of my models, but I also want to update some other information at the same time if it has changed. touch() doesn't seem to do that, so I should use save()... but what is the best way to update the timestamp column to the current time
[02:54:18] wldcordeiro: has joined #RubyOnRails
[02:54:39] Altonymous: rhizome: I got it iterating over the file.. I dropped a begin .. rescue => exc ??? end block around the line that it occurs on.. but it doesn???t seem to catch the error.. :(
[02:55:01] chipotle: has joined #RubyOnRails
[02:55:52] ahmgeek: has joined #RubyOnRails
[02:57:21] ahmgeek: If a submit button has two actions one with ajax and one with it's normal submission to db, how can I make the ajax request submit first ?
[03:00:38] seank_: has joined #RubyOnRails
[03:00:50] banjara: has joined #RubyOnRails
[03:02:14] waseem_: ahmgeek: Why are you doing that?
[03:02:33] waseem_: That sonds like a bad design.
[03:02:52] jenrzzz: has joined #RubyOnRails
[03:04:03] ahmgeek: waseem: I upload video with Ajax, the trigger to upload attached to the submit button of the form, after recording stop I activate the submit button to make sure there's a data recorded. the submit button call the save action before
[03:04:07] ahmgeek: the ajax action.
[03:04:23] ahmgeek: I need to make the ajax action before I submit the data to the postgres
[03:04:44] Altonymous: How do I catch this error so I can handle it? invalid byte sequence in UTF-8 (ArgumentError)
[03:05:03] idd2d: has joined #RubyOnRails
[03:05:06] Altonymous: I tried a generic begin/rescue/end block with just rescue => exception without any luck.
[03:05:42] givanse_: has joined #RubyOnRails
[03:07:25] FailBit: I don't know if you can
[03:08:00] jtthedev`: Anyone want to take a crack at this? I had smathy help me out today, and even though her help was valid and i thought I was in the right direction, im still at square one.... I have a model, which fetches records from a remote api... I want to do a couple of fetches a day, only adding any new data. The problem is, after my second fetch, I get duplicate records on about 10% of what I fetcch... not all records get duped... so lets
[03:08:00] jtthedev`: say on first fetch i get 1000 records.... on 2nd fetch, i will end up with 1100 records, 100 of those records being duplicates...
[03:08:15] jtthedev`: Smathy came to the conclusion that it was a date time issue because of my oracle database
[03:08:26] jtthedev`: but after much testing and even chaning datatypes, it's not a date matter.
[03:08:28] jtthedev`: https://gist.github.com/jterrero/9302394e267d3ea185ad
[03:08:50] jtthedev`: please, i need a new set of eyes, i've been dealing with this issue since yesterday and my brain is saturated from looking at the same code over and over
[03:08:58] ahmgeek: smathy: any ideas ?
[03:09:01] pwnd_nsfw: has joined #RubyOnRails
[03:09:17] tejasmanohar: has joined #RubyOnRails
[03:10:44] nya: has joined #RubyOnRails
[03:13:14] braincrash: has joined #RubyOnRails
[03:13:52] Altonymous: FailBit: I certainly can???t figure out a way.. but rhizome says it???s simple. :(
[03:13:59] Altonymous: then went afk :P
[03:14:27] FailBit: are you sure it's not blowing up from inside your rescue block as well
[03:15:33] paulcsmith: has joined #RubyOnRails
[03:15:58] armyriad: has joined #RubyOnRails
[03:17:18] rhizome: you're either parsing non-UTF8 code as UTF-8, or the other way around.
[03:17:25] rhizome: non-UTF8 text, that is
[03:19:14] michaeldeol: has joined #RubyOnRails
[03:21:46] smathy: has joined #RubyOnRails
[03:22:27] wldcordeiro: has joined #RubyOnRails
[03:26:14] Altonymous: rhizome: yes because the source can be multiple character sets. I don???t know which one it will be.. each line could be different.
[03:26:39] waseem_: ahmgeek: That sounds like you have different states for your button. You'll probably have to write some code that A) changes the state of the button depending upon whic actio was carried our earlier and B) does what it should depending upon current state of the button.
[03:27:23] waseem_: ahmgeek: All of this will be JS though. And if last submission needs to reload the page, you'll have to do it with js as well.
[03:28:12] annlewis: has joined #RubyOnRails
[03:29:12] Altonymous: In the past I???ve used CharlockHolmes to get a best guess of the encoding and convert it.. but that generally screws things up since I don???t do it line-by-line.. I also don???t want to have to iterate the entire file and rewrite each line.. I want to default to utf since that???s the majority of them and fix the ones that throw an exception. I???d even be fine with discarding them and continue processing.. but I can???t even figure that out
[03:29:39] rhizome: Altonymous: alphabet is different than character encoding
[03:29:57] rakm: has joined #RubyOnRails
[03:31:22] rhizome: http://stackoverflow.com/questions/7047944/ruby-read-csv-file-as-utf-8-and-or-convert-ascii-8bit-encoding-to-utf-8
[03:32:30] Altonymous: rhizome: I read that post.. the problem remains the same.. i have to load the entire file to resolve the issue. I don???t want to load the entire file into memory.
[03:32:44] rhizome: something's gotta give
[03:33:17] Altonymous: the issue is that when I iterate over the file it throws an exception at the object level not the line level. So I can???t handle that specific line.
[03:33:23] siemprefresco: has joined #RubyOnRails
[03:33:32] Altonymous: I???m asking .. how do I get it so I can handle it at the line level without importing the entire file?
[03:34:38] Altonymous: Right now my idea is to try and capture the last successful line # processed then do a rescue on the block and pass in the details CSV.foreach do ??? end rescue handle_error(file_path, last_successful_line_number)
[03:35:13] rhizome: well but the encoding doesn't change from line to line
[03:35:16] Altonymous: but there???s no method for seek???ing to a specific line number
[03:35:36] Altonymous: no but running the encoding detection on the whole file is very process intensive
[03:35:42] lwu_: has joined #RubyOnRails
[03:36:01] Altonymous: whereas if I could capture the trouble lines I can handle them separately..
[03:36:10] Altonymous: I could detect encoding and convert the line to UTF
[03:36:53] rhizome: http://stackoverflow.com/questions/12234046/rails-3-check-csv-file-encoding-before-import
[03:37:41] smathy: jtthedev, earlier I asked you to run this query and post the results: HandshakeOrderItem.where( ordernum: 1809722 , itemnumber: 1031, xdate: "2015-09-11" )
[03:38:33] hnanon: For this line:
[03:38:34] hnanon: <td><%= user.essays.where(number: 0, stage: 0).last.document.url? ? user.essays.where(number: 0, stage: 0).last.document.url : "NA" %></td>
[03:38:49] hnanon: I'm getting there error: undefined method `document' for nil:NilClass
[03:38:58] Altonymous: rhizome: yeah as mentioned that???s how I???m doing it already. Requires reading the entire file into memory.
[03:39:06] hnanon: So, some the record does not exist.
[03:39:19] hnanon: But shouldn't it return NA from the ternary?
[03:39:22] Altonymous: 2gb files in memory are not ideal on a 500mb box.
[03:39:46] rhizome: hopefully ram will become cheaper someday
[03:39:57] FailBit: 2gb files in RAM are not ideal in any box really
[03:40:12] FailBit: also sad because it reminds me of how I had new RAM fail the other day
[03:40:18] FailBit: only a month old
[03:40:32] smathy: ahmgeek, my idea is the same as before, are you saying that your session var is still nil in the create?
[03:41:03] nettoweb: has joined #RubyOnRails
[03:41:59] ahmgeek: no it was that ajax call come after the normal create method. I solved it :) I checked the request if it xhr, call the upload method then the create method.
[03:42:36] smathy: hnanon, no, because the boolean check in your ternary is depending on `.document` being non-nil because you're calling `.url?` on it.
[03:42:46] armyriad: has joined #RubyOnRails
[03:43:49] hnanon: smathy: Yes, I want to depend on the boolean being non-nil.
[03:44:20] rhizome: http://stackoverflow.com/questions/24897465/determining-encoding-for-a-file-in-ruby
[03:44:46] smathy: hnanon, I understand, but look at the error.
[03:44:57] smathy: hnanon, undefined method `document' for nil:NilClass
[03:45:25] smathy: ...so the error is that your code is calling the document method on nil.
[03:45:33] smathy: hnanon, so what are you calling the document method on?
[03:45:56] hnanon: Ah, I think I see...1 sec.
[03:46:38] smathy: ahmgeek, ok cool.
[03:46:54] hnanon: So, I want to call it on the essay itself.
[03:47:01] hnanon: Not document.url, right?
[03:48:08] chrishough: has joined #RubyOnRails
[03:48:18] smathy: hnanon, I'm not sure what possibilities there are, I'm just telling you what the error means.
[03:48:46] smathy: hnanon, basically: "undefined method `document' for nil:NilClass" means that whatever is before the `.document` is nil when you didn't expect it to be.
[03:49:01] hnanon: smathy: Very clear now.
[03:49:09] hnanon: This now works: user.essays.where(number: 0, stage: 0).exists?
[03:49:25] smathy: hnanon, cool, well done!
[03:52:20] higuys: has joined #RubyOnRails
[03:52:32] ror15: has joined #RubyOnRails
[03:53:14] The_Phoenix: has joined #RubyOnRails
[03:56:45] ledestin: has joined #RubyOnRails
[03:58:08] mary5030: has joined #RubyOnRails
[04:02:08] seank_: has joined #RubyOnRails
[04:06:25] chipotle_: has joined #RubyOnRails
[04:06:45] moneylotion: has joined #RubyOnRails
[04:07:29] michael_mbp: has joined #RubyOnRails
[04:11:43] roxtrongo: has joined #RubyOnRails
[04:13:42] urkle: has joined #RubyOnRails
[04:16:06] rezzack: has joined #RubyOnRails
[04:18:08] SteenJobs: has joined #RubyOnRails
[04:20:43] mary5030: has joined #RubyOnRails
[04:27:06] ledestin: has joined #RubyOnRails
[04:28:40] annlewis: has joined #RubyOnRails
[04:28:59] baweaver: has joined #RubyOnRails
[04:29:15] wethu: has joined #RubyOnRails
[04:32:00] michael_mbp: has joined #RubyOnRails
[04:32:08] rezzack1: has joined #RubyOnRails
[04:34:04] beauby: has joined #RubyOnRails
[04:43:17] wldcordeiro: has joined #RubyOnRails
[04:44:40] rhizome: danged if i'll ever have good looking test output
[04:52:39] melonstorm: has joined #RubyOnRails
[04:54:03] charliesome: has joined #RubyOnRails
[04:59:12] charliesome: has joined #RubyOnRails
[04:59:50] jgladwill: has joined #RubyOnRails
[05:02:07] wldcordeiro: has joined #RubyOnRails
[05:03:05] seank_: has joined #RubyOnRails
[05:09:17] charliesome: has joined #RubyOnRails
[05:10:12] charliesome: has joined #RubyOnRails
[05:10:17] DmitryBochkarev: has joined #RubyOnRails
[05:10:47] charliesome: has joined #RubyOnRails
[05:11:06] wldcordeiro: has joined #RubyOnRails
[05:13:12] FCser: has joined #RubyOnRails
[05:13:13] charliesome: has joined #RubyOnRails
[05:18:27] quazimodo: has joined #RubyOnRails
[05:20:03] chrishough: has joined #RubyOnRails
[05:20:30] herbst: has joined #RubyOnRails
[05:21:45] Altonymous: has joined #RubyOnRails
[05:22:21] arup_r: has joined #RubyOnRails
[05:23:24] nya: has joined #RubyOnRails
[05:26:07] craysiii: has joined #RubyOnRails
[05:29:29] annlewis: has joined #RubyOnRails
[05:30:13] atmosx: I tried to install boostrap first using twitter-bootstrap-rails then switched to bootstrap-rails. Now css are taking a lifetime to load
[05:30:18] atmosx: is that related or something?
[05:31:18] mary5030: has joined #RubyOnRails
[05:32:46] drale2k: has joined #RubyOnRails
[05:36:57] rhizome: hard to say
[05:41:20] wldcordeiro: has joined #RubyOnRails
[05:48:54] demonlove: has joined #RubyOnRails
[05:49:45] alphaatom: has joined #RubyOnRails
[05:52:59] wldcordeiro: has joined #RubyOnRails
[05:53:37] dionysus69: has joined #RubyOnRails
[05:53:49] mdurbar: has joined #RubyOnRails
[05:54:30] nyaa: has joined #RubyOnRails
[05:55:01] lwu_: has joined #RubyOnRails
[05:58:04] workmad3: has joined #RubyOnRails
[06:00:28] ghostlines: has joined #RubyOnRails
[06:00:53] mission712: has joined #RubyOnRails
[06:03:08] arup_r: struggling with Jquery :/ I became inefficient of due to this CSS and Jquery
[06:03:38] arup_r: s/"of"/""
[06:04:06] atmosx: the css of a bootstrap theme, should go to vendor/ or app/assets ?
[06:04:10] seank_: has joined #RubyOnRails
[06:05:00] arup_r: atmosx: I kept in app/assets
[06:05:13] arup_r: and they are working.
[06:08:24] atmosx: arup_r: in both places shoul dbe working after restging rails s
[06:08:40] atmosx: arup_r: the theme has a less directory too, I hope it's irrelevant because I went with sass
[06:08:55] wldcordeiro: has joined #RubyOnRails
[06:12:37] minotep: has joined #RubyOnRails
[06:13:20] wldcordeiro: has joined #RubyOnRails
[06:17:18] charliesome: has joined #RubyOnRails
[06:17:49] wldcordeiro: has joined #RubyOnRails
[06:20:14] bePolite: has joined #RubyOnRails
[06:21:20] bePolite: has joined #RubyOnRails
[06:21:32] habitullence: has joined #RubyOnRails
[06:22:59] wldcordeiro: has joined #RubyOnRails
[06:25:51] dEPy: has joined #RubyOnRails
[06:27:06] nya: has joined #RubyOnRails
[06:29:17] nickenchuggets: has joined #RubyOnRails
[06:30:16] annlewis: has joined #RubyOnRails
[06:34:47] wldcordeiro: has joined #RubyOnRails
[06:36:29] Mia: has joined #RubyOnRails
[06:36:29] Mia: has joined #RubyOnRails
[06:38:29] maz-dev: has joined #RubyOnRails
[06:40:32] Lightsword: has joined #RubyOnRails
[06:40:41] SteenJobs: has joined #RubyOnRails
[06:47:00] wldcordeiro: has joined #RubyOnRails
[06:47:21] eGGsha: has joined #RubyOnRails
[06:48:50] jenrzzz: has joined #RubyOnRails
[06:51:55] wldcordeiro: has joined #RubyOnRails
[06:54:14] mission712: has joined #RubyOnRails
[06:59:51] alphaatom: has joined #RubyOnRails
[07:01:25] wldcordeiro: has joined #RubyOnRails
[07:01:30] alphaatom: has joined #RubyOnRails
[07:04:20] Cervajz: has joined #RubyOnRails
[07:05:12] seank_: has joined #RubyOnRails
[07:05:57] wldcordeiro: has joined #RubyOnRails
[07:06:06] Cervajz_: has joined #RubyOnRails
[07:06:28] nhhagen: has joined #RubyOnRails
[07:08:33] pontiki: has joined #RubyOnRails
[07:11:03] KnownSyntax: has joined #RubyOnRails
[07:12:47] srinidhi: has joined #RubyOnRails
[07:19:19] nya: has joined #RubyOnRails
[07:22:03] finnnnnnnnnnn: has joined #RubyOnRails
[07:23:55] madebymarkca: has joined #RubyOnRails
[07:28:09] chouhoulis: has joined #RubyOnRails
[07:28:20] jenrzzz: has joined #RubyOnRails
[07:29:07] baweaver: has joined #RubyOnRails
[07:29:17] dideler: has joined #RubyOnRails
[07:30:27] DLSteve: has joined #RubyOnRails
[07:30:59] MartinElvar: has joined #RubyOnRails
[07:31:02] annlewis: has joined #RubyOnRails
[07:35:36] rezzack: has joined #RubyOnRails
[07:38:04] darutoko: has joined #RubyOnRails
[07:38:26] bkxd: has joined #RubyOnRails
[07:39:07] bkxd_: has joined #RubyOnRails
[07:39:53] bkxd_: is it noob to use scaffolding?
[07:43:02] x-light: has joined #RubyOnRails
[07:44:42] corioliss: has joined #RubyOnRails
[07:50:05] darkhex: has joined #RubyOnRails
[07:50:44] nhhagen: has joined #RubyOnRails
[07:52:41] nya: has joined #RubyOnRails
[07:53:35] finnnnnnnnnnn: I???m looping through some urls and doing some scraping, one of them is returning a 403, how can I catch it and continue? https://gist.github.com/2b6675619ca92d33a800
[07:54:09] dici: has joined #RubyOnRails
[07:54:14] finnnnnnnnnnn: that gist doesn???t work, but it illistrates what I want to do
[07:55:46] fxn: has joined #RubyOnRails
[07:58:04] bePolite: has joined #RubyOnRails
[07:58:17] zpe: has joined #RubyOnRails
[07:58:43] tbuehlmann: finnnnnnnnnnn, something around this: https://gist.github.com/tbuehlmann/88a9acfbe27508e21e14
[07:59:22] finnnnnnnnnnn: tbuehlmann: thanks mucho, was just reading this - http://stackoverflow.com/questions/2624835/ruby-continue-a-loop-after-catching-an-exception
[07:59:49] finnnnnnnnnnn: do I need to use `next`
[08:00:25] mikecmpbll: has joined #RubyOnRails
[08:01:14] tbuehlmann: no, next is telling ruby to skip the following code and iterate over the next element
[08:01:25] liquid-silence: has joined #RubyOnRails
[08:01:48] yfeldblum: has joined #RubyOnRails
[08:02:05] sininen: has joined #RubyOnRails
[08:05:14] zpe: has joined #RubyOnRails
[08:06:12] seank_: has joined #RubyOnRails
[08:11:38] Cervajz: has joined #RubyOnRails
[08:11:48] x-light: has joined #RubyOnRails
[08:14:34] djbkd: has joined #RubyOnRails
[08:14:37] bkxd: has joined #RubyOnRails
[08:15:54] Logicgate: has joined #RubyOnRails
[08:15:55] Logicgate: has left #RubyOnRails: ()
[08:16:35] quazimodo: has joined #RubyOnRails
[08:16:35] liquid-silence: has joined #RubyOnRails
[08:19:39] atmosx: arup_r: it's your fault, I still can't load the scss from vendor/assets/stylesheets/
[08:19:46] atmosx: it's like 2 hours I'm going back and forth
[08:20:15] arup_r: atmosx: wut? :P
[08:20:43] arup_r: atmosx: I kept it inside the app/assets/stylesheets and happily coding :)
[08:20:48] atmosx: arup_r: I placed the theme on vendor dir, loads the js files but can't load the scss files
[08:20:54] atmosx: but it's wrong!
[08:21:08] atmosx: it's an anti-pattern (to you a buzzword)
[08:21:08] arup_r: ok.. did you require it in the manifest file ?
[08:21:21] atmosx: manifest file? is that applications.scss ?
[08:21:42] rezzack1: has joined #RubyOnRails
[08:21:59] herbst: has joined #RubyOnRails
[08:22:38] arup_r: it is the manifest file
[08:22:55] Creeves: has joined #RubyOnRails
[08:23:22] liquid-silence: has joined #RubyOnRails
[08:23:33] x-light: has joined #RubyOnRails
[08:24:02] liquid-silence: has joined #RubyOnRails
[08:24:02] liquid-silence: has joined #RubyOnRails
[08:24:03] arup_r: did you include there using @import ?
[08:28:43] sandstrom: has joined #RubyOnRails
[08:28:59] chouhoulis: has joined #RubyOnRails
[08:29:02] x-light: has joined #RubyOnRails
[08:30:21] dionysus69: has joined #RubyOnRails
[08:30:24] roxtrongo: has joined #RubyOnRails
[08:31:46] annlewis: has joined #RubyOnRails
[08:34:05] arup_r: you are using gem to include those ?
[08:34:11] atmosx: weirdly enough Rails.application.config.assets.paths shows the path
[08:34:32] atmosx: nah, I manually placed the css and renamed them to scss in the vendor/assets/stylesthess/ directory
[08:39:56] nhhagen: has joined #RubyOnRails
[08:41:25] sararegan: has joined #RubyOnRails
[08:45:20] DLSteve: has joined #RubyOnRails
[08:50:09] x-light: has joined #RubyOnRails
[08:54:41] charliesome: has joined #RubyOnRails
[09:03:44] atmosx: the problem was a CSS but rails reportd kinda strangely the fact.
[09:03:49] atmosx: CSS issue.
[09:03:59] DmitryBochkarev: has joined #RubyOnRails
[09:06:27] yardenbar: has joined #RubyOnRails
[09:06:28] Cervajz_: has joined #RubyOnRails
[09:07:15] seank_: has joined #RubyOnRails
[09:08:50] pontiki: has joined #RubyOnRails
[09:09:40] romdi: has joined #RubyOnRails
[09:10:08] charliesome: has joined #RubyOnRails
[09:15:52] zpe: has joined #RubyOnRails
[09:21:17] Pupeno: has joined #RubyOnRails
[09:21:17] Pupeno: has joined #RubyOnRails
[09:21:18] wethu: has joined #RubyOnRails
[09:21:38] arup_r: atmosx: I see
[09:22:39] maz-dev: has joined #RubyOnRails
[09:22:41] charliesome: has joined #RubyOnRails
[09:29:36] jgt: has joined #RubyOnRails
[09:30:25] chouhoulis: has joined #RubyOnRails
[09:32:38] marr: has joined #RubyOnRails
[09:32:43] annlewis: has joined #RubyOnRails
[09:34:49] nya: has joined #RubyOnRails
[09:41:00] ledestin: has joined #RubyOnRails
[09:42:52] pegasuspect: has joined #RubyOnRails
[09:47:05] herbst: has joined #RubyOnRails
[09:47:28] wildlander: has joined #RubyOnRails
[09:50:44] Pupeno: has joined #RubyOnRails
[09:50:44] Pupeno: has joined #RubyOnRails
[09:51:40] herbst: has joined #RubyOnRails
[09:54:05] Pazician: has joined #RubyOnRails
[09:54:32] Pazician: has joined #RubyOnRails
[09:56:44] cac: has joined #RubyOnRails
[09:57:55] ghostlines: has joined #RubyOnRails
[10:00:37] demonlove: has joined #RubyOnRails
[10:02:48] wethu: has joined #RubyOnRails
[10:08:15] seank_: has joined #RubyOnRails
[10:08:25] atmosx: where do I put @font-face { ... } ?? they say in CSS but which CSS?
[10:08:33] atmosx: like a dedicated fonts.scss ?
[10:08:53] stamina: has joined #RubyOnRails
[10:13:14] sandstrom: has joined #RubyOnRails
[10:16:15] madebymarkca: has joined #RubyOnRails
[10:18:52] drptbl: has joined #RubyOnRails
[10:20:05] Coldblackice: has joined #RubyOnRails
[10:22:06] bruno-: has joined #RubyOnRails
[10:23:24] srinidhi1: has joined #RubyOnRails
[10:31:10] chouhoulis: has joined #RubyOnRails
[10:32:38] AzaToth: has joined #RubyOnRails
[10:33:39] annlewis: has joined #RubyOnRails
[10:35:02] user1138: has joined #RubyOnRails
[10:36:14] dionysus69: has joined #RubyOnRails
[10:38:54] broman: has joined #RubyOnRails
[10:40:04] gremax: has joined #RubyOnRails
[10:42:33] beast: has joined #RubyOnRails
[10:43:53] northfurr: has joined #RubyOnRails
[10:45:30] michael_mbp: has joined #RubyOnRails
[10:45:50] alex88: has joined #RubyOnRails
[10:49:35] bkxd: has joined #RubyOnRails
[10:52:48] herbst: has joined #RubyOnRails
[10:55:31] rickmasta: has joined #RubyOnRails
[10:55:50] finnnnnnnnnnn: has joined #RubyOnRails
[11:01:47] ruurd: has joined #RubyOnRails
[11:01:59] andywww: has joined #RubyOnRails
[11:02:17] voker57: has joined #RubyOnRails
[11:02:24] wethu: has joined #RubyOnRails
[11:02:30] startupality: has joined #RubyOnRails
[11:02:43] Cervajz_: has joined #RubyOnRails
[11:02:46] andywww: i???ve always used typhoes to deal with all my http requests but recently its been playing up with spring, is there a defacto standard http library nowadays?
[11:03:06] darrencauthon: has joined #RubyOnRails
[11:04:07] darrenca_: has joined #RubyOnRails
[11:04:08] Balzrael: has joined #RubyOnRails
[11:04:56] andywww: has left #RubyOnRails: ()
[11:05:25] mrchris: has joined #RubyOnRails
[11:09:17] seank_: has joined #RubyOnRails
[11:11:15] quazimodo: has joined #RubyOnRails
[11:12:16] jenrzzz: has joined #RubyOnRails
[11:16:16] nya: has joined #RubyOnRails
[11:16:34] nettoweb: has joined #RubyOnRails
[11:21:37] charliesome: has joined #RubyOnRails
[11:27:43] bmalum: has joined #RubyOnRails
[11:29:31] bmalum: Hey - why does response_with session work for Index but not for create? - tells me undefined method `to_model' for #<ActionDispatch::Request::Session:0x007ff55a1e4658>
[11:29:32] bmalum: https://gist.github.com/bmalum/5b5f0ff418fe1378c7a5
[11:31:56] chouhoulis: has joined #RubyOnRails
[11:34:04] annlewis: has joined #RubyOnRails
[11:35:07] bmurt: has joined #RubyOnRails
[11:38:00] liquid-silence: is there a easy way to take an has_many from one object and save it to another object as new rows?
[11:38:01] bmalum: has left #RubyOnRails: ()
[11:38:41] bmalum: has joined #RubyOnRails
[11:38:45] bmalum: Hey - why does response_with session work for Index but not for create? - tells me undefined method `to_model' for #<ActionDispatch::Request::Session:0x007ff55a1e4658> https://gist.github.com/bmalum/5b5f0ff418fe1378c
[11:39:21] liquid-silence: @bMalum the gist is dead
[11:39:38] roxtrongo: has joined #RubyOnRails
[11:39:49] bmalum: Whoops sorry -> https://gist.github.com/bmalum/5b5f0ff418fe1378c7a5
[11:41:09] liquid-silence: I am not even sure what you are trying to do there
[11:41:20] liquid-silence: what line is the error on
[11:42:14] bmalum: 17 or 20 - depends on if the Hash for the Login is correct.
[11:42:39] liquid-silence: does channel exist?
[11:43:21] andywww: has joined #RubyOnRails
[11:44:32] frzn: has joined #RubyOnRails
[11:44:32] frzn: has joined #RubyOnRails
[11:47:04] arup_r: has joined #RubyOnRails
[11:50:08] bruno-: has joined #RubyOnRails
[11:50:19] jsvgoncalves: has joined #RubyOnRails
[11:54:23] jgt: has joined #RubyOnRails
[11:55:51] mrchris: has joined #RubyOnRails
[11:56:36] hightower4: has joined #RubyOnRails
[11:57:07] maz-dev: has joined #RubyOnRails
[11:58:20] chills42: has joined #RubyOnRails
[11:59:42] charliesome: has joined #RubyOnRails
[12:01:44] lucha: has joined #RubyOnRails
[12:05:08] ruurd: has joined #RubyOnRails
[12:10:25] seank_: has joined #RubyOnRails
[12:11:19] DoubleMalt: has joined #RubyOnRails
[12:11:37] bmalum: has joined #RubyOnRails
[12:14:00] chills42: has joined #RubyOnRails
[12:14:36] habitullence: has joined #RubyOnRails
[12:14:38] wethu: has joined #RubyOnRails
[12:17:44] drptbl: has joined #RubyOnRails
[12:19:12] Contigi: has joined #RubyOnRails
[12:21:41] startupality: has joined #RubyOnRails
[12:23:08] ocx: has joined #RubyOnRails
[12:23:13] ocx: hi all,
[12:23:18] ocx: where can i start learning ruby on rails
[12:23:21] ocx: i know ruby
[12:24:28] Aeyrix: The RoR guides?
[12:24:36] pontiki: has joined #RubyOnRails
[12:26:29] ocx: Aeyrix: link?
[12:26:57] Aeyrix: Lad if you can't google "rubyonrails.com guides" and click the first link idk what to tell you
[12:27:29] Aeyrix: http://guides.rubyonrails.org/ i think
[12:29:18] mostlybadfly: has joined #RubyOnRails
[12:29:24] ocx: any summary of the difference between javascript and ruby btw?
[12:30:24] pawnbox: has joined #RubyOnRails
[12:30:59] arup_r: has joined #RubyOnRails
[12:32:00] pwnd_nsfw: ocx, syntax, purpose
[12:32:10] pwnd_nsfw: basically everything
[12:32:31] pwnd_nsfw: Comparing the two doesn't really make any sense
[12:32:41] chouhoulis: has joined #RubyOnRails
[12:33:43] darrencauthon: has joined #RubyOnRails
[12:34:52] annlewis: has joined #RubyOnRails
[12:35:16] maz-dev: has joined #RubyOnRails
[12:38:20] jgt: Ruby and JavaScript are both scripting languages. That's where their similarities lie.
[12:39:09] jgt: I can't imagine why one would want to read such a summary.
[12:39:26] jgt: ocx: Maybe you ough to read Seven Languages in Seven Weeks if you're asking these kinds of questions
[12:43:28] poli: has joined #RubyOnRails
[12:44:40] chills42: has joined #RubyOnRails
[12:45:37] ghostlines: has joined #RubyOnRails
[12:48:53] jgt: ought*, of course
[12:53:06] dopie: has joined #RubyOnRails
[12:57:35] chipotle: has joined #RubyOnRails
[12:59:07] Jon30: has joined #RubyOnRails
[13:02:20] doerteDev: has joined #RubyOnRails
[13:04:40] Denarii: has joined #RubyOnRails
[13:05:00] northfurr: has joined #RubyOnRails
[13:05:55] ruurd: has joined #RubyOnRails
[13:06:59] strcmp1: has joined #RubyOnRails
[13:09:42] doerteDev: has joined #RubyOnRails
[13:09:53] djinni`: has joined #RubyOnRails
[13:11:25] startupality: has joined #RubyOnRails
[13:11:26] seank_: has joined #RubyOnRails
[13:14:12] dustinm`: has joined #RubyOnRails
[13:14:17] andywww: has joined #RubyOnRails
[13:15:47] vasilakisFiL: has joined #RubyOnRails
[13:16:05] chills42: has joined #RubyOnRails
[13:17:44] maz-dev: has joined #RubyOnRails
[13:18:05] sankaber: has joined #RubyOnRails
[13:18:25] vasilakisFiL: hello! How can I check in which version of Rails my gem is included?
[13:18:40] vasilakisFiL: ah founded lol.. Rails.version
[13:21:55] ocx: can ruby on rails integrate well with redis instead of apache?
[13:28:19] kitsuneyo: has joined #RubyOnRails
[13:30:42] kitsuneyo: i have a form that uses javascript to add and edit multiple rows of the same table. i want to use a select2-rails field in each row, which means having multiple select2 fields. anyone know how to do that?
[13:30:54] centrx: has joined #RubyOnRails
[13:31:35] lxsameer: has joined #RubyOnRails
[13:33:12] startupality: has joined #RubyOnRails
[13:33:35] chouhoulis: has joined #RubyOnRails
[13:34:05] atomical: has joined #RubyOnRails
[13:34:29] darrencauthon: has joined #RubyOnRails
[13:34:36] pyemkey: has joined #RubyOnRails
[13:35:37] annlewis: has joined #RubyOnRails
[13:37:19] pyemkey: Hello. I looking for open source project which handle multistep form with realtime saving fields. Form should be editable. Does anyone know?
[13:37:46] seank_: has joined #RubyOnRails
[13:42:16] mrchris: has joined #RubyOnRails
[13:46:10] pwnd_nsfw: has joined #RubyOnRails
[13:50:04] sam_weerasinghe: has joined #RubyOnRails
[13:52:22] victortyau: has joined #RubyOnRails
[13:52:42] givanse_: has joined #RubyOnRails
[13:56:58] DLSteve: has joined #RubyOnRails
[14:01:44] chipotle: has joined #RubyOnRails
[14:03:14] nhhagen: has joined #RubyOnRails
[14:10:11] Choclo: has joined #RubyOnRails
[14:10:12] ahmgeek: has joined #RubyOnRails
[14:10:32] hardtail: has joined #RubyOnRails
[14:11:26] esauOp: has joined #RubyOnRails
[14:13:43] dionysus69: has joined #RubyOnRails
[14:15:06] jeanlinux: has joined #RubyOnRails
[14:15:36] sandstrom: has joined #RubyOnRails
[14:16:09] jeanlinux: i have a rails app that connects to a beanstalkd running on another server using the beaneater gem https://github.com/beanstalkd/beaneater
[14:17:03] jeanlinux: but here is the thing.. i want to keep the connection the the beanstalkd server alive always .. so i can receive new jobs almost instantaneously
[14:17:33] jeanlinux: any suggestion on how to achieve that, cron, rails task, or rails 4 Live streaming? which would be more effective
[14:20:08] davidheward: has joined #RubyOnRails
[14:20:22] umgrosscol: has joined #RubyOnRails
[14:23:11] beauby: has joined #RubyOnRails
[14:23:18] arup_r: vasilakisfil: You could see the same in Gemfile.
[14:25:21] DmitryBochkarev: has joined #RubyOnRails
[14:27:43] iamse7en: has joined #RubyOnRails
[14:28:15] kitsuneyo: has joined #RubyOnRails
[14:30:40] kitsuneyo: has joined #RubyOnRails
[14:31:59] arup_r: pyemkey: multistep form means ?
[14:34:12] chouhoulis: has joined #RubyOnRails
[14:35:08] darrencauthon: has joined #RubyOnRails
[14:36:23] annlewis: has joined #RubyOnRails
[14:38:35] pyemkey: arup_r: By writing multistep form I meant a form which have more than one step. Each step is on separate page. I want to also handle "back" button. This form will hit more than one model.
[14:39:18] FailBit: disregarding the join/quit messages, a lot less happens here than I thought.
[14:39:52] darrenca_: has joined #RubyOnRails
[14:41:32] roxtrongo: has joined #RubyOnRails
[14:41:42] arup_r: pyemkey: So I think I can implement it without a gem .. So are you planning to save the data while you are doing "next page" or final submission will save them ?
[14:42:06] sininen: has joined #RubyOnRails
[14:43:32] arup_r: Basically I did such thing while I onboard users ... but I have 3 forms . and each Next button Save data and Back button let the user edit the already saved data
[14:43:51] arup_r: That is the way I did.
[14:45:36] pyemkey: arup_r: I thought about saving per changend field. I want to let user going back to the form and let him edit. I mean that when user started on the first step and leave the form. Next time he will have 2 choises: start new one or continue.
[14:46:15] arup_r: May be it is possible, but no idea if you have a single form through 3 pages.. I don't know. :/
[14:46:17] pyemkey: I'm not sure my description is understandable
[14:46:52] pyemkey: It can be one form through 3 pages
[14:46:55] huck5: If I have a model A that may create a model B upon creation, would it be better to put a call to model-B's controller to create it, or simply persist it within the first model's controller..>?
[14:47:32] arup_r: pyemkey: I understand your question. But no idea if that is possible.
[14:47:59] arup_r: huck5: do you have assoc between those 2 models ?
[14:49:20] huck5: arup_r, yes. The Strain (model A) has bi-directional HABTM relationship with Effect (model B)
[14:49:26] arup_r: pyemkey: Other way is. to show a single page in a chunk using Jquery/JS ...
[14:49:46] kalzz: has joined #RubyOnRails
[14:49:59] mrchris: has joined #RubyOnRails
[14:50:13] arup_r: say you have single form -- you divided it into 3 sections.. and you will hide one section when move to the next page and show the next section.
[14:50:26] arup_r: Using Jquery you can play with this
[14:51:03] pyemkey: arup_r: Everything is possible :) I have some ideas about creation. I can use state machine to handle partial validation on specific part of form. There is a lot of fields and single page is not acceptable. Form is divided in specific parts. Part 1 is about car. Part 2 is about drivers. Part 2 is more complicated, because I have different type of drivers.
[14:51:04] arup_r: Yes, in the case URL will not be changed .. same URL.. just displaying them in a chunk wise using Jquery.
[14:51:27] Dogstar: has joined #RubyOnRails
[14:51:30] huck5: arup_r, sorry. At a lower-level, my Effect belongs_to a Feeling, and my Feeling has_many Effects.
[14:51:31] pyemkey: This is general overview
[14:52:23] pyemkey: arup_r: I'm thinking about mixing client side validation with partial saving object. Saving per field with validation.
[14:52:30] arup_r: pyemkey: a form can't belongs to 3 pages.. Your URL has to be fixed. changing url means new action.
[14:52:52] pyemkey: arup_r: I can store step in database,
[14:53:07] arup_r: pyemkey: As I said you one idea, using Jquery show them chunk wise...
[14:53:11] pyemkey: and this let me use 3 different pages
[14:53:17] arup_r: That is just a way out of many ways :)
[14:54:12] havenwood: has joined #RubyOnRails
[14:54:20] herbst: has joined #RubyOnRails
[14:54:30] arup_r: huck5: so.. as you have an association .. then in a single controller you can create 2 model records.. Rails has a solution for it
[14:54:36] maz-dev: has joined #RubyOnRails
[14:54:47] huck5: arup_r, ok, thank you!
[14:54:48] arup_r: pyemkey: I am not an architect :p
[14:55:11] pyemkey: arup_r: Programmer is always kind of architect ;)
[14:55:13] Zackio: has joined #RubyOnRails
[14:55:19] arup_r: If I were you I will show them like that :)
[14:55:33] arup_r: humm.. no idea. I am dumb one..
[14:56:14] arup_r: I say them what comes on top of mind.. and then they either select or rejects with reasons
[14:56:22] LiquidInsect: has joined #RubyOnRails
[14:56:23] pyemkey: arup_r: Actually I have working version of the description I give you above. Performance is the most important thing there.
[14:56:39] arup_r: huck5: have a look at accept_nested_attributes method
[14:56:56] arup_r: it is the solution.. if you are creating records using web form
[14:59:21] arup_r: pyemkey: I see..
[14:59:43] arup_r: I would like to know how you implemented ? I will add the technique to my skills ;)
[15:01:53] huck5: I have a partial navbar that is rendered across all pages. I have a link_to where I direct to the home action for a static_pages controller (`= link_to "Name", 'static_pages/home' `). This doesn't work when I am in the Show page of another controller/model. For example if I am showing an Effect, and I follow my link, it leads me to "app/effects/static_pages/home", as opposed to just "app/static_pages/home".
[15:02:50] arup_r: huck5: Is this question connected to the earlier one.. Asking for myself.. Then I will think connected way.. or start thinking from begining..
[15:03:04] arup_r: humm.. I hoped so
[15:03:05] huck5: totally separate, arup_r .
[15:03:12] arup_r: let me read now
[15:03:18] pawnbox: has joined #RubyOnRails
[15:03:24] bePolite: has joined #RubyOnRails
[15:03:27] pwnd_nsfw: use route helpers
[15:03:44] huck5: pwnd_nsfw, could you elaborate on that a little? I'm not too familiar with route helpers..
[15:03:51] pyemkey: arup_r: Step is stored inside db. For partial validation I'm using http://www.devinterface.com/blog/en/2010/06/partial-validation-in-rails/ To handle user have started form I'm using cookies.
[15:04:11] shinnya: has joined #RubyOnRails
[15:04:19] davidheward: has joined #RubyOnRails
[15:04:36] arup_r: huck5: do rake routes
[15:04:42] mary5030: has joined #RubyOnRails
[15:04:42] arup_r: and read in your console..
[15:04:47] arup_r: it is that easy..
[15:04:49] pwnd_nsfw: http://guides.rubyonrails.org/routing.html#generating-paths-and-urls-from-code
[15:04:49] huck5: Ah, good idea. Thanks.
[15:05:05] maz-dev: has joined #RubyOnRails
[15:05:15] arup_r: Rails creates some methods to create abdolute or realative urls for you
[15:05:26] Aeyrix: Does rails have a method to name my startup?
[15:05:34] pwnd_nsfw: rake routes probably won't show much for his purpose. You can't use resources in his example
[15:05:44] pwnd_nsfw: Aeyrix, lol
[15:05:47] arup_r: Aeyrix: sorry ?
[15:05:59] Aeyrix: pwnd_nsfw: It's been a week
[15:06:07] Aeyrix: my whiteboard markers are out of ink
[15:06:14] Aeyrix: my whiteboard itself now has ptsd
[15:06:15] huck5: pwnd_nsfw, yeah, exactly :). I enter the route in rake routes, and it just 404s.
[15:06:15] pwnd_nsfw: See what Faker gives you :P
[15:06:34] krz: has joined #RubyOnRails
[15:06:39] huck5: Aeyrix, it generates sample material. For like, first names, emails, etc.
[15:06:39] pwnd_nsfw: https://github.com/stympy/faker I joke though
[15:06:52] Aeyrix: i can no longer write with my left hand
[15:06:54] pwnd_nsfw: huck5, check out the link I pasted earlier.
[15:06:56] Aeyrix: send help
[15:07:00] habitullence: has joined #RubyOnRails
[15:07:00] huck5: pwnd_nsfw, great thank you!
[15:07:03] pwnd_nsfw: as: keyword is what you're lookin' at
[15:07:44] pwnd_nsfw: Faker::Company.name
[15:07:49] pwnd_nsfw: Aeyrix, that should help you
[15:07:59] arup_r: pwnd_nsfw: I can create helpers without using resources method .. :)
[15:08:10] pwnd_nsfw: That's what I'm explaining, arup_r
[15:08:23] arup_r: ok.. using `:as` option..
[15:08:25] pwnd_nsfw: they're not setup by default though
[15:08:44] arup_r: then cool
[15:09:40] arup_r: pyemkey: wow. cool
[15:09:42] pwnd_nsfw: Wow, I didn't know all of these options were available for faker
[15:09:49] pwnd_nsfw: Never looked
[15:10:26] nhhagen: has joined #RubyOnRails
[15:10:55] Aeyrix: Company.name is the same as Name.last_name with a prefix.
[15:11:11] pwnd_nsfw: There's also App.nam
[15:11:25] deavid: has joined #RubyOnRails
[15:12:02] huck5: Lol, is Faker turning into a viable option then, Aeyrix ?
[15:12:12] Aeyrix: huck5: i'm out of my own ideas
[15:12:21] Aeyrix: it's 1:12am
[15:12:25] huck5: Fair enough. Any inspiration is nice!
[15:12:25] Aeyrix: and i'm sat doing this
[15:12:36] Aeyrix: p much yeah
[15:14:07] jenrzzz: has joined #RubyOnRails
[15:14:20] Aeyrix: I need to get off Mr. Naming's Wild Ride
[15:14:36] quazimodo: has joined #RubyOnRails
[15:14:43] pwnd_nsfw: audible chuckle
[15:14:53] ruurd: has joined #RubyOnRails
[15:15:29] Aeyrix: https://boards.4chan.org/g/thread/50242473 if you're interested in my conversation with /g/ about it.
[15:15:37] Aeyrix: Obviously it's already descended into shitty jokes.
[15:16:35] FailBit: install gentoo!
[15:16:37] futilegames: has joined #RubyOnRails
[15:16:52] pwnd_nsfw: Aeyrix, yeah I see that haha
[15:17:53] Aeyrix: FailBit: http://i.imgur.com/WEj8NsZ.png
[15:18:12] adavia: has joined #RubyOnRails
[15:18:39] FailBit: I should let /g/ slip into reality more
[15:18:46] FailBit: just tell random people to install gentoo at work
[15:18:48] Aeyrix: /g/ is okay
[15:18:52] Aeyrix: lol i do that
[15:19:07] Aeyrix: and spend my spare time circlejerking about javascript
[15:19:29] FailBit: https://www.google.com/?q=install+gentoo
[15:19:34] FailBit: first result is a KYM article
[15:20:01] Aeyrix: The second result is the home base of lord bananafish
[15:20:03] Aeyrix: first of his name
[15:20:09] Aeyrix: saviour of the shrine of gentoo
[15:22:08] minotep: has joined #RubyOnRails
[15:23:14] huck5: My Strain model HABTM Effects, and vise-versa. And Effect belongs_to a Feeling. I am trying to access the Strain's Feeling in a form for my Strain. https://gist.github.com/Huck5/80b5e659641fc0362852#file-_form-html-erb-L38
[15:23:56] huck5: And I'm obviously doing it incorrectly. I've adjusted my schema a few times. With one setup it worked using something like f.collection_select(:feeling_id, ...,..). But with my current setup this no longer works. (Adding schema.rb to gist, one moment)
[15:24:12] DmitryBochkarev: has joined #RubyOnRails
[15:24:52] huck5: I would like to be able to do something f.collection_select(:effect[:feeling], ...). Is this possible?
[15:25:27] huck5: Or is what I'm missing a FK in the Strain table, to the Strain_Effect joining table?
[15:26:12] DLSteve: has joined #RubyOnRails
[15:26:27] n1lo: has joined #RubyOnRails
[15:29:06] darrencauthon: has joined #RubyOnRails
[15:31:17] srinidhi: has joined #RubyOnRails
[15:32:29] chouhoulis: has joined #RubyOnRails
[15:32:57] pwnd_nsfw: https://github.com/ErisBlastar/cplusequality
[15:33:33] FailBit: is that a joke?
[15:33:57] pwnd_nsfw: It seems to be functional
[15:33:59] FailBit: >C+= (pronounced either C-plus-Equality, or See Equality) is a feminist programming language, created to smash the toxic Patriarchy that is inherent in and that permeates all current computer programming languages.
[15:34:13] pwnd_nsfw: instead of main, it's womain
[15:34:39] huck5: Lol, checkout the chatroom and see?
[15:37:09] annlewis: has joined #RubyOnRails
[15:38:08] FailBit: er, wrong channel
[15:38:36] pwnd_nsfw: huck5, http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/collection_select Does that first bit help you?
[15:39:45] pwnd_nsfw: I'm also not a fan of using HABTM. I normally would go for joining tables
[15:40:06] pwnd_nsfw: or, rather, has_many :through
[15:40:18] huck5: has_many :through, and manually create the joining table?
[15:40:44] FailBit: habtm is much much simpler in mongoid
[15:40:46] FailBit: like really
[15:40:53] pwnd_nsfw: I also don't use mongoid
[15:42:12] roxtrongo: has joined #RubyOnRails
[15:42:35] huck5: FailBit, would you recommend using mongoid? I have no issue trying to pick it up, if it is widely used. But if AR is more prominent, I'd just as soon learn how to achieve the results I'm looking for with that.
[15:43:17] FailBit: I can't recommend mongodb at scale
[15:43:26] FailBit: relational databases scale much better, ironically
[15:45:25] huck5: FailBit, ok, thanks!
[15:45:37] astrodog: Fail: Sorta depends on the load, AFAIK. Heh.
[15:45:41] FailBit: if you have a small dataset, it's fine
[15:46:15] huck5: I think I've got it working. Getting somewhere, anyway. Thanks pwnd_nsfw, that link sorted it out. I'm trying `collection_select` instead of `f.collection_select`, and specifying the :effect model that way.
[15:46:54] astrodog: Fail: When we do spatial work on seismic data... it's pretty much all NoSQL-type databases. 40-50TB of stuff in a few tens of billions of records chokes most of the SQL-driven fun. :\
[15:47:21] FailBit: billions is like unimaginable scale for me
[15:47:22] pwnd_nsfw: huck5, well... I suppose f would build the collection off of strain, instead of effect
[15:47:44] FailBit: the way mongoid does HABTM is to create collection_ids[] arrays on either side of the relation
[15:47:55] FailBit: and then use $in to query for them.
[15:48:01] astrodog: Fail: It's actually pretty cool stuff. 1 row per 110', covering hundreds of square miles.
[15:48:05] dionysus69: has joined #RubyOnRails
[15:48:12] huck5: FailBit, that seems like a logical thing to do. Though can see how it would definitely lag on larger datasets
[15:48:40] FailBit: huck5: you can emulate it with AR..
[15:49:01] huck5: FailBit, hum... I think I'll try and find another workaround for now. Thanks though!
[15:49:09] FailBit: t.integer "foo_ids", default: [], null: false, array: true
[15:49:35] alex88: has joined #RubyOnRails
[15:50:43] gurnoorinder: has joined #RubyOnRails
[15:50:50] gurnoorinder: hello everyone
[15:51:06] gurnoorinder: has left #RubyOnRails: ()
[15:51:11] FailBit: okay then.
[15:51:31] gurnoorinder: has joined #RubyOnRails
[15:52:03] huck5: FailBit, I guess that wouldn't be too tough to implement. I'm just not sure it's really necessary for my purpose.
[15:52:30] FailBit: if you use postgres, you'd need GIN indexes on the columns
[15:52:33] doerteDev: has joined #RubyOnRails
[15:52:38] FailBit: don't know if it's even possible with other databases
[15:53:00] huck5: Hm.. Sounds like it will over complicate things for me at this time. I'm struggling with this as it is :P.
[15:53:20] huck5: ACTION facepalm
[15:53:31] Pazician: has joined #RubyOnRails
[15:53:42] huck5: This whole time I've been trying to use my Strain.effect to see the associated effects. Obviously this needs to be pluralized. -.-'
[15:54:43] jgladwill: has joined #RubyOnRails
[15:54:43] jgladwill: has joined #RubyOnRails
[15:58:47] strcmp1: i think you are smoking too much of your database if you are still doing this
[16:01:38] darrencauthon: has joined #RubyOnRails
[16:01:56] Jon30: has joined #RubyOnRails
[16:02:22] djbkd: has joined #RubyOnRails
[16:02:57] mhib: has joined #RubyOnRails
[16:03:13] pwnd_nsfw: huck5, has_one = effect, has_many = effects
[16:03:19] pwnd_nsfw: dat readability dough
[16:03:45] huck5: strcmp1, I stopped working on it for about a week. I'm just creating the application for a friend, mainly as an exercise to refresh my memory on all this stuff. As you can probably tell, I have forgotten pretty much everything.
[16:04:19] pwnd_nsfw: Not as simple as riding a bike
[16:04:32] strcmp1: it becomes muscle memory after a while
[16:04:32] huck5: I mean, I could create the application in .NET much quicker. But the point (for me, anyway) is to learn more about Rails
[16:04:56] strcmp1: yeah rails is easy enough
[16:05:32] huck5: Yeah! I like it a lot so far. Just run into a lot of problems, so I'm sorry if I keep asking easy/stupid questions.
[16:05:37] haltEnigma: has joined #RubyOnRails
[16:05:58] strcmp1: no its not that at all, my comment was meant more of a joke
[16:06:25] pwnd_nsfw: "FUCK IT, WRITING IT IN PHP"
[16:06:28] huck5: strcmp1, I've had it coming for a while now... That's why I tried to use "sample models".
[16:06:42] huck5: but that just lead to confusion.
[16:06:50] strcmp1: do you have data for your DB yet?
[16:07:16] huck5: I've got a few rows of sample data. I haven't added it yet though, as I'm just working on being able to create the models etc correctly.
[16:07:28] FailBit: pwnd_nsfw: what a joke
[16:07:37] strcmp1: when you do, create /api/strains.json plz
[16:07:49] huck5: strcmp1, I can look into that!
[16:08:30] deface: has joined #RubyOnRails
[16:10:06] huck5: So in my HABTM relationship, theres that effects_strains table that joins the two. If in my `form_for @strain`, I have a `f.collection_select :effects, Feeling.all, :id, :value`. The page loads fine! But upon form submission there is no data populated into the effects_strains table. I'm just wondering if Rails should be taking care of populating that table, and I'm writing my form wrong? Or if I need to manually handle adding the id's t
[16:10:06] huck5: o the joining-table.
[16:10:07] FailBit: our app RPM just blew up to 5.5k RPM
[16:11:27] strcmp1: huck5, need to use fields_for?
[16:11:51] maz-dev: has joined #RubyOnRails
[16:12:07] strcmp1: huck5, if is just a bunch of IDs, sending param key as 'the_ids[]=1,2,3,4] will make params[:the_ids] = [1,2,3,4]
[16:12:11] strcmp1: or something like that
[16:12:28] strcmp1: no ] after 4
[16:12:39] huck5: right. So basically manually take care of it? (With which I have no problem. Just want to ensure I'm not doing something that could be taken care of for me)
[16:13:00] bePolite: has joined #RubyOnRails
[16:13:03] profdoidao: has joined #RubyOnRails
[16:13:20] strcmp1: oh im sure that suggestion is not standard at all, there is def a way for rails to handle all this for you
[16:13:56] DLSteve: has joined #RubyOnRails
[16:14:10] huck5: Think my issue has to do with lack of certain logic being in-place. I need to look in the Effects table for an Effect with matching Feeling & Adjustment; link it if it exists, or create a new Effect if it doesn't. Anyways, I'll leave you all alone for a bit and figure some of that out. Thanks for all the help everyone!
[16:14:35] strcmp1: when you create a strain, you want to create multiple Effects also?
[16:14:41] craysiii: has joined #RubyOnRails
[16:14:44] strcmp1: look into accept_nested_attributes_for, in that case
[16:15:05] strcmp1: then use fields_for() when building the associations
[16:15:10] strcmp1: btw Feeling != Effect.
[16:15:26] ruurd: has joined #RubyOnRails
[16:15:29] huck5: Feeling != Effect. Effect = { Feeling, Adjustment }
[16:15:40] jenrzzz: has joined #RubyOnRails
[16:15:53] huck5: E.g. an Effect = { Feeling: "Anxiety", Adjustment: "Greatly Increases" }
[16:16:14] huck5: There's only, like, 4 or 5 adjustments (which will be seeded). But Feelings should be able to be added by the User.
[16:16:36] huck5: Then User needs to be able to look up all Strains based on a certain Effect. E.g. "All Strains that Decrease Anxiety"
[16:16:59] huck5: Anyways, it's break time for me! :)
[16:17:10] strcmp1: so Effect has many Feeling
[16:17:18] strcmp1: sounds like u wanna do that accept_nested thing
[16:17:20] huck5: Wait, no...
[16:17:27] huck5: Effect has_one feeling (belongs_to in this case).
[16:17:53] strcmp1: still sounds like accept_nested_attributes_for is needed then.
[16:18:00] profdoidao: I have a question
[16:18:03] huck5: Thanks! I'll look into that in a bit here
[16:18:09] profdoidao: Rails Vs Node
[16:18:10] huck5: profdoidao: Ask. Don't ask to ask.
[16:18:12] waheedi: has joined #RubyOnRails
[16:18:21] netzfisch: has joined #RubyOnRails
[16:18:48] strcmp1: profdoidao, what about it?
[16:18:48] profdoidao: why haltEnigma ?
[16:18:54] strcmp1: many troll questions start this way
[16:18:59] waheedi: in a default rails app why I get Cache-Control: max-age=0, private, must-revalidate ?
[16:19:09] strcmp1: waheedi, cuz of rack-cache middleware
[16:19:21] waheedi: And how can I set it to Cache-Control: no-cache;?
[16:19:33] strcmp1: donno if u can
[16:19:45] waheedi: thanks for the first answer strcmp1 :)
[16:19:55] profdoidao: I have learn other language, and I thinking in ruby
[16:20:13] waheedi: So I cant ovverrise that header strcmp1 ?
[16:20:16] Cervajz: has joined #RubyOnRails
[16:20:20] waheedi: override *
[16:20:36] strcmp1: you should be able to because the app happens AFTER the middleware
[16:20:48] jgt: has joined #RubyOnRails
[16:20:52] strcmp1: so any edits or changes to the headers should be canonical on ur side
[16:21:01] strcmp1: unless rack-cache does something dumb, which wouldnt surprise me
[16:21:54] mices: go with the latest apache version or is there a preffered earlier version?
[16:26:11] nya: has joined #RubyOnRails
[16:27:21] nerium: has joined #RubyOnRails
[16:27:29] jsvgoncalves: has joined #RubyOnRails
[16:27:50] nerium: How do I use a custom SQL on a has_many relation? The finder_sql seams to be removed
[16:29:12] sam_weerasinghe: curious what the customization s
[16:30:24] mary5030: has joined #RubyOnRails
[16:34:23] roxtrongo: has joined #RubyOnRails
[16:37:03] RandyT: has joined #RubyOnRails
[16:37:12] nerium: <sam_weerasinghe>: A some joins and where's
[16:37:19] bePolite: has joined #RubyOnRails
[16:37:55] annlewis: has joined #RubyOnRails
[16:38:38] Denarii: nerium: You can pass custom SQL as a string to both joins and where.
[16:39:46] mices: am i gonna be needing ipv6 support in apache anytime soon
[16:40:09] mices: when installing apache should i include ipv6 support
[16:40:27] jgt: has joined #RubyOnRails
[16:41:33] mices: im concerned it's presence could contribute to misconfigured software installations
[16:42:03] nerium: Denarii: Maybe I should pass a lambda with the custom where and join?
[16:42:24] FailBit: and down to 4.3k RPM
[16:44:39] mloy: has joined #RubyOnRails
[16:46:12] futilegames: has joined #RubyOnRails
[16:46:55] krz: looking into implementing a forgot password feature. looking at some examples online. the funny thing is https://disqus.com/forgot allows you to send yourself a ???forgot password email??? as many times as you want. a few other big services do this too. is that a bit irresponsible?
[16:47:01] queequeg1: has joined #RubyOnRails
[16:47:03] krz: i can end up spamming someones email this way
[16:47:20] krz: or have they accepted this not to be a real issue?
[16:47:57] mices: the issue may be the way they break your balls when you have to reset your password
[16:48:24] stamina: has joined #RubyOnRails
[16:48:44] mices: for example tencent qq and wechat
[16:49:21] mices: and paypal and ebay
[16:51:25] ghostlines: has joined #RubyOnRails
[16:51:38] saip0902: has joined #RubyOnRails
[16:52:59] mrchris: has joined #RubyOnRails
[16:54:27] DmitryBochkarev: has joined #RubyOnRails
[16:55:41] herbst: has joined #RubyOnRails
[16:57:38] startupality: has joined #RubyOnRails
[16:57:44] esauOp: has joined #RubyOnRails
[16:59:06] maz-dev: has joined #RubyOnRails
[16:59:49] pyemkey: I have a design question. Options for select should be stored as different table or array in model? Let's imagine that I have 8 select for one model. What do you think is best option?
[17:02:34] minotep: has joined #RubyOnRails
[17:04:19] Lightsword: has joined #RubyOnRails
[17:09:45] lipoqil: has joined #RubyOnRails
[17:09:57] roxtrongo: has joined #RubyOnRails
[17:11:47] DEA7TH_: has joined #RubyOnRails
[17:12:29] pwnd_nsfw: pyemkey, do you intent on changing this at any time?
[17:12:39] pwnd_nsfw: If so, I'd give it its own table
[17:12:47] darrencauthon: has joined #RubyOnRails
[17:14:22] pyemkey: pwnd_nsfw: At now is difficult to say.
[17:14:47] rhizome: what does "8 select for one model" mean?
[17:16:37] Pathfinder: has joined #RubyOnRails
[17:17:05] pyemkey: rhizome: Sorry I wasn't clear enough. I meant that one model have X select fields. At now each of them are stored in array constant. My question was "Is better store them inside array or separate table"
[17:17:39] pyemkey: I have a form which have 8 select fields
[17:18:07] pyemkey: These 8 select fields are related to one model.
[17:18:25] waheedi: has left #RubyOnRails: ()
[17:18:26] pyemkey: 8 is just example number.
[17:19:02] Cervajz_: has joined #RubyOnRails
[17:19:41] sankaber: has joined #RubyOnRails
[17:21:50] cornerma1: has joined #RubyOnRails
[17:21:52] pwnd_nsfw: Well, you could always change it later.
[17:22:07] pwnd_nsfw: No reason to hit up the database if you're not going to change the data pyemkey
[17:22:37] chipotle: has joined #RubyOnRails
[17:26:57] pontiki: has joined #RubyOnRails
[17:27:30] habitullence: has joined #RubyOnRails
[17:28:41] chipotle_: has joined #RubyOnRails
[17:29:58] tejasmanohar: has joined #RubyOnRails
[17:30:00] jessemc: has joined #RubyOnRails
[17:30:55] arup_r: has joined #RubyOnRails
[17:35:57] jyunderwood: has joined #RubyOnRails
[17:36:01] jyunderwood: has left #RubyOnRails: ()
[17:36:35] baweaver: has joined #RubyOnRails
[17:36:41] moeabdol: has joined #RubyOnRails
[17:38:35] dionysus69: has joined #RubyOnRails
[17:38:41] annlewis: has joined #RubyOnRails
[17:40:07] asdffff: has joined #RubyOnRails
[17:40:19] northfurr: has joined #RubyOnRails
[17:42:15] uxp: has joined #RubyOnRails
[17:42:28] shkipper: has joined #RubyOnRails
[17:42:56] shkipper: is ruby on rails better then django?
[17:43:21] shkipper: seriously, I am choosing
[17:43:35] ChanServ: +o baweaver
[17:43:44] rhizome: how do you think people in #rubyonrails are going to answer?
[17:43:46] pontiki: flip a coin
[17:43:55] baweaver: One should do due diligence and research
[17:44:03] pontiki: and *then* flip a coin
[17:44:11] baweaver: and then flip a coin, yes
[17:44:13] craysiii: ive used both. #RoR is simpler and easier to use, IMO
[17:44:34] craysiii: i dont know why i put an octothorpe there.
[17:45:03] shkipper: what about orm or database support?
[17:45:12] blonp: has joined #RubyOnRails
[17:45:14] rhizome: rails has it.
[17:45:21] shkipper: I am thinking to use mongoDb
[17:45:33] craysiii: both frameworks have mongodb support
[17:45:45] baweaver: shkipper: we're not going to play 20 questions on Rails, you need to be looking this stuff up
[17:45:55] pontiki: why not use node
[17:45:56] baweaver: it's easily accessible
[17:46:04] shkipper: baweaver, ok )
[17:47:33] baweaver: blonp: all instances of a model? Any particular reason for that?
[17:47:41] baweaver: (re: #ruby)
[17:48:14] blonp: @baweaver -- If I want to update all users, for example
[17:48:36] blonp: structurally, do I keep that logic in the User model?
[17:49:04] baweaver: def self.descriptive_name_of_action; User.update_all(whatever) end
[17:49:13] sararegan: has joined #RubyOnRails
[17:49:33] blonp: descriptive_name_of_action being in the users_controller class?
[17:49:40] pontiki: blonp: yes, actually, you should keep it in the User model,
[17:50:05] baweaver: which technically makes the 'User' in there redundant
[17:50:51] blonp: Ok. I'm used to the methods in the User model only impacting the specific user
[17:50:58] blonp: still very new to this
[17:51:24] bePolite: has joined #RubyOnRails
[17:51:32] baweaver: by using self.method_name, you're defining a class method
[17:51:39] baweaver: so you'd then have User.method_name
[17:52:29] jsvgoncalves: has joined #RubyOnRails
[17:52:30] blonp: that part makes sense. But my class methods so far are for a single user
[17:52:41] baweaver: those would be instance methods
[17:52:44] pontiki: that is typical, blonp
[17:53:34] blonp: Is there a difference between instance and class methods syntactically? Or just in logical context
[17:53:44] pontiki: there are two class methods you encounter all the time: User.new and User.find; you're just defining a few more
[17:54:20] pontiki: blonp: re: @baweaver> by using self.method_name, you're defining a class method
[17:54:40] blonp: Ah, ok. I missed that the first time.
[17:54:42] pontiki: that "self." in there is Very Important
[17:55:13] pontiki: and it turns out this is actually a ruby question! :) \o/
[17:55:33] pontiki: (the concept of Class methods and Instance methods)
[17:56:18] blonp: Alright, I think this is starting to make sense. I will give this a shot.
[17:57:03] roxtrongo: has joined #RubyOnRails
[17:57:16] shkipper: but ruby itself isn't using widly. It's a little bit sad
[17:58:11] baweaver: shkipper: inaccurate
[17:59:38] nya: has joined #RubyOnRails
[17:59:40] pragmatism: has joined #RubyOnRails
[18:01:05] futilegames: has joined #RubyOnRails
[18:01:57] davidheward: has joined #RubyOnRails
[18:02:55] startupality: has joined #RubyOnRails
[18:03:48] pragmatism: has joined #RubyOnRails
[18:03:53] djbkd: has joined #RubyOnRails
[18:05:04] veg: has joined #RubyOnRails
[18:11:50] kitsuneyo: has joined #RubyOnRails
[18:12:40] FailBit: ruby is used everywhere
[18:12:54] FailBit: if you dig in the headers of a lot of webpages, you will find the telltale signs of a rails app
[18:14:15] darrencauthon: has joined #RubyOnRails
[18:14:34] shkipper: FailBit, maybe I am wrong
[18:15:05] FailBit: and I'm not going to go after you for being wrong, since I am often very wrong myself
[18:15:36] FailBit: I find django awkward, but not unusable
[18:15:40] kitsuneyo: has joined #RubyOnRails
[18:15:47] FailBit: there's your answer from me.
[18:16:33] shkipper: yes, awkward. I've started to learn it and after asp.net mvc it feels awkward
[18:17:13] acti0nman: has joined #RubyOnRails
[18:17:43] ktchup: has joined #RubyOnRails
[18:20:58] FrankD_: has joined #RubyOnRails
[18:26:12] mices: after installing passenger it gave me some lines to add to httpd.conf (i'm running apache24) but when i added them i get this error on apachectl restart:http://pastie.org/10415110
[18:26:26] mices: left out a space sorry
[18:31:08] techguy47: has joined #RubyOnRails
[18:31:15] ebbflowgo: has joined #RubyOnRails
[18:32:20] givanse: has joined #RubyOnRails
[18:32:33] techguy47: How do you fix the git problem where it won't allow you to add project files to the repository in Git?
[18:32:48] srinidhi: has joined #RubyOnRails
[18:32:59] rakm: has joined #RubyOnRails
[18:33:57] jeanlinux: has joined #RubyOnRails
[18:34:08] Zackio: has joined #RubyOnRails
[18:35:12] rhizome: "the" problem?
[18:35:18] rhizome: see also: #git
[18:35:18] mrbubbles: has joined #RubyOnRails
[18:35:23] roxtrongo: has joined #RubyOnRails
[18:35:27] mrbubbles: does anybody use Postman?
[18:36:40] mices: http://pastie.org/10415139 http://pastie.org/10415110
[18:37:12] solars: has joined #RubyOnRails
[18:37:45] rhizome: is it actually there?
[18:38:59] mices: it's a directory full of files but it's named 5.0.18
[18:39:06] mices: not 5.0.1
[18:39:16] mices: but changing it to 18 doesn't help
[18:39:29] annlewis: has joined #RubyOnRails
[18:40:59] rhizome: pretty sure the module file should have the extension .so at the end
[18:41:22] rhizome: i think maybe your copypaste got cut off
[18:42:38] hardtail: has joined #RubyOnRails
[18:48:09] ktchup: has joined #RubyOnRails
[18:48:44] VeryBewitching: has joined #RubyOnRails
[18:49:41] BraddPitt: has joined #RubyOnRails
[18:49:49] crankhar1er: has joined #RubyOnRails
[18:49:51] BraddPitt: has left #RubyOnRails: ()
[18:50:20] BraddPitt: has joined #RubyOnRails
[18:50:27] BraddPitt: has left #RubyOnRails: ()
[18:52:40] hnanon: has joined #RubyOnRails
[18:54:26] arup_r: mrbubbles: I dod
[18:54:36] arup_r: to test APIs
[18:55:49] herbst: has joined #RubyOnRails
[18:57:29] dnewkerk: has joined #RubyOnRails
[18:57:57] krz: has joined #RubyOnRails
[18:58:22] annlewis: has joined #RubyOnRails
[18:59:24] Choclo: has joined #RubyOnRails
[19:01:47] maz-dev: has joined #RubyOnRails
[19:05:37] jeanlinux: has joined #RubyOnRails
[19:06:59] cac: has joined #RubyOnRails
[19:09:06] rickmasta: has joined #RubyOnRails
[19:10:40] workmad3: has joined #RubyOnRails
[19:11:59] crdpink: has joined #RubyOnRails
[19:13:45] cac: has joined #RubyOnRails
[19:14:47] arup_r: I am calling the edit.js.erb using Ajax call by the remote: true. Now, I am seeing the form to be present there. But not the inline JS. Any reason why ? https://gist.github.com/aruprakshit/c782493393b5bbefe197
[19:14:59] darrencauthon: has joined #RubyOnRails
[19:16:32] roxtrongo: has joined #RubyOnRails
[19:17:03] arup_r: render call rendering the partial, bu the javascript is missing like the <script> tag stuff
[19:17:24] jenrzzz: has joined #RubyOnRails
[19:17:36] fedexo: has joined #RubyOnRails
[19:21:10] hnanon: How can I create a select menu that has two conditions? For example, Essay.number = 1 and Essay.stage = "2"?
[19:22:08] Lytol: has joined #RubyOnRails
[19:23:02] maz-dev: has joined #RubyOnRails
[19:23:39] maz-dev_: has joined #RubyOnRails
[19:27:10] pontiki: has joined #RubyOnRails
[19:27:16] liquid-silence: has joined #RubyOnRails
[19:27:16] liquid-silence: has joined #RubyOnRails
[19:31:29] sam_weerasinghe: hnanon: usually a select menu contains items of the same kind. so its a bit odd what you???re trying.
[19:32:02] ledestin: has joined #RubyOnRails
[19:32:51] roxtrongo: has joined #RubyOnRails
[19:46:32] cac: has joined #RubyOnRails
[19:46:43] FailBit: hnanon: an OR?
[19:46:50] yfeldblum: has joined #RubyOnRails
[19:47:10] FailBit: if it's on the same field, an IN may or may not be faster
[19:47:17] FailBit: but OR sounds like what you're looking for
[19:48:07] sam_weerasinghe: guys whats the correct way to write this:
[19:48:24] sam_weerasinghe: PCs and other equipment
[19:48:30] sam_weerasinghe: PC???s and other equipment
[19:48:54] FailBit: do not pluralize with apostrophes
[19:52:44] workmad3: has joined #RubyOnRails
[19:54:37] rhizome: "the grocer's apostrophe"
[19:57:23] roxtrongo: has joined #RubyOnRails
[19:58:11] herbst: has joined #RubyOnRails
[19:59:06] meoblast001: has joined #RubyOnRails
[19:59:35] DeweyD: has joined #RubyOnRails
[20:01:27] brunoalano: has joined #RubyOnRails
[20:01:27] Lytol: has joined #RubyOnRails
[20:01:59] brunoalano: Anyone can suggest improves in my RSpec testing? https://gist.github.com/brunoalano/548f74781a46e10854b3
[20:02:09] brunoalano: (I'm trying to learn the best pratices)
[20:03:08] cashnguns: has joined #RubyOnRails
[20:03:53] ror15: has joined #RubyOnRails
[20:04:12] FailBit: use full blocks for it()
[20:04:20] FailBit: that will make failed test output much prettier
[20:04:30] FailBit: it "should have this functionality" do
[20:05:21] FailBit: it { should_not allow_value('.site').for(:subdomain) }
[20:05:26] FailBit: probably could just use an expect there
[20:06:16] FailBit: no, I'm so wrong
[20:06:19] FailBit: please ignore everything I said
[20:07:46] brunoalano: FailBit: I saw somewhere, that using shoulda, you don't need to use full it blocks (with messages)
[20:07:52] brunoalano: FailBit: This is correct?
[20:08:22] FailBit: I haven't used rspec in a while so I'm just going to be perpetually wrong
[20:08:44] bruno-: has joined #RubyOnRails
[20:09:14] elaptics: brunoalano: yes, you can just do it { should validate_presence_of(:foo) }
[20:09:44] elaptics: there's no need to provide a descriptive string because the test is very readable
[20:10:07] brunoalano: elaptics: How I say to Shoulda, to use the Factory Girl model? Because, when I use validate_presence_of(:foo), the gem will try to insert a all other fields as null (but this is invalid)
[20:10:13] rhizome: FailBit. Wrong for rspec, Wrong for America.
[20:10:36] FailBit: you mean 'murica
[20:11:03] FailBit: illuminarty
[20:11:39] elaptics: brunoalano: you just build a factory
[20:11:54] elaptics: brunoalano: the example on the docs shows exactly how http://matchers.shoulda.io
[20:12:23] brunoalano: elaptics: Or I can use this, right? `expect(build(:company, subdomain: nil)).to_not be_valid`
[20:12:25] FailBit: arg, y u no https github
[20:12:54] elaptics: brunoalano: yes, though that's nothing to do with shoulda
[20:13:22] SteenJobs: has joined #RubyOnRails
[20:13:41] anibara: has joined #RubyOnRails
[20:14:23] elaptics: brunoalano: if you're using shoulda matches for the validators it's only the uniqueness one you have to do anything special with, the others will test the specific attribute you're testing - it doesn't matter that the other attributes might be erroring - they check the errors for the attribute being tested
[20:14:58] FailBit: ACTION is such an amazing digital artist
[20:15:01] FailBit: https://github.com/liamwhite/litebooru/blob/master/test/fixtures/image_files/water_drop.png
[20:15:52] darrencauthon: has joined #RubyOnRails
[20:16:56] shinnya: has joined #RubyOnRails
[20:17:23] FailBit: I'm actually really happy that I even made anything because I haven't seriously arted in months
[20:18:28] brunoalano: Look the refactored: https://gist.github.com/brunoalano/7ec908306321117bb02b
[20:18:30] mary5030: has joined #RubyOnRails
[20:19:39] elaptics: brunoalano: yep, nicer :)
[20:19:47] brunoalano: elaptics: One last question: When to use `subject` and `before` ?
[20:20:35] arup_r: `before` runs before each example
[20:20:42] arup_r: but subject runs once
[20:20:44] towski_: has joined #RubyOnRails
[20:20:52] arup_r: before all example
[20:20:56] elaptics: brunoalano: subject allows you to control the thing being tested whereas before is used for setting up the state of the world before each test is run
[20:21:02] haidahaha: has joined #RubyOnRails
[20:21:11] arup_r: ^^ Much more technical
[20:21:24] haidahaha: has left #RubyOnRails: ()
[20:21:39] zeknox: has joined #RubyOnRails
[20:21:41] brunoalano: elaptics: So, at line 12, the correct will be to use subject, right?
[20:21:48] zeknox: do rails scaffolds no longer generate routes?
[20:22:42] elaptics: brunoalano: that's only really needed for the uniqueness check - the name and subdomain ones don't need anything to be built, the default subject of Company.new would suffice
[20:23:12] FailBit: zeknox: they do for me
[20:23:16] brunoalano: elaptics: Thanks man
[20:23:17] toretore: has joined #RubyOnRails
[20:26:15] jeanlinux: has joined #RubyOnRails
[20:27:19] drptbl: has joined #RubyOnRails
[20:27:41] mvenancio: has joined #RubyOnRails
[20:31:32] mrtomme: has joined #RubyOnRails
[20:31:34] moeabdol: has joined #RubyOnRails
[20:32:54] anibara: Has anyone used foundation with rails successfully
[20:33:15] bmurt: has joined #RubyOnRails
[20:33:16] jenrzzz: has joined #RubyOnRails
[20:33:59] rhizome: i've been far as
[20:34:28] jessemc: has left #RubyOnRails: ()
[20:35:01] DmitryBochkarev: has joined #RubyOnRails
[20:35:55] gravity_pope: has joined #RubyOnRails
[20:38:07] anibara: getting incompatible rem and px error
[20:39:01] roxtrongo: has joined #RubyOnRails
[20:39:15] Choclo: has joined #RubyOnRails
[20:39:15] jeanlinux: has joined #RubyOnRails
[20:39:50] lxsameer: has joined #RubyOnRails
[20:40:55] netzfisch: has joined #RubyOnRails
[20:46:07] Ergo: has joined #RubyOnRails
[20:46:55] drptbl: has joined #RubyOnRails
[20:47:16] mhenrixon: has joined #RubyOnRails
[20:49:32] michael_mbp: has joined #RubyOnRails
[20:51:42] gambl0re: is there a list of the most downloaded gems?
[20:52:05] DLSteve: has joined #RubyOnRails
[20:53:23] Pro|: http://rubygems.org/ probably
[20:54:25] iamse7en: has joined #RubyOnRails
[20:55:44] hnanon: has joined #RubyOnRails
[20:59:50] MartinElvar: has joined #RubyOnRails
[21:00:29] elaptics: gambl0re: yeah, rubygems https://rubygems.org/stats
[21:01:07] hnanon: Can someone point me to tutorial for dynamic select menus?
[21:01:22] hnanon: I have an essay model and a review model.
[21:01:51] elaptics: hnanon: dynamic how?
[21:01:57] Lytol: has joined #RubyOnRails
[21:02:09] hnanon: When creating a review, I want to be able to select essays with number = 1.
[21:02:32] esauOp: has joined #RubyOnRails
[21:02:43] hnanon: Then populate a second select menu with those essays and from there select essays with stage = 1.
[21:03:18] hnanon: That essay is the essay the review will belong to.
[21:05:35] elaptics: hnanon: maybe this will help? http://railscasts.com/episodes/88-dynamic-select-menus-revised
[21:05:54] djbkd: has joined #RubyOnRails
[21:06:04] minotep: has joined #RubyOnRails
[21:06:08] hnanon: So I will have: select essay number > select essay stage (from the essays selected before) > select essay
[21:06:45] hnanon: The problem with that screencast is that it's for multiple models. My select menus are filtering down a single model.
[21:06:48] gambl0re: rubygems only has like top 10 most downloaded
[21:07:02] bmurt: has joined #RubyOnRails
[21:07:23] gambl0re: is there a way to sort most downloaded by category?
[21:07:37] FailBit: probably not.
[21:08:02] gambl0re: thats dumb..
[21:08:57] elaptics: gambl0re: https://rubygems.org/pages/data
[21:10:36] FailBit: ACTION immediately discards the pejorative he was about to drop
[21:11:09] FailBit: I have to be civilized here
[21:11:12] FailBit: but I'm really a wild animal
[21:13:47] roxtrongo: has joined #RubyOnRails
[21:16:33] darrencauthon: has joined #RubyOnRails
[21:17:44] altivection: has joined #RubyOnRails
[21:21:54] VeryBewitching: Do you mean pejorative or expletive?
[21:22:23] rnga: has joined #RubyOnRails
[21:24:24] jeanlinux: has joined #RubyOnRails
[21:30:35] lxsameer: folks is there any way to don't cache a view or fragement ?
[21:32:10] Lytol: has joined #RubyOnRails
[21:34:52] FailBit: don't use a cache block?
[21:35:08] maz-dev: has joined #RubyOnRails
[21:35:45] mices: has joined #RubyOnRails
[21:38:23] hnanon: I have: https://gist.github.com/anonymous/d091e74840ee4f09941f
[21:38:50] Coldblackice: has joined #RubyOnRails
[21:38:57] hnanon: I want the select menu to show, for example: One Rough, One Final, etc.
[21:39:43] mices: the author says to install git i installed the gem but i think he meant system git because when i type his commands at the shell prompt it returns Git: Command not found
[21:40:52] workmad3: has joined #RubyOnRails
[21:41:00] kbflex: has joined #RubyOnRails
[21:41:22] FailBit: mices: lowercase git
[21:41:32] FailBit: case sensitivity
[21:41:42] FailBit: and yes you want system git
[21:41:52] yfeldblum: has joined #RubyOnRails
[21:42:23] mices: i type git but the system capitlizes the first letter of the sentence
[21:43:37] mices: his discussion of deployment is cloudy you're not always sure which machine he's talking about and you have to guess
[21:43:43] mices: which sucks
[21:44:54] mices: if anyone has the book
[21:45:48] drale2k: has joined #RubyOnRails
[21:45:51] mary5030: has joined #RubyOnRails
[21:46:16] banjara: has joined #RubyOnRails
[21:47:41] pwnd_nsfw: There's a git gem? heh
[21:48:25] mices: ha ha takes a newbie to look for it i guess
[21:50:58] quazimodo: has joined #RubyOnRails
[21:52:17] nfk: has joined #RubyOnRails
[21:52:41] hnanon: I have this in my review form: <%= select_tag(, Essay::ESSAY_NUMBER) %>
[21:52:50] hnanon: What would go before the comma?
[21:52:59] hnanon: The menu is empty.
[21:53:15] Choclo: has joined #RubyOnRails
[21:53:18] FailBit: you want some options_for_select() !
[21:53:41] hnanon: And just the constant?
[21:55:04] pwnd_nsfw: the ebook of rails 4 in action I found is apparently a mix of 3 and 4 heh
[21:55:41] banjara: has joined #RubyOnRails
[21:57:26] Pazician: has joined #RubyOnRails
[21:58:19] pwnd_nsfw: And the second edition has changed quite a bit
[21:59:10] mices: which server do i have to install system git on the production or dev?
[21:59:34] pwnd_nsfw: the whole project
[21:59:40] mices: both servers?
[22:00:07] pwnd_nsfw: I guess if you're going to use git to GET the project to your production server, both would be wise
[22:00:14] pwnd_nsfw: Do you understand what git is for?
[22:00:35] mices: keeping track of my deployments vaguely
[22:01:02] FailBit: that's not what git is for
[22:01:13] pwnd_nsfw: Well, it allows you to take snapshots of your project in case you need to revert back to a different state of the project
[22:02:39] hnanon: FailBit: <%= options_for_select(["One", {id: "one"}], ["Two", {id: 'two'}], ["Three", {id: 'three'}]) %>
[22:02:53] hnanon: wrong number of arguments (3 for 1..2)
[22:03:04] mices: this book is really nutsy the author tells me to alias localhost on my devbox as my fqdn
[22:03:26] mices: in apache conf
[22:03:28] mices: httpd.conf
[22:03:36] FailBit: hnanon: probably shouldn't do that
[22:03:41] mices: of course not
[22:03:53] mices: when i type my fqdn i wanna go out on the web and back to my server
[22:03:57] mices: not across my lan
[22:04:04] pwnd_nsfw: http://apidock.com/rails/ActionView/Helpers/FormOptionsHelper/options_for_select
[22:04:23] FailBit: <%= select_tag(options_for_select([["One", "one"], ["Two", "two"], ["Three", "three"]]), "three") %>
[22:04:37] meoblast001: has joined #RubyOnRails
[22:05:47] hnanon: What is your last "three" there for?
[22:05:53] FailBit: the highlighted value
[22:06:03] FailBit: the one that will be active when the page is loaded.
[22:10:19] rickmasta: has joined #RubyOnRails
[22:12:10] hnanon: Weird: It's only displaying "Two" and "Three"
[22:13:24] Lulz0rz: has joined #RubyOnRails
[22:14:58] pwnd_nsfw: hnanon, doesn't generate the html at all?
[22:16:06] pontiki: has joined #RubyOnRails
[22:16:32] hnanon: Sort of: <select name="<option id=" one"="" value="one">One
[22:17:19] darrencauthon: has joined #RubyOnRails
[22:17:20] pwnd_nsfw: Did you copy what FailBit gave you?
[22:18:25] pwnd_nsfw: select_tag("Options", options_for_select........
[22:19:13] hnanon: No luck: no implicit conversion of Symbol into Integer
[22:20:40] qejk: has joined #RubyOnRails
[22:21:51] mices: i meant in my windows hosts file sorry, he says to path the production server machine to www.fqdn.com, and then he says, great, now you don't have to type localhost anymore
[22:23:29] mices: is it because when i deploy my httpd.conf is gonna be copied to my production server?
[22:23:34] Cervajz_: has joined #RubyOnRails
[22:23:45] mices: so it has to be the same?
[22:23:59] huck5: Trying to get my logger to display some information in a create method. But I never see the message I logged. Any suggestions?
[22:24:32] huck5: Sorry, I have the debugging field. There's other stuff displayed there. I think the problem is it re-directs to the show view after.
[22:24:56] bmurt: has joined #RubyOnRails
[22:25:01] mices: the vhost on my dev box httpd.conf will have the fqdn instead of a local name
[22:25:07] mices: should i do that?
[22:25:14] sandstrom: has joined #RubyOnRails
[22:25:21] northfurr: has joined #RubyOnRails
[22:25:24] mices: is that what capistrano's gonna be expecting?
[22:25:48] jeanlinux: has joined #RubyOnRails
[22:27:29] jeanlinux: has joined #RubyOnRails
[22:27:55] huck5: Ah, I got it. Nevermind!
[22:28:53] SteenJobs: has joined #RubyOnRails
[22:30:55] hnanon: The same problem with other select menus using the same code.
[22:35:29] esauOp: has joined #RubyOnRails
[22:40:04] Jon30: has joined #RubyOnRails
[22:40:16] rromanchuk: has joined #RubyOnRails
[22:40:59] pwnd_nsfw: has joined #RubyOnRails
[22:42:34] bmurt: has joined #RubyOnRails
[22:44:53] gambl0re: has joined #RubyOnRails
[22:46:16] hnanon: collection_select(:review, :essay_id, @e1r, :id, :name_of_user_here, prompt: true)
[22:46:41] hnanon: How can I retrieve the "name_of_user" parameter?
[22:47:24] wethu: has joined #RubyOnRails
[22:48:14] mices: i did this on my local machine using mywebsite_dev as the ServerName and got 'forbidden you don't have permission to access / on this server' from apache is it because i followed his advice and set the path to .../appname/public
[22:48:29] mices: why is he telling me to set it to public? http://pastie.org/10415612
[22:50:23] mices: does this make sense to anyone?
[22:50:40] iamse7en: has joined #RubyOnRails
[22:50:48] hnanon: mices: Use c9.io and move on.
[22:52:48] mices: i have to make my doc root views?
[22:53:59] Helheim: has joined #RubyOnRails
[22:56:07] platosha_: has joined #RubyOnRails
[23:04:57] rromanchuk: has joined #RubyOnRails
[23:06:41] FailBit: huck5: re the select thing
[23:06:41] Lytol: has joined #RubyOnRails
[23:07:04] huck5: FailBit, oh I'm struggling with a select thing too :P
[23:07:13] FailBit: it's = select_tag :name_of_field, options_for_select(options)
[23:08:15] annlewis: has joined #RubyOnRails
[23:11:36] SteenJobs: has joined #RubyOnRails
[23:16:45] maz-dev: has joined #RubyOnRails
[23:17:54] fighella: has joined #RubyOnRails
[23:18:04] darrencauthon: has joined #RubyOnRails
[23:18:16] leonardoajim: has joined #RubyOnRails
[23:18:53] Lightsword: has joined #RubyOnRails
[23:19:41] finnnnnnnnnnn: has joined #RubyOnRails
[23:19:58] fighella: has left #RubyOnRails: ()
[23:20:40] leonardoajim: has joined #RubyOnRails
[23:28:35] duncannz: has joined #RubyOnRails
[23:31:21] michaeldeol: has joined #RubyOnRails
[23:32:50] adavia: has joined #RubyOnRails
[23:33:29] n1lo: has joined #RubyOnRails
[23:34:13] Radar: GOOD MORNING
[23:35:05] Pathfinder: has joined #RubyOnRails
[23:37:00] Lulz0rz: good afternoon
[23:38:16] platosha: has joined #RubyOnRails
[23:40:14] FrankD_: has joined #RubyOnRails
[23:40:48] Lightsword: has joined #RubyOnRails
[23:43:15] platosha: has joined #RubyOnRails
[23:44:58] FailBit: tfw you can call a proc with a proc
[23:50:19] SteenJobs: has joined #RubyOnRails
[23:57:25] leonardoajim: has joined #RubyOnRails
[23:58:58] stardiviner: has joined #RubyOnRails
[23:59:43] herbst: has joined #RubyOnRails