James Shepherd

Joined

600 Experience
5 Lessons Completed
0 Questions Solved

Activity

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

Hey Chris, I feel like a missed a couple of episodes leading up to this one. You use some gems here I am not familiar with like 'devise_masquerade' and a few others. Do you have either a copy of the code base that you started out with for this episode or can you point me to the episode(s) where you built everything we are starting with here? Thanks!

Posted in Login with Facebook Discussion

Wow, awesome episode Chris, very useful as always.

Wow that's awesome, thanks Chris. BTW, any plans of tackling Turbolinks-ios in a mini-series? I am just diving into that myself. I am taking some swift app development courses to learn the basics of that side of things first. Thanks

BTW, idea for a future episode with Vue would be two things: First, I would like to see how you would refactor this code. I assume you would put some of this into components if you were going to take this approach into production. Secondly, I haven't yet pushed a Rails / Vue project to production or anything with the new webpacker gem, so i would be curious to see you push one to production and see what changes would need to be made. I am still a little unclear about how the rails / vue / webpacker set up would be deployed. Thanks again!

This is a great mini-series on Vue.js. I had emailed you a while back that I was going with Ember but I am now 100% sold on Vue. This episode helped me apply all the Vue.js training I did through YouTube and Lynda.com to a rails app. Thanks Chris!

I feel like I must be missing something basic here Chris. How are you creating the "hello" element in the DOM? When I run the webpacker:install:vue it includes a createElement and then a mount for hello but I don't see that in your code. Thanks!

Posted in User Interaction With Ember Discussion

How would you recommend dealing with the error "Can't verify CSRF token authenticity"? I added "skip_before_filter :verify_authenticity_token" to the monsters controller so it works fine, but I know this is not the best long term solution. Thanks!

Posted in File Uploads in Rails With Shrine Discussion

Good point about the migration edits on the first one. I learned that the hard way with my first big development project and I have done it this way ever since.

Posted in Inviting Users with devise_invitable Discussion

BTW, In my case this is a CRM application so we are inviting users to Teams rather than Projects obviously

Posted in Inviting Users with devise_invitable Discussion

I am using rails 4 and got the error below. Any ideas what I am doing wrong? I used the attr_accessor :email in the User.rb model. I have that feeling that I missed something really simple but I am having a brain freeze LOL

NameError in TeamsController#create

undefined local variable or method `email' for #<teamuser:0x007fcef90e37b8>

Extracted source (around line #8):

def set_user_id

existing_user = User.find_by(email: email)

self.user = if existing_user.present?

existing_user

else