RailsCasts Pro episodes are now free!

Learn more or hide this

Recent Comments

Avatar

Good point. I had forgotten to move it since switching to the new resolution. I'll try to remember!

Avatar

I didn't realize that ProjectPlus was considered more up to date. I didn't see a GitHub repo for it and assumed it was equally dead. Hmm.

Avatar

Good point about destroy/delete. I get caught up in the destroy convention in the Rails world and forget it's not standard everywhere.

Avatar

That one will always have a special place in my heart too. :)

Avatar

Interesting. I didn't know nodejs was required on Ubuntu but I guess it needs something to compile CoffeeScript. Thanks for reporting this.

Avatar

Hmm, that is strange. I used pretty much the default settings of ffmpeg2theora to make the ogv format. Maybe it doesn't like the variable frame rate movie it is given to start off with. Time to do some testing.

Avatar

Haha, glad to see the code formatting is working. Thanks! :)

Avatar

Hmm, the H.264 video should be passed to the GPU in recent hardware. Are you using FireFox maybe? You can access a low-res version by clicking the m4v download link or subscribe to the iPod version of the feed on iTunes.

Avatar

Done! Thanks for the suggestion.

Avatar

Thanks for the feedback James. Others have mentioned this as well. I plan to change the Watch Episode button so it starts playing the episode immediately. Let me know if you have any other suggestions.

Avatar

I haven't used ree much so I'm not certain how the performance compares with Ruby 1.9.2. I've been very happy with 1.9.2 though.

Avatar

Hmm, not sure what's up with the name problem. Sorry about that. I'll look into it.

Avatar

Thanks for the feedback Javi. In the past there were complaints about the episode page being too heavy because there were so many comments. Once I get the comments cleaned up I will consider bringing them back to the main episode page.

Avatar

@Ryan this is a flow layout for the site? an episode explaining how to do this kind of web design using sass for example could be really useful

Avatar

Just watched, very excited to upgrade.

Avatar

Very impressive Ryan. Haven't watched the episode yet, but I'm sure it's great like all the rest. Thank you very much for keeping up with this every week. The new design looks really nice.

By the way, when facebook comes out with a new design, everyone hates it and complains, when you come out with one, I see nothing but praise. Thanks man!

Avatar

Thanks for another informative screencast and for the new design. I watch your screencasts on my iPad it works great.

Avatar

Thanks for the feedback, I'll work on fixing this problem soon.

Avatar

Thanks for the feedback, I am considering adding this feature. For encoding I used a combination of HandBrake, ffmpeg, and ffmpeg2theora. I plan to script my workflow and put it on GitHub soon.

Avatar

It uses ajax if your browser supports the new Javascript History APIs, that way the URL changes to match in the most beautiful and semantically sensible possible way, instead of using a hash (I'm now at '?view=comments', not '#comments').

Learn more about this in Episode 246 and this excellent blogpost from a front-end engineer at Twitter.

And get thee to a modern browser!

Avatar

Awesome new look! Looking forward to the next rails, too!

Avatar

Wow! Rails 3.1 a huge step forward for Rails. Thanks for starting this.

Avatar

Everything is Nice Ryan!

Thanks :)

Avatar

Wow!! great work ryan!
this new design is awesome!
great work!

Avatar

The design looks better, and playing the video from the browser is nice.

Just a criticism: I don't like the tabs for comments and show notes.

Sometimes I'd like to see the show notes while I'm writing a comment (maybe I'm commenting something about them). Now, I lose the contents of my comment if I click the "show notes" tab.

Another thing I use a lot is using the browser-search to look for a word in both the comments and the show notes. Now it doesn't work.

Looking forward for more Rails 3.1 episodes. Thanks!

Avatar

Beautiful looking site, Ryan. Nice job :)

Avatar

You can easily switch to the flash version of SublimeVideo with a right-click on the video more info here

Avatar

