Page 1 of 1
[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.
[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.
[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?
[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
[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)?
[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
[16:39:51] tomasm-: any other good gems/tools for saving dev time on prototyping? maybe higher level patterns, widgets, tasks etc?
[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
[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
[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
[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: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: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
[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: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....
[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
[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
[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][key] = 'address'; users[meta]['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?
[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)
[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.
[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)
[01:20:09] tomasm-: hey is there any decent debug toolbar for rails? something where I can visually inspect sessions, db queries, etc
[04:01:07] tomasm-: hey I'm getting DEPRECATION WARNING: alias_method_chain is deprecated. Please, use Module#prepend instead
[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:23:13] tomasm-: I already spent 2 hours tonight on what was figuring out a single line of code (elsewhere)
[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?