tomasm-

Activity Graph

Page 1 of 1

2018-12-14

[00:38:59] tomasm-: has joined #ruby
[01:23:32] tomasm-: is there a way to start a separate process (a shell command) that does attach to STDOUT? I'm noticing that when I pipe my script to something like 'tee' that STDIN never closes because that spawned process is attached to it. If that makes any sense. lol.
[01:59:58] tomasm-: Quit: Page closed

2018-12-08

[16:03:26] tomasm-: has joined #ruby
[16:11:24] tomasm-: hey any idea why running "bundle exec fastlane <args>" versus just "fastlane <args>" would seemingly load different libraries (possibly versions)? Does "bundle install" possibly install a new copy somewhere? I can only seem to find one copy under .gem, and nothing under /usr/local/lib/ruby
[16:14:28] tomasm-: OK nevermind, seems there was an alternate (older) package overriding the newer one. weird.
[16:16:08] tomasm-: Quit: Page closed

2018-01-07

[00:22:56] tomasm-: Quit: This computer has gone to sleep

2018-01-06

[23:23:11] tomasm-: has joined #RubyOnRails
[23:24:13] tomasm-: hey I'm starting with a fresh rails project, trying to get bootstrap 4 installed... I follow the instructions here: https://github.com/twbs/bootstrap-rubygem ... And I restart passenger, but when I go to the site, it says it cant find 'bootstrap' when doing @import in my scss file. rails assets:precompile works fine. any idea what's wrong?

2017-06-06

[13:16:58] tomasm-: has joined #RubyOnRails
[13:21:36] tomasm-: tuff into a gem so I can override it locally in my app
[13:21:36] tomasm-: hey I noticed if i'm trying to load a partial with just one part to the name (not in a subfolder), it tries loading it from app/views/CONTROLLER and app/views/application .... any idea if I can get that same mechanism working if I have nested paths? ie, "render 'nav/links', only loads from app/views/nav/_links.... I'd like to have my app also look in app/views/application/nav/_links .... but maybe the answer is to just put my s
[21:31:04] tomasm-: Quit: This computer has gone to sleep

2017-05-28

[16:38:09] tomasm-: has joined #RubyOnRails
[16:40:19] tomasm-: hey, is it possible to use a separate rails project as an engine/gem, as long as I move any files that could be conflicting with my core app into subfolders (ie named after the gem)?
[16:42:24] tomasm-: ok nevermind i found some docs
[16:42:29] tomasm-: Quit: Leaving

2017-05-26

[15:49:04] tomasm-: has joined #RubyOnRails
[15:50:59] tomasm-: hey, what are some of the best gems/tools for rails development to help save time, especially as an entrepreneur and rapid prototyping? for example, I see there's ActiveAdmin for admin dashboards, best_in_place for inline editing, etc... lets say I'm coming up with a CMS or social media platform
[15:53:09] tomasm-: can I mix erb and haml together in my project, assuming they're separate files?
[16:14:57] tomasm-: it's just the haml gem? or haml-rails?
[16:39:51] tomasm-: any other good gems/tools for saving dev time on prototyping? maybe higher level patterns, widgets, tasks etc?
[21:09:09] tomasm-: Quit: This computer has gone to sleep

2017-05-24

[12:35:44] tomasm-: has joined #RubyOnRails
[12:36:53] tomasm-: hey is it possible to define a routing concern inside an engine, and have it accessible from within the main routes? i have an engine that is specific to inline editing, etc so I have some routes defined there as a concern. but it's not loaded normally before my global routing
[12:40:20] tomasm-: Quit: Leaving

2017-05-17

[02:07:12] tomasm-: has joined #RubyOnRails
[02:15:52] tomasm-: what are some easy rails deployment/hosting solutions that arent expensive for commercial use? heroku seems like it jumps from $7/mo to $50/mo once an app starts getting used at any level
[04:06:10] tomasm-: Quit: Leaving
[18:01:09] tomasm-: has joined #RubyOnRails
[18:01:55] tomasm-: hey, does rvm/rbenv install ruby globally or just for my main user? I'm wanting to get it running for rails, and nginx is a different user i think. hoping there's a way to install it globally
[18:04:38] tomasm-: havenwood, yet ANOTHER install tool?
[21:25:09] tomasm-: Quit: This computer has gone to sleep

