#415 Upgrading to Rails 4
With the release of Rails 4.0.0.rc1 it's time to try it out and report any bugs. Here I walk you through the steps to upgrade a Rails 3.2 application to Rails 4.
- Download:
- source codeProject Files in Zip (63.4 KB)
- mp4Full Size H.264 Video (35.6 MB)
- m4vSmaller H.264 Video (17.7 MB)
- webmFull Size VP8 Video (18.6 MB)
- ogvFull Size Theora Video (46.4 MB)
Cool video. Wanted to try out 4.0 (aka First)
+1
I agree.
Thanks !
Nice Video..! Cheers.
A very Good News !
Finally a gorgeous 4.0 version
Very nice summary!
You can generate a new
secret_key_base
by runningrake secret
.If you're interested in some more details about Rails 4 (and deeper dives on some of the topics shown), I'm writing an e-book: http://upgradingtorails4.com/
awesome, was just wondering that.
It works like a charm !
Super good thanks !
You can also rename
update_attributes
toupdate
Nested attributes will need updating too:
http://stackoverflow.com/questions/18436741/rails-4-strong-parameters-nested-objects
Nice, thanks.
Are there any big advantages to upgrading to Rails 4 - I'm a little familiar with some of the new features that are offered and none of them sound appealing to me at the moment.
I noticed 2 areas of improvement:
Rails 4 syntax is less verbose and more intuitive when writing queries.
Rails 4 has a heavy emphasis on security.
There are several more features covered in various blogs and podcasts.
To summarize, Rails 4 "feels" more mature.
I took a huge commercial app and was able to upgrade it from Rails 3.2.13 to Rails 4.0.0.rc1 in half a day. Having the test suite in place made the transition process go smoothly. There are a few popular gems that we use that are not Rails 4 ready so releasing this upgraded app to production will have to wait.
Thanks Ryan.
There is no need to say how many unproductive hours and nightmares you are avoiding us with episodes like this one.
I agree w/ @kikorb. The scary thing is what happens when a relative noob (like myself) tries this. A checklist might be one way of looking for all the gotchas.
Thanks for these non-so-intuitive step :)
so painful
I feel you.
Yeah for real !
To quickly view differences between Rails versions:
http://railsdiff.org/html/v3.2.13-v4.0.0.rc1.html
I did not know about Railsdiff. It's fantastic.
Great post! Thanks, there's quite a lot to see.
+1
+1
+1
So easy with this link
+1 Daniel
Thanks for the cast Ryan you spelt it well as usual. But somehow I share that kind of disappointment with Cyle. It is not if anything were missing, it is just there is no big Wow as there has been before with major releases. Probably a good sign for maturity...
Hello, could you please asciicastize it? Thanks! :-)
+1 ASCII-cast
To get the latest Rails config settings there's no need to copy/paste from another project just run
rake rails:update
.+1 thanks for that!
This will overwrite the configuration that is already have been written.
Thanks so much for this, Ryan!
I understand making gems Rails 4 ready is time-intensive, but most production apps I work on depend on gems that have yet to see some love. Nevertheless, we are starting the upgrade process and updating as dependencies are available.
Your cast makes the process very straightforward and manageable
Rookie in need of some help: It doesn't seem to matter what I do, I get this error:
.rvm/gems/ruby-1.9.3-p286-falcon/gems/actionpack-4.0.0/lib/action_dispatch/routing/mapper.rb:229:in `default_controller_and_action': missing :controller (ArgumentError)
Bundler complete without problems, rake or rails commands fails with before mentioned or simular.
I checked controllers, and yes; they are all there...
So far I have narrowed it down to my routes.rb, but can't see what the problem is.
Any help?
Removed 'patch :update_many' from routes.rb - now things are looking up :)
New subscriber here - Thanks for all your work Ryan
Hey, Ryan, we need cancan for Rais 4. Update it, please!
http://goo.gl/WOL2C5
small article about migration
This video was quite handy when I upgraded Smartlend to Rails 4. Thanks!
Thank you!
Soothe out your ongoing economic hassles by availing Text Loans which have an online basis and are easily available from the lender’s website. A quick relief from the plight will be possible once you choose the desired aid to be derived from the website, without charges to be paid.
Nice Video..!
very cool video
This is a great inspiring article. I am pretty much pleased with your good work.You put really very helpful information.
This blog is great i love reading your posts. Keep up the great work! You know, a lot of people are hunting around for this info, you could help them greatly.
good job
Happy New Year 2017
how new i am?
En tant que 2017 je valide cette video!
Although very difficult, but I think to accept the truth. My children it affected a lot, we have moved to a new place and is gradually adapting to it.
slitheriobr.net
run2online.net
Upgrade went very well thanks!
Very great, I think I've found good article. I will see and consult some information in your post. hotmailcomsignin.email
Agree with your opinion, thanks
was looking for this information, thanks to the author of the post, I am glad to join your community!
Thank you for sharing videos about rails. Good job!
Ovary Nutrition Capsule adalah Produk Persembahan Green World Group sebagai sebuah group perusahaan internasional, dalam proses perkembangan yang terus berkelanjutan, senantiasa tidak lepas dari dukungan dan perhatian kolega dari berbagai kalangan. Selama ini Green World Group selalu mengikuti prinsip “kesehatan umat manusia sebagai dasar.
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work.
Great Post, thanks
Thanks for sharing information, good advise.
I like video. Great!!
great!great! Tks you sharing!
Good Post
I was waiting for it so muuuuucch.
Good Blog Love it
Thanks you it's very good !!
Thanks for sharing such, valuable information
Nice blog
Nice blog
Adidas Ultra Boost Uncaged
NMD Runner
NMD Runner Men
NMD Runner Women
NMD X Ultra Boost
Tubular X Boost 350 Men
Yeezy Boost 350
Yeezy Boost 350 Men
Yeezy Boost 350 V2
Yeezy Boost 350 Women
Yeezy Boost 750
Adidas Ultra Boost Uncaged
NMD Runner
NMD Runner Men
NMD Runner Women
NMD X Ultra Boost
Tubular X Boost 350 Men
Yeezy Boost 350
Yeezy Boost 350 Men
Yeezy Boost 350 V2
Yeezy Boost 350 Women
Yeezy Boost 750
It's Amazing post really Its a great pleasure reading your post.
Its full of information I am looking for and I love to post a comment that
"The content of your post is awesome" Good Work Thanks for sharing.
And whenever you are in Dubai United Arab Emirates.
Don''t missed this tour of Evening Desert Safari
Ι read it with pleasure. Really interesting article!!
terima kasih... sangat bermanfaat sekali
Great post! Thanks, there's quite a lot to see.
Great post! Thanks, there's quite a lot to see.
okeh trimakasih
Well, I didn't know about Railsdiff earlier. It's fantastic.
Hi there
Thank for the nice update on the Ruby on Rails.
Thanks for the information
Awesome new update and no bugs to speak of! Can't believe it took me this long to get up to speed on whats going on, that being said I should probably go see if I'm missing out on an even better one. Haha
Great Application rais 3.2
Super Happy with the performance! a definite recommend.
Thanks a lot for the purpose of rendering up to date update versions about the challenge, I just await read through further.
I heard that. I'm with you all the way...
great