Chris Oliver

Joined

292,890 Experience
93 Lessons Completed
295 Questions Solved

Activity

Absolutely! Any other specific topics you'd like me to cover?

Hey Earl!

You can put the sign in and sign up forms anywhere you want (including on every page if you wanted it as a modal or something). Check these links out:

https://github.com/plataformatec/devise/wiki/How-To:-Display-a-custom-sign_in-form-anywhere-in-your-app
http://stackoverflow.com/a/17001874/277994

Posted in Group Chat with ActionCable: Part 2 Discussion

Basecamp uses Turbolinks and the ActionCable JS on mobile to power their app, however I'm sure you could port the client over to a native Swift or Obj-C client that would allow you to build a native app. It'll probably be a decent amount of work to start, but this is an example of someone who build an ActionCable client in Ruby (rather than the default JS) so you could probably use it as a basis for building a Swift client.

If you just go with Turbolinks views on mobile, you'll have a really easy time making this all work because the mobile UI will be the exact same code you use on the desktop browser.

Posted in Group Chat with ActionCable: Part 1 Discussion

Those are actually just the LastPass extension trying to save my passwords.

Posted in Old Rails 2 Delayed_Job User_Mailer Question

It's been a really long time since I've used Delayed Job, but here's what I'd do:

  1. Try checking for DelayedJob errors. I'm not sure how you do this, but they are either logged in the database or in your Rails log file I'd guess. I'm sure you can find information on this on their Readme/Wiki or on Google.
  2. If you don't find anything, you can try running the same code that your background job does, but manually in the Rails console in production. You'll then know if your code was wrong if that succeeds or not. Chances are there's some sort of SMTP authentication issue or something.

Posted in Group Chat with ActionCable: Part 1 Discussion

I'm using Monokai in just about all places, vim, zsh, etc.

Posted in Group Chat with ActionCable: Part 1 Discussion

Just published it! https://gorails.com/episode...

I'll be publishing about one a week so I have time to get through everything.

Posted in Group Chat with ActionCable: Part 1 Discussion

Thanks! I'll try to make sure I include that.

Posted in Group Chat with ActionCable: Part 1 Discussion

You can just run "gem install rails" and that should install Rails 5. I'll be doing a screencast on upgrading an existing app to Rails 5 pretty soon.

I chose DO because I like running my own servers and its significantly cheaper than running on Heroku for personal or small business projects. You'll have to do a lot more work, but it can be fun so long as you make sure you have backups and all that in place.

In that case, you'll typically build the CSV and then store it on S3 in a background job, and then provide the user with a link to download it. You can send them an email once it's uploaded or you can refresh the page periodically with AJAX until the download URL is saved to a record. Really sorta depends, but when things get outside that time window, you'll see lots of apps taking this approach.

Yes! This is almost finished. I've been working on this feature as an update along with grouping episodes into series so they're easier to follow along. This should be released shortly.

Posted in Screencast Request: iOS / Android Adapter Example

I'm way behind, but I did an episode on this briefly to explore what you'll need to do: https://gorails.com/episodes/turbolinks-5-forms?autoplay=1

I'm going to be building some more like this, and also APIs for your mobile app if you need it to be native as well. It's helpful to dive into the iOS code and everything to understand how your Rails API will be consumed, so I'm sure we'll be doing some of that as well.

The Turbolinks 5 adapters are super slick and really make it a lot easier to manage though if you don't need too much native stuff.

I'm doing a series of videos on this as we speak. :)

Basically you'll want to keep track of them server side and then on connect, you'll loop through the connected rooms and stream from each.

Posted in Episode Suggestion:

Definitely! I will be doing this in the near future.

Also check out the Montrose gem for this as well. You can use it to create them in memory, and to save them to the database, you'd just need to make sure you saved the same properties.

Posted in How to I Architect my application?

Can you elaborate on the kind of transactions you want between them? What about building 3 separate apps, separate databases, and then defining your own internal API to communicate between them for those transactions?

Posted in Better Errors ignore 404 errors

Yeah, not much better way to test it that I know of unfortunately. As long as you're throwing that exception, you shouldn't have any problems.

Posted in Better Errors ignore 404 errors

I think it's always going to thrown an exception in development because that's internal to Rails. You can navigate to /404 to see your 404 page and Rails will catch any ActionController::RoutingError or ActiveRecord::RecordNotFound and render the 404 when in production mode.

I guess you could either run in production mode locally (the real true test) or you could rescue_from those exceptions. Something like so:

rescue_from ActiveRecord::RecordNotFound, :with => :rescue404
 rescue_from ActionController::RoutingError, :with => :rescue404

  def test_404
    render file: 'public/404.html', status: :not_found, layout: false    
  end

I forgot that changed recently, great reminder. Thanks for sharing that!

Posted in Setup MacOS 10.11 El Capitan Discussion

If your error was like his, it is showing that the "source" line also got copied into the file, so the ending single quote didn't get applied right most likely to close the string. Not having an ending semicolon is fine (just tested it again). Sometimes when pasting stuff into terminal there are weird things that cut off lines short or your browser can mess with quotes and make them curly when they should be straight (http://practicaltypography.... That shouldn't happen in a code block though. I can't reproduce the issue you guys are having with Chrome and both iTerm and Terminal so not entirely sure what's wrong for you guys, but it's one of these things.