2017-05-16

[02:30:15] tomasm-: has joined #RubyOnRails
[02:30:42] tomasm-: hey anyone know if there's a way for assets to overwrite previous versions rather than have some hash at the end of the filename?
[02:33:21] tomasm-: yeah i've never had an issue with caching with other apps. just hard refresh
[02:36:29] tomasm-: well i'm more concerned for development, production can digest. my master branch will change less often than my develop branch
[02:37:22] tomasm-: i dunno, just seems annoying to have a ton of files in the same folder
[02:49:50] tomasm-: cool, i'm still just prototyping my app, so i'm sure i'll come across those issues later.... just trying to come up with some static mockups for my app as quickly as possible. i was noticing that if I got good that a static page wouldnt take any more time than working in sketch
[03:18:47] tomasm-: Quit: Leaving

2017-05-08

[16:15:05] tomasm-: has joined #RubyOnRails
[16:18:57] tomasm-: hey if I were to use something like wordpress for a marketing site for my rails app, how would those two generally get integrated? not sure whether to map everything under a folder to my app or have a separate subdomain (which may not work since I may have it work as universal subdomains)....
[21:10:59] tomasm-: Quit: This computer has gone to sleep

2017-04-17

[21:37:48] tomasm-: has joined #RubyOnRails
[21:38:28] tomasm-: hey are there any popular CMS's built on rails that are good for saving time as a freelance developer? i'm hoping to save time not reinventing the wheel of a core cms/dashboard/admin and hopefully find some pre-built (free) themes....
[22:27:32] tomasm-: Quit: This computer has gone to sleep

2017-04-11

[03:21:48] tomasm-: has joined #RubyOnRails
[03:22:24] tomasm-: hi, is there anything I can do about speeding up my initial page load from being TERRIBLY slow? it's not even taking up a lot of CPU or memory.
[03:23:01] tomasm-: there's nothing special to my app, it's just a basic CRUD page I'm trying to load
[03:45:03] tomasm-: Quit: Leaving
[11:44:08] tomasm-: has joined #RubyOnRails
[11:48:50] tomasm-: anyone know of a _flexible_ metadata-based table gem where I can have arbitrarily fields not part of a rigid sql schema, but in a meta table, and still in mysql? I don't want to resort to NoSQL for one table when I need relations to other data.... i want dynamic fields because I'm creating a very large form that is flexible and changing often and don't want to run an migration. there was one meta-based table that I could use b
[11:48:51] tomasm-: ut it was one meta table for all other tables, which i'd think would eventually not be efficient. i'd like a single 'meta' table for each table I need expanded, ie 'businesses' and 'businesses_meta' with key, value columns
[11:49:49] tomasm-: JSON/TEXT columns scare me because what if i only want to change one item in a larger object, i'd have to pre-load the whole thing or possibly lose all the other data
[12:45:29] tomasm-: Quit: This computer has gone to sleep
[13:17:36] tomasm-: has joined #RubyOnRails
[13:21:01] tomasm-: Client Quit
[13:42:17] tomasm-: has joined #RubyOnRails
[13:44:06] tomasm-: hey is there a way in rails to treat a has_many relation as if it's a key=>value pair hash? I need some way to save some extra arbitrary columns that can't go into schema.... but instead of array indexing such as users[meta][0][key] = 'address'; users[meta][0]['value'] = '123 baker st'; # I'd rather have users[meta][address] = '123 baker st'.... something it can just understand and save fields accordingly
[13:46:03] tomasm-: honestly this is more for programming convenience than trying to fit the underlying way things work.
[13:46:42] tomasm-: universa1, i'm hesitant to use serialization because that would require pre-loading the whole data structure and I don't want to chance something goes wrong and the whole set of data gets lost
[13:47:56] tomasm-: sevenseacat, maybe has_many isn't the right way, I just need a way that will map it over to what eventually is a has_many... meta is just a single row with a 'key' column and 'value' column (along with ref_id for the corresponding row)
[13:50:19] tomasm-: matthewd, well i need a general catch-all setter, and a way to somehow find the corresponding row in the meta table if such exists
[13:52:22] tomasm-: matthewd, but how do serialized columns work when I only have a single field somewhere nested inside of it I'm changing? doesn't my model have to preload the whole thing to update?
[13:54:45] tomasm-: matthewd, losing any data would be a big deal, these are large forms of information.
[14:05:44] tomasm-: so if I have "serialize :meta, JSON" , can I just assign to user.meta.address.city = 'San Jose' ?
[14:07:16] tomasm-: and if I have an input hash (form values), how do I append to the serialized data rather than possibly wiping out the existing values, resetting the hash?
[15:32:32] tomasm-: Quit: Leaving

