In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the changes in the official release of Ruby On Rails 3.0. the editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
After nearly 2 years of testing, Ruby On Rails 3.0 has finally been officially released. During this period, nearly 1600 developers participated in the development, and with the joint efforts of everyone, Ruby On Rails 3.0 appears to be "faster, stronger and more beautiful". I believe that the new version will not disappoint.
Because the official version of Ruby On Rails 3.0 has changed a lot, it is very difficult to pick out the outstanding features, and here are some of the major changes in the new version.
Ruby on Rails Architecture description
For more information about Rails, please visit the Ruby On Rails Development tutorial
◆ new activity record query engine
Code example: users = User.where (: name = > "david"). Limit (20) users.where ("age > 29") # SELECT * FROM users # WHERE name = "david" AND age > 29 # ORDER BY name # LIMIT 20 users.order (: name). Each {| user | puts user.name}
New Action Mailer components of ◆
Code example: class Notifier
< ActionMailer::Base default :from =>"Highrise" def new_project (digest, project, person) @ digest, @ project, @ person = digest, project, person attachments ['digest.pdf'] = digest.to_pdf attachments [' logo.jpg'] = File.read (project.logo_path) mail (: subject = > "Your digest for # {project.name}" : to = > person.email_address_with_name) do | format | format.text {render: text = > "Something texty"} format.html {render: text = > "Something textyi >"} end end end
◆ enables cross-site tool XSS protection by default
◆ bid farewell to character coding problems
◆ internal refactoring
◆ documentation is perfect
◆ supports MySQL2 gem
◆ fixed the problem of automatic loading
Installation method: gem install rails-- version 3.0.0.
Download Ruby On Rails 3.0: http://rubyonrails.org/download
This is the end of this article on "what are the changes in the official release of Ruby On Rails 3.0". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.