Page 1 of 6 | Next »
[05:47:56] morenoh149: I'm seeing something odd, there are tables named cities_users with keys city_id and user_id but there is no line from cities_users to the cities table
[05:51:38] morenoh149: I'm seeing city.rb has ` has_many :cities_users` and ` has_many :users, through: :cities_users` shouldn't that create foreign keys?
[05:55:47] morenoh149: oh schema.db needs something like ` add_foreign_key "city_contents", "cities"` in order to create a foreign key
[20:34:03] morenoh149: is anyone experienced in compiling ruby on osx. I'm having some issues and it's been blocking me for a week now
[20:35:25] morenoh149: dminuoso: https://gist.github.com/morenoh149/e774cb45dba51bf257a2c7cec4c97ee6 in the first file, openssl is never found
[20:37:09] morenoh149: dminuoso: I've followed this to the letter https://github.com/postmodern/chruby/wiki/Ruby#installation
[20:37:44] morenoh149: I even did the instructions outlined at https://github.com/raggi/openssl-osx-ca#readme
[20:43:22] morenoh149: I thought maybe it was a discrepancy between zsh and bash but both have access to the homebrew ssl
[20:50:11] morenoh149: all I added to .zshrc is source /usr/local/share/chruby/chruby.sh; source /usr/local/share/chruby/auto.sh
[20:53:54] morenoh149: so I installed ruby 2.4.3p205 and chruby into it, but when running the project `bundle install` I get Your Ruby version is 2.5.0, but your Gemfile specified 2.4.2
[21:02:22] morenoh149: dminuoso: I chruby into 2.4.2 and still get `Your Ruby version is 2.5.0, but your Gemfile specified 2.4.2`
[21:02:44] morenoh149: to clarify I have compiled and installed 2.4.2 but without openssl (because it wasn't found)
[21:07:40] morenoh149: `ERROR: Could not find a valid gem 'bundler' (>= 0) in any repository` probably due to lack of https support
[21:09:39] morenoh149: dminuoso: so do I have to fix whatever is updating the PATH or is the PATH updated dynamically by chruby?
[21:20:51] morenoh149: still `../.././ext/openssl/extconf.rb:0: Failed to configure openssl. It will not be installed.`
[21:22:48] morenoh149: running ./configure --prefix="$HOME/.rubies/ruby-2.4.2" --with-opt-dir="$(brew --prefix openssl):$(brew --prefix readline):$(brew --prefix libyaml):$(brew --prefix gdbm):$(brew --prefix libffi)"
[21:29:46] morenoh149: dminuoso: how do I fix the `Your Ruby version is 2.5.0, but your Gemfile specified 2.4.2` when running bundle install?
[21:35:23] morenoh149: I shared my path here https://gist.github.com/morenoh149/e774cb45dba51bf257a2c7cec4c97ee6 does it look alright?
[22:41:42] morenoh149: how does devise usually do authentication? I only know basic auth with the Authorization header