ftj

Activity Graph

Page 1 of 3 | Next »

2018-11-08

[23:45:22] ftj: has joined #ruby
[23:46:15] ftj: has left #ruby: ()

2016-07-03

[00:10:11] ftj: has joined #ruby
[00:10:12] ftj: has joined #RubyOnRails
[03:30:44] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[04:52:03] ftj: has joined #RubyOnRails
[04:52:03] ftj: has joined #ruby
[05:05:58] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[12:54:22] ftj: has joined #RubyOnRails
[12:54:22] ftj: has joined #ruby
[13:00:27] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:55:39] ftj: has joined #RubyOnRails
[13:55:39] ftj: has joined #ruby
[13:58:41] ftj: Client Quit
[14:08:06] ftj: has joined #RubyOnRails
[14:08:06] ftj: has joined #ruby
[14:12:46] ftj: Client Quit

2016-06-30

[03:06:38] ftj: has joined #RubyOnRails
[03:06:38] ftj: has joined #ruby
[03:40:47] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-06-27

[17:57:45] ftj: has joined #RubyOnRails
[17:57:45] ftj: has joined #ruby
[18:16:10] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:24:22] ftj: has joined #RubyOnRails
[18:24:22] ftj: has joined #ruby
[18:24:24] ftj: Client Quit

2016-06-22

[15:29:09] ftj: has joined #RubyOnRails
[15:29:09] ftj: has joined #ruby
[15:56:50] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-06-07

[12:42:09] ftj: has joined #RubyOnRails
[12:42:09] ftj: has joined #ruby
[12:53:04] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-06-06

[20:18:05] ftj: has joined #RubyOnRails
[20:18:05] ftj: has joined #ruby
[22:16:08] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-06-01

[14:24:01] ftj: has joined #RubyOnRails
[14:24:01] ftj: has joined #ruby
[20:51:54] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-20

[21:32:15] ftj: has joined #RubyOnRails
[21:32:15] ftj: has joined #ruby
[21:33:32] ftj: I'm doing a marketplace-type app (think App Store) where people can sell digital goods to each other. I'm creating a helper method that displays a Download, Purchase, or "Edit" link depending on whether the user has downloaded the thing or not, whether they own it or not, etc.
[21:33:38] ftj: Can my helper method return a link_to method?
[21:33:57] ftj: Alternatively, can the helper return a partial?
[21:34:56] ftj: It feels stupid to do a whole partial just for a little link_to method (although I do want to return a partial for the more complicated options)
[21:36:40] ftj: cnk Ah I'm an idiot. I only tried it for users that weren't signed in and I wasn't seeing anything...
[21:36:45] ftj: because I was signed in...
[22:55:48] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-18

[03:41:05] ftj: has joined #RubyOnRails
[03:41:05] ftj: has joined #ruby
[03:43:44] ftj: Client Quit
[18:24:58] ftj: has joined #ruby
[18:24:59] ftj: has joined #RubyOnRails
[18:25:46] ftj: I have a self-referential many-to-many relationship for Users (which have_many Customers through CustomerRelationships). I can add a customer for a User by doing @user.customer_relationships << other_user.
[18:26:13] ftj: I want to add additional data to the relationship. What would be the syntax for that?
[18:26:46] ftj: Actually: @user.customers << other_user (plus I want to add this_other_id_for_the_relationship)
[18:26:52] ftj: Simple enough
[19:11:08] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-17

[14:14:14] ftj: has joined #RubyOnRails
[14:14:14] ftj: has joined #ruby
[14:54:16] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:00:42] ftj: has joined #RubyOnRails
[15:00:42] ftj: has joined #ruby
[15:09:58] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[15:11:38] ftj: has joined #RubyOnRails
[15:11:38] ftj: has joined #ruby
[20:46:58] ftj: User.find(3).created_at
[20:47:31] ftj: Anyone here have experience with Stripe Connect? I'm curious about whether you store customer_id mappings between users or if you just get a new customer_id for every transaction and don't store them
[22:14:24] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-05-16

[14:28:23] ftj: has joined #ruby
[14:28:24] ftj: has joined #RubyOnRails
[17:12:31] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-11

[22:04:14] ftj: has joined #RubyOnRails
[22:04:15] ftj: has joined #ruby
[22:10:53] ftj: has left #RubyOnRails: ("Textual IRC Client: www.textualapp.com")
[22:10:54] ftj: has joined #RubyOnRails
[22:15:05] ftj: Quit: Textual IRC Client: www.textualapp.com
[22:15:24] ftj: has joined #RubyOnRails
[22:15:24] ftj: has joined #ruby
[22:20:05] ftj: Client Quit

2016-05-09

