Please read for an updated status on RailsCasts:
Learn more or hide this
Cool video. Wanted to try out 4.0 (aka First)
Nice Video..! Cheers.
Very nice summary!
You can generate a new secret_key_base by running rake 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.
You can also rename update_attributes to update
Nested attributes will need updating too:
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.
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 :)
I feel you.
To quickly view differences between Rails versions:
I did not know about Railsdiff. It's fantastic.
Great post! Thanks, there's quite a lot to see.
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! :-)
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.
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!
small article about migration
This video was quite handy when I upgraded Smartlend to Rails 4. Thanks!
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.
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 guys! Thanks a lot
First sign in through GitHub to post a comment.