#227 Upgrading to Rails 3 Part 3
Here we finish up this upgrade series by removing all deprecation warnings and fixing some problems in the view.
- Download:
- mp4Full Size H.264 Video (20.5 MB)
- m4vSmaller H.264 Video (12.2 MB)
- webmFull Size VP8 Video (27.7 MB)
- ogvFull Size Theora Video (30.9 MB)
Again nice episode!
Useful and nice episode!
There are already a couple of deprecation warnings messages in Rails 2.3.8, especially using rake commands.
As an alternative to downloading the jQuery rails.js file manually, you can use "rails g jquery:install" from the rails3-generators gem to install jquery and rails.js, and set the :defaults option to jquery instead of prototype.
Thanks, Ryan!
Small note - the line:
content_for?(:side) ? yield(:side) : render(:partial => 'shared/side')
Can be shortened slightly to
yield(:side).presence || render(:partial => 'shared/side')
Now the *big* question, Ryan, is railscasts.com **actually** running in Rails 3 now? :-)
Hello Ryan,
I am using jQuery like you and I followed the instructions for using it. My delete/destroy link refuses to work. This worked fine in Rails 2.3.8. Is there a way to debug this problem?
Thanks for the wonderful work that you do. Makes all our lives that much better.
Regards,
Bharat
Apologies for the previous post. It turned out that I was using the wrong rails.js with the wrong version of jquery (talk about double-trouble!).
Thanks.
Bharat
Thanks MattR for sharing that. And thanks Ryan for this great screencast.
Excellent videos, thanks, I was trying it with a 2.3.10 rails app to 3.0.5 most of the work is already done, is booting normally.
But I found a really ugly bug, the default layout is not working, actions from controllers are rendering without the default layout but actions with specific layout option on render are working.
Here is the code for a better understanding:
https://gist.github.com/895355
Any thoughts are welcome.
Thanks, Ryan! This series helped me a lot to migrate to Rails 3. It was not as easy as I thought.