Ryan, thanks for a highest quality screencasts I have ever seen.
Great job on redesign, I will miss the old intro soundtrack though :)

Avatar

Great overview of Rails 3.1!

Would prefer Flash being the default and HTML5 video being the fallback for playback though. Fullscreen is kind of crippled in HTML5 (possible with Chromes fullscreen mode activated but noticed that screen dimming and screensaver will still activate).

Avatar

but the bad thing is that I'm "Hubert ??picki" now :/

Avatar

Well job, very good episode. I am looking forward to see more Rails 3.1 episodes, people really need it.

Avatar

Great Design and great episode - love both.

One suggestion to improve usability:
when the user clicks on the video to start playing, you could scroll the page so that the video fits into the users vieport

Avatar

AMAZING WORK!

Congratulations for the new Railscasts -and for the Rails 3.1 beta release.

And am just wondring, should I convert to ruby 1.9.2 instead of ree for the production environment? what about performance, memory, cpu usage?

Thanks Ryan and All!

Avatar

SERIOUS SECURITY PROBLEM

In function call_rake() you have some shell escaping problem.

args = options.map { |n, v| "#{n.to_s.upcase}='#{v}'" }

The variable v must be escaped properly. This is a security vulnerability. Consider replacing the video, or adding overlay to it with the correct solution!

Avatar

Awesome episode, really excited about these changes, especially the asset stuff. I love the idea of CoffeeScript and Sass included right in there! Brilliant work from the Rails team!

Avatar

Hi Ryan, thought it about time I posted a comment.

Thank you for the hard work on Railscasts over the years they have been an invaluable source of information for me.

I'm liking the new site and it's nice to see that the new github login authorisation integration is going to stop all that horrible spam. Only one minor aesthetic suggestion to make and that is the link from the Railscast index page to the specific railscast implies that you are going to watch the video. On first visit that threw me a little.

I also want to say a huge thank you for the change logs for 3.1 - A massive help and exactly what the Rails community needs. I'm going to add a link to those to my signature on the Rails Forum.

At last I see that there is view inheritance in Rails 3.1, something I've been desperate to have for a couple of years now and Rails seems to be finally turning into a much friendlier and consistent environment to work with.. Big hats off to the Rails development teams :)

Thanks for a superb job on this cast, the new site and the change logs.

James

Avatar

Nice I'm really exited to see the next rails 3.1 new feat.
Change for migration look awesome.

the new design is cool to ( a centred culum will great for my big screen
#episode margin: auto

:p

thank's for your great job.

Avatar

Awesome stuff Ryan! Love the ease of including subdomains in 3.1!

Avatar

I like the new design, but the new HTML5 player made my 2011 macbook pro 13" sweat.
it is really CPU intensive. Can we still access the low quality video ?

Avatar

I really love how they handle roles in Rails 3.1. I can think of many times where this would have been useful.

And thanks for posting the changelog!

Avatar
ruby
class RailsCasts < ActiveComunity::Base
  attr_accessible :knowledge, :passion
  has_many => :comments, :through => :sometimes_useless
  has_and_belongs_to_many :qualities
  has_attached_file :video, :styles => { 
  :h264 => "960x600#",
  :m4v => "960x600#",
  :ogv =>"960x600#" }
# TODO 
# thank you :)
# keep the good work Ryan!!!
end
Avatar

Great job, Ryan. The best just got even better.

Avatar

I also noticed that the ogv version shows a play duration of 1:37:58 (vlc on ubuntu 64). The mp4 version displays the correct duration. Otherwise the video runs fine.

Just my box or a general strangeness?

Really looking forward to more of rails 3.1!

Avatar

Like the new design and I am very much looking forward to rails 3.1 as well as your episodes to let us know what it can do!

Avatar

Argh ... new layout ... changes ... must ... adapt ...

Seriously, gz on the redesign!

The logo and intro music remind me somehow of retro style car racing games. Something like "Racing on Rails with Ryan".