2017-04-05

[21:22:13] tomasm-: Ping timeout: 246 seconds

2017-04-04

[20:01:25] tomasm-: Quit: This computer has gone to sleep

2017-04-03

[01:47:03] tomasm-: has joined #RubyOnRails
[04:57:48] tomasm-: Quit: This computer has gone to sleep

2017-04-01

[15:43:48] tomasm-: has joined #RubyOnRails
[19:08:45] tomasm-: Quit: Leaving

2017-03-31

[01:17:43] tomasm-: has joined #RubyOnRails
[02:36:25] tomasm-: Quit: Leaving
[14:17:04] tomasm-: has joined #RubyOnRails
[14:48:01] tomasm-: Quit: Leaving

2017-03-30

[18:15:46] tomasm-: has joined #RubyOnRails
[20:06:07] tomasm-: Quit: This computer has gone to sleep

2017-03-26

[00:57:16] tomasm-: has joined #RubyOnRails
[04:31:13] tomasm-: Quit: Leaving

2017-03-24

[05:09:18] tomasm-: Remote host closed the connection

2017-03-23

[19:13:50] tomasm-: has joined #RubyOnRails
[21:46:12] tomasm-: Quit: This computer has gone to sleep
[23:30:46] tomasm-: has joined #RubyOnRails

2017-03-21

[03:02:06] tomasm-: has joined #RubyOnRails
[03:54:48] tomasm-: Quit: Leaving

2017-03-20

[02:03:16] tomasm-: has joined #RubyOnRails
[04:16:42] tomasm-: Quit: Leaving

2017-03-19

[00:15:32] tomasm-: has joined #RubyOnRails
[06:23:10] tomasm-: Quit: Leaving

2017-03-18

[04:46:15] tomasm-: has joined #RubyOnRails
[07:59:23] tomasm-: Quit: Leaving
[19:55:34] tomasm-: has joined #RubyOnRails
[23:04:02] tomasm-: Quit: This computer has gone to sleep

2017-03-16

[02:46:30] tomasm-: has joined #RubyOnRails
[04:18:35] tomasm-: Quit: Leaving
[17:31:51] tomasm-: has joined #RubyOnRails
[18:23:01] tomasm-: Quit: Leaving

2017-03-14

[07:59:50] tomasm-: Quit: This computer has gone to sleep
[12:49:48] tomasm-: has joined #RubyOnRails
[13:09:41] tomasm-: Quit: This computer has gone to sleep
[13:41:20] tomasm-: has joined #RubyOnRails
[14:40:26] tomasm-: Quit: Leaving

2017-03-13