[19:29:02] ftj: has joined #ruby
[19:29:02] ftj: has joined #RubyOnRails
[19:29:09] ftj: doing a simple marketplace application where users can upload/download files
[19:29:28] ftj: I want to store a record of the download (user_id, product_id, date and stuff)
[19:29:35] ftj: should that use belongs_to for both user and product?
[19:31:05] ftj: Or should I use has_one?
[19:36:44] ftj: users can upload unlimited products
[19:36:57] ftj: and download unlimited
[19:37:10] ftj: So when someone downloads a product, I want to create a record of that download/purchase
[19:44:44] ftj: desnudopenguino sounds like habtm
[19:44:52] ftj: in general, but I need it through Downloads
[19:45:14] ftj: yeah, has_many :through. didn't know that existed :P
[19:45:22] ftj: perfect
[20:16:43] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-07

[00:59:03] ftj: has joined #ruby
[00:59:04] ftj: has joined #RubyOnRails
[01:12:00] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[01:56:54] ftj: has joined #ruby
[01:56:55] ftj: has joined #RubyOnRails
[02:32:00] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[13:47:13] ftj: has joined #RubyOnRails
[13:47:13] ftj: has joined #ruby
[14:28:39] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[14:58:23] ftj: has joined #RubyOnRails
[14:58:23] ftj: has joined #ruby
[15:18:26] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[18:00:26] ftj: has joined #ruby
[18:00:27] ftj: has joined #RubyOnRails
[19:13:05] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-05-06

[09:08:17] ftj: has joined #RubyOnRails
[09:08:17] ftj: has joined #ruby
[09:18:26] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[17:50:55] ftj: has joined #RubyOnRails
[17:50:55] ftj: has joined #ruby
[19:57:47] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…
[23:18:01] ftj: has joined #RubyOnRails
[23:18:01] ftj: has joined #ruby
[23:32:42] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-05-05

[00:24:54] ftj: has joined #RubyOnRails
[00:24:54] ftj: has joined #ruby
[00:33:23] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-05-04

[23:44:02] ftj: has joined #RubyOnRails
[23:44:02] ftj: has joined #ruby
[23:58:20] ftj: Quit: My MacBook has gone to sleep. ZZZzzz…

2016-04-20

[22:17:58] ftj: has joined #RubyOnRails
[22:17:58] ftj: has joined #ruby
[23:49:58] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-03-18

[22:40:34] ftj: has joined #RubyOnRails
[22:40:34] ftj: has joined #ruby
[22:43:31] ftj: Client Quit

2016-03-17

[21:57:18] ftj: has joined #RubyOnRails
[21:57:18] ftj: has joined #ruby
[21:57:31] ftj: Client Quit

2016-03-10

[17:54:22] ftj: has joined #RubyOnRails
[17:54:22] ftj: has joined #ruby
[18:06:27] ftj: Ping timeout: 268 seconds

2016-03-06

[18:12:02] ftj: has joined #RubyOnRails
[18:12:02] ftj: has joined #ruby
[18:30:32] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-02-06

[16:35:37] ftj: has joined #ruby
[16:35:37] ftj: has joined #RubyOnRails
[16:58:20] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[16:59:07] ftj: has joined #ruby
[16:59:07] ftj: has joined #RubyOnRails
[20:51:32] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-02-05

[03:15:11] ftj: has joined #ruby
[03:15:11] ftj: has joined #RubyOnRails
[04:17:51] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-02-04

[03:18:01] ftj: has joined #ruby
[03:18:01] ftj: has joined #RubyOnRails
[06:20:51] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-02-03

[00:47:26] ftj: Quit: Textual IRC Client: www.textualapp.com

2016-02-02

[05:07:42] ftj: has joined #ruby
[05:07:42] ftj: has joined #RubyOnRails
[06:08:12] ftj: Quit: Textual IRC Client: www.textualapp.com
[14:31:28] ftj: has joined #ruby
[14:31:28] ftj: has joined #RubyOnRails
[15:13:22] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[15:17:08] ftj: has joined #ruby
[15:17:08] ftj: has joined #RubyOnRails
[16:31:21] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[19:22:35] ftj: has joined #ruby
[19:22:35] ftj: has joined #RubyOnRails
[20:27:14] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[20:32:23] ftj: has joined #ruby
[20:32:23] ftj: has joined #RubyOnRails
[20:42:44] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[20:44:14] ftj: has joined #ruby
[20:44:14] ftj: has joined #RubyOnRails
[20:52:19] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[21:01:02] ftj: has joined #ruby
[21:01:02] ftj: has joined #RubyOnRails
[21:38:24] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[23:03:16] ftj: has joined #ruby
[23:03:16] ftj: has joined #RubyOnRails

2016-02-01

