Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Wayne's Profile

GitHub User: waynehoover

Site: http://waynehoover.com

Comments by Wayne

Avatar

Where is the data in states.csv sourced from?

Avatar

It looks like CarrierWave isn't passing the correct instance to the uploader in recreate_versions. I have opened a ticket here:

https://github.com/jnicklas/carrierwave/issues/1015

Until this is fixed, this method Ryan uses here is currently broken.

Avatar

Thanks for this, it made me happy that I went with AngularJS instead of Ember in my last project.

Avatar

Just pushed an update that fixes IE8/9. For those that what to implement it as a fix to what Ryan provides its a rather small change to the helper method, see what I changed here:

https://github.com/waynehoover/s3_direct_upload/commit/b9d4e54e3a27780ec340afba8bf2df8d60e14990

Avatar

I created a simple gem that extracts out the form helper and cofeescript found in Ryan's rails app he mentioned at the end. You can find it here:

https://github.com/BlissOfBeing/s3_direct_upload

There aren't many tests for it yet, but hey it works for now. Would be grateful for any pull requests ;)

Avatar

Love these revised episodes. Would really like to see the episode on Cancan revised. :)

Avatar

Looks like it is:

https://github.com/railscasts/episode-337/blob/master/blog-after/config/recipes/templates/nginx_unicorn.erb

erb
 upstream unicorn {
    server unix:/tmp/unicorn.<%= application %>.sock fail_timeout=0;
 }
Avatar

The mp4 and m4v videos for this episode don't seem to work on iOS 5.

Avatar

if $('#card_number').length

was always returning 1 for me, even if there were no values in the input.

So I used

if $('#card_number').val().length > 0

and that worked.

Avatar

Ryan you forgot to add the modified routes file to the show notes. Thanks for these!

Avatar

Yes, here is how to replace the rails console with pry

For those that don't like to click links:

ruby
#config/environments/development.rb

MyApp::Application.configure do
  silence_warnings do
    begin
      require 'pry'
      IRB = Pry
      rescue LoadError
    end
  end
end