Save 36% for Black Friday! Learn more

Chris Oliver

Joined

293,980 Experience
93 Lessons Completed
295 Questions Solved

Activity

Posted in Stimulus JS Framework Introduction Discussion

I get the feeling that Basecamp won't build out those kinds of features and will keep this generic, but it is the perfect opportunity to build a library on top of stimulus to make validations easy I would imagine.

Posted in Stimulus JS Framework Introduction Discussion

Hit me up with your questions! I'm still learning it too, but the good news is that it's pretty straightforward so there isn't _too_ much to learn.

Posted in How can I setup Vim for rails development on Ubuntu?!

You're welcome!

Btw, you can remove the duplicates of those lines and that should work fine if you want.

export PATH="$HOME/.rbenv/bin:$PATH"
export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"
eval "$(rbenv init -)"

Posted in How can I setup Vim for rails development on Ubuntu?!

I'd guess that p[robably is coming from this command (line 10) https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/rails/rails.plugin.zsh#L1

I'm not quite sure why it isn't finding the rails command though. Maybe the Rails command isn't in your PATH in ZSH and when you load bash it updates your PATH?

Have you added rbenv's stuff into your .zshrc? That's probably it if I had to guess.

There are many ways to talk to an API. HTTParty, RestClient, etc are all options you could use.

Posted in Tracking Metrics with Ahoy and Blazer Discussion

That's really cool, thanks for sharing!

Posted in Modern Webpack template on Rails 5.1

Hey Jiri,

I think you're right for the most part. I believe you could just move those assets folders into app/javascript/pack and you'd be able to use reference them from there.

You could probably put it in the vendor folder since you wouldn't really want to edit these files, but that may just require you to import the files into webpacker a bit differently.

You might have to say like import X from '../../vendor/assets/index or whatever. It'll take some experimenting.

I think the vendor folder is the ideal so you aren't tempted to edit any of those files to make updating to newer versions of the template easier. That said, don't let that stop you if you can get it working in app/javascript easier. A running app is more useful than a perfectly organized one. You can always move the files around after you get it working.

I did an episode on that here: https://gorails.com/episodes/consuming-an-api-using-httparty-and-creating-a-gem

It's using the HTTParty gem, but you can also use like RestClient as well which I believe I've talked about in an episode or two as well.

Posted in How can I setup Vim for rails development on Ubuntu?!

I'm using github.com/carlhuda/janus which works on anything. It's close enough with shortcuts to Sublime Text that it was a pretty easy switch.

Just remember, with Vim all you need to learn at the beginning are enough basics to get you going. Then you can take time to learn more complicated things.

Posted in Learn what is Redis and how to use it with Rails

Awesome! Good luck with your new job!!

Posted in Vue.js Trello Clone in Rails - Part 7 Discussion

And fixed. The solution is to add the "key" property to the loop so it can differentiate which items have changed.

card v-for="card in list.cards" :key="card.id" :card="card" :list="list"

Posted in Vue.js Trello Clone in Rails - Part 7 Discussion

Those will be covered shortly! Just want to finish up this series real fast first. :)

Posted in Vue.js Trello Clone in Rails - Part 7 Discussion

Yeah, I do see the same thing. Will take a look at a fix for it.

Posted in Rails & Vue.js Trello Clone - Part 1 Discussion

Yeah, I have a really basic template that installs Bootstrap, Devise, and Administrate. It's really nothing more than if you install those gems yourself and create a root page. I'll publish it sometime soon once I fix a couple bugs in it.

cc @mikemcclintock:disqus

Sounds like you messed up your PATH variable. You might try:

export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

That should reset you somewhere normal and then you can go fix your bash profile.

Posted in Rails & Vue.js Trello Clone - Part 4 Discussion

Yeah, that is true since we don't use it really anywhere else. 👍

That could be good beginner content, and possibly a place to begin talking about testing. Both more beginner topics and testing are goals for me to cover more in 2018. 👍

I would suggest starting with the very first episodes. https://gorails.com/episodes?page=23

Those are some basics about Ruby on Rails then it gets into building a lot of basic features most apps have like login, permissions, likes, etc.

If you're completely new to Rails, GoRails might be a little much at the beginning and I would suggest going through the Rails tutorial as well: https://www.railstutorial.org/book

That said, if you have any questions on things or a topic you would like covered, just let me know and I'll try my best to make some screencasts for you!

Posted in Vue.js Trello Clone in Rails - Part 7 Discussion

Thanks Josh! I'm actually finishing up an episode adding realtime updates to the Trello clone with Vuex and ActionCable. Should be out in the next week or two!