[00:21:39] tomasm-: has joined #RubyOnRails
[01:34:03] tomasm-: Quit: This computer has gone to sleep
[01:37:11] tomasm-: has joined #RubyOnRails
[01:41:13] tomasm-: Client Quit
[04:32:43] tomasm-: has joined #RubyOnRails
[04:40:02] tomasm-: Quit: This computer has gone to sleep
[13:35:13] tomasm-: has joined #RubyOnRails
[13:36:05] tomasm-: Client Quit
[13:45:36] tomasm-: has joined #RubyOnRails
[13:52:47] tomasm-: th updated_at. I know the photo id's are there, since I print them to my log file. just the foreign key isnt saved despite calling @photo_album.photo_ids = # what could I be doing wrong? same approach works on another model
[13:52:47] tomasm-: hey i have a problem with a has_many association, I have PhotoAlbum has_many Photos, I've saved my album like: @photo_album.assign_attributes(params.require(:photo_album).permit(...)), then @photo_album.save, then I assign the photo id's to the album since they are uploaded via ajax and not assigned yet: @photo_album.photo_ids = params[:photos].pluck(:id) ; # Unfortunately, I never have photo_album_id saved on my photos model, it just does an UPDATE wi
[13:54:23] tomasm-: I see the query where it tries to find existing photos in the photo_album_id, ie SELECT * from photos WHERE photo_album_id = 2; # But the UPDATE after that doesn't set photo_album_id
[13:57:22] tomasm-: why does autosave need to work? I am calling @photo_album.photo_ids = params[:photos].pluck(:id) explicitly
[13:59:20] tomasm-: well i dont have autosave set on another parent has_many model set, and that works
[14:36:57] tomasm-: matthewd, yeah, I call @photo_album.save; @photo_album.photo_ids = params[:photos].pluck(:id)
[14:50:30] tomasm-: odd, it works now
[15:07:50] tomasm-: is there any gem or plugin that helps with the UI end of uploading and managing a paperclip photo via ajax? ie something with an upload button, crop, zoom, etc.
[15:53:02] tomasm-: 'resource' makes it a singleton
[19:20:50] tomasm-: Quit: Leaving
[23:51:34] tomasm-: has joined #RubyOnRails

2017-03-12

[17:15:48] tomasm-: has joined #RubyOnRails
[17:21:51] tomasm-: if I have a relationship: Person HasMany Pictures, where Person accepts_nested_attributes_for :pictures, and in my form I have person[pictures_attributes][][id] = 123, why doesnt this work? I am uploading pictures via ajax, not knowing the parent object until the page is later saved. I am getting a ModelNotFound error, possibly because the Pictures don't have person_id assigned (yet)
[19:05:49] tomasm-: Quit: This computer has gone to sleep
[20:32:39] tomasm-: has joined #RubyOnRails
[20:53:10] tomasm-: Read error: Connection reset by peer
[20:53:40] tomasm-: has joined #RubyOnRails
[21:12:49] tomasm-: Ping timeout: 240 seconds
[21:18:24] tomasm-: has joined #RubyOnRails
[21:42:12] tomasm-: Quit: This computer has gone to sleep

2017-03-11

[14:53:30] tomasm-: has joined #RubyOnRails
[14:58:59] tomasm-: Quit: Leaving

2017-03-10

[01:19:03] tomasm-: has joined #RubyOnRails
[01:20:09] tomasm-: hey is there any decent debug toolbar for rails? something where I can visually inspect sessions, db queries, etc
[02:27:09] tomasm-: hey how do i check whether a class method is defined or not?
[04:01:07] tomasm-: hey I'm getting DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead
[04:01:51] tomasm-: from an engine file, all it's doing is calling "require" from my gemfile specs
[04:19:09] tomasm-: yeah i got some gems that were made for rails 3 i think
[04:19:34] tomasm-: there are other deprecated issues too from other gems
[04:19:55] tomasm-: matthewd, it's a gem inside the engine actually
[04:20:54] tomasm-: yeah i _could_ fix it on github, still kind of new to ruby/rails so wanting to get the project done before spending time on minor issues like that
[04:22:40] tomasm-: true, would also kind of be a waste of time at the moment
[04:23:13] tomasm-: I already spent 2 hours tonight on what was figuring out a single line of code (elsewhere)
[04:27:30] tomasm-: what do mice do?
[04:31:40] tomasm-: Read error: Connection reset by peer
[04:32:12] tomasm-: has joined #RubyOnRails
[05:20:26] tomasm-: ok so I want to create a db:seed for an admin login user.... but I don't want to pass a plain text password, I'd rather store an encrypted version, but i need it to not encrypt it for me, maybe there's a different field name than 'password' to use?
[06:44:01] tomasm-: Quit: Leaving
[19:48:01] tomasm-: has joined #RubyOnRails
[19:56:50] tomasm-: Quit: Leaving

2017-03-07

[13:01:13] tomasm-: has joined #RubyOnRails
[13:27:08] tomasm-: Quit: This computer has gone to sleep
[14:03:46] tomasm-: has joined #RubyOnRails
[14:14:42] tomasm-: Quit: Leaving