[01:03:26] ftj: has joined #ruby
[01:03:26] ftj: has joined #RubyOnRails
[01:05:03] ftj: I've tried every static blog generator under the sun, and I don't like any of them. I'm looking for something with a nice web UI that stores blog data in markdown (either in a db or flat files ??? doesn't matter).
[01:05:40] ftj: I've given up looking, so I want to write a simple one my own using Rails. Goals: store posts in markdown in the database, save Rails-generated pages to filesystem, run rake task to publish folder to S3.
[01:06:42] ftj: I can handle goal 1 and goal 3, but I'm completely stumped on step 2. No idea where to even start. Should I be scraping my own application with wget? Is there some way to get the output of a route programmatically without scraping?
[01:10:03] ftj: soahcc I really want a web ui for editing
[01:27:48] ftj: soahccc Right, but I don't even care about rendering from markdown files. I'm content to store the markdown in the db, as long as I can grab the rendered output and save it as html
[01:29:06] ftj: Exactly right.
[01:37:44] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[01:48:56] ftj: has joined #ruby
[01:48:56] ftj: has joined #RubyOnRails
[02:15:04] ftj: Quit: Textual IRC Client: www.textualapp.com

2015-10-27

[16:05:27] ftj: has joined #ruby
[16:05:27] ftj: has joined #RubyOnRails
[18:01:11] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[18:13:05] ftj: has joined #RubyOnRails
[18:13:06] ftj: has joined #ruby
[18:33:22] ftj: Quit: Textual IRC Client: www.textualapp.com

2015-08-24

[01:11:48] ftj: has joined #ruby
[01:11:48] ftj: has joined #RubyOnRails
[01:16:53] ftj: Ping timeout: 272 seconds

2015-08-23

[18:11:26] ftj: has joined #ruby
[18:11:26] ftj: has joined #RubyOnRails
[18:26:37] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[19:49:24] ftj: has joined #ruby
[19:49:24] ftj: has joined #RubyOnRails
[20:04:23] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[21:52:01] ftj: has joined #ruby
[21:52:01] ftj: has joined #RubyOnRails
[22:38:45] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[22:38:58] ftj: has joined #ruby
[22:38:58] ftj: has joined #RubyOnRails
[23:14:11] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???

2015-08-21

[21:49:06] ftj: has joined #ruby
[21:49:06] ftj: has joined #RubyOnRails
[22:07:51] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???

2015-08-15

[14:39:59] ftj: has joined #ruby
[14:39:59] ftj: has joined #RubyOnRails
[15:03:07] ftj: Quit: My MacBook has gone to sleep. ZZZzzz???
[16:08:48] ftj: has joined #ruby
[16:08:48] ftj: has joined #RubyOnRails
[19:17:12] ftj: Quit: Textual IRC Client: www.textualapp.com

2015-04-16

[01:32:21] ftj: I'm writing a little web service with rails that uploads files to S3 and stores a pointer to that file in the database ?????any opinions here on whether the S3 interaction code should go in the model or controller?
[01:34:32] ftj: sevenseacat I'm building this thing partly as a learning exercise for this kind of thing, but I'll definitely check out carrierwave (I've used paperclip once before)
[01:58:03] ftj: So I'm defining my routes this way with Rails 4's fancy param: option
[01:58:04] ftj: resources :file_uploads, param: :uuid
[01:58:13] ftj: but when I redirect to @file_upload, it still tries to use the id
[01:58:20] ftj: not uuid
[02:00:54] ftj: look at that little piece of magic. thank you! :)

2015-03-23

[02:15:18] ftj: hey all. trying to send an email using Postmark from a simple sinatra app. relevant portion is here: https://gist.github.com/franktisellano/05a76e60a3dde00766bb
[02:15:27] ftj: Getting this erroR: NoMethodError: undefined method `erb' for #<Mailer:0x007f86f9d36710>
[02:16:35] ftj: this class is part of the sinatra app. I use erb there, so I expected to get it here
[02:18:26] ftj: ok. I'm still unsure as to why I can use it just like I'm trying to here from within a sinatra method, but not here.
[02:20:02] ftj: I have a file that includes all of my dependencies (including mailer.rb), which gets included in the main sinatra app
[02:20:22] ftj: right, require
[02:20:24] ftj: require 'bundler'
[02:20:24] ftj: require 'rubygems'
[02:20:25] ftj: require './mailer'
[02:20:25] ftj: require 'postmark'
[02:20:25] ftj: require './assets'
[02:20:25] ftj: require 'sinatra/assetpack'
[02:20:25] ftj: require 'active_support/all'
[02:20:25] ftj: require 'sinatra'
[02:20:26] ftj: require 'trello'

2015-03-22

[19:17:11] ftj: I already have the lists in memory
[19:17:20] ftj: I'm just choosing an object from an array I already have access to
[19:18:13] ftj: love it. thank you
[19:22:51] ftj: apeiros fyi, .to_h didn't work, but I got it working by wrapping the mapper in Hash[]
[19:22:53] ftj: .to_h threw undefined method `to_h' for #<Array:0x007fe1a9cac190>
[19:23:14] ftj: ah gotcha
[19:23:34] ftj: yeah, in this project, I'm using 2.0.0
[19:24:36] ftj: This is a pretty small personal project. Would you recommend just using the newest version?
[19:24:42] ftj: any downside?