[katello-devel] Rails 3.2 features

Vít Ondruch vondruch at redhat.com
Wed Jan 2 12:56:58 UTC 2013


Dne 7.12.2012 18:03, David Davis napsal(a):
> I just wanted to make a list of features that we'll get upgrading to Rails 3.2. I'm sending these out to inform everyone but I think it's worth reiterating that it's going to be painful to upgrade. It won't be as bad as going from Rails 2 to Rails 3 but it's not going to be easy either. Without futher ado...
>
> * Probably the biggest thing is the asset pipeline. It does everything from compiling languages (like SASS) to uglifying js code. Check out more info at http://guides.rubyonrails.org/asset_pipeline.html
> * New migration features. You no longer have to write up/down methods for the most part. Instead you just write "change" methods. More info at http://guides.rubyonrails.org/migrations.html
> * Multiple levels of has_many :through
> * Create key value stores in the database (http://blog.rawonrails.com/2012/02/using-activerecordstore-with-rails-32.html)
> * New active record methods like pluck (http://api.rubyonrails.org/classes/ActiveRecord/Calculations.html#method-i-pluck)
> * Scoped mass assignment. Helpful for locking down attributes per permission. (http://launchware.com/articles/whats-new-in-edge-scoped-mass-assignment-in-rails-3-1)
> * Slow query logger http://weblog.rubyonrails.org/2011/12/6/what-s-new-in-edge-rails-explain/. I've used http://explain.depesz.com/ to help analyze query explain output from postgres.
> * Encrypted fields (passwords, etc) http://railscasts.com/episodes/270-authentication-in-rails-3-1
> * New generator stuff. You can do "rails g scaffold Person name email" instead of "rails g scaffold Person name:string email:string". Or if you want to be really crafty: rails g scaffold Person name:index email:uniq.
>
> David

I sent the link already in other place, but you should consider to use 
also all the features mentioned in this blog series [1] to be prepared 
for Rails 4.


Vít

[1] http://blog.remarkablelabs.com/2012/11/rails-4-countdown-to-2013


> David
>
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel




More information about the katello-devel mailing list