SlideShare une entreprise Scribd logo
1  sur  2
What’s new in Rails 4.0 Beta 1?

        Release of the Ruby 2.0 version also came with the first beta version of Rails 4.0. Ruby 2.0 is also
the preferred Ruby to use with Rails 4.0. This beta release was intended to compel developers to
upgrade from Rails 3.2 and earlier to Rails 4.0 which comes with numerous new features. The prime
focus of the release was to make development simple and easy. It is featured to develop web
applications that are fast and to eliminate the need to go to client-side JS/JSON server.

Here are some features:

        Easy Russian Doll-caching through key-based expiration with automatic dependency
        management of nested templates.

        Turbolinks Speeds-up the client-side, which turns the app into a single-page JavaScript
        application in terms of speed, but without any developmental drawbacks.

        Declarative Etag makes it even easier to ensure taking advantage of HTTP.

Although Rails offers an excellent JSON server for the Ruby on rails developers, but by using Rails 4.0,
they won't need to go down that route to have a fast application. They have also added live streaming
for continual connections and Rails 4.0 is safe for threaded servers. Active Record has received some
improvements to make scoping and the query structure more consistent.

Here are some major updates:

        Session store is encrypted by default.

        Strong Parameters take over from attr_protected plugin to guard
        against foreign parameters.

        Security headers like X-Frame-Options, X-XSS-Protection, X-Content-Type-Options are on by
        default with solid values.

        XML Parameter parsing has been sent to a plugin.
Other than these new features and fixes, it has been
streamlined and simplified for the developers. They have
also removed some old APIs. Active Resource, Active
Record Observers, Action Pack page and action caching
have been removed and made as plugins. All the
improvements in Rails 4.0 has been documented in the
changelog. So the developers are advisable to read the
changelog to get detailed information. Most
improvements are made in Action Pack, Active Model,
Active Record, and Active Support. Another notable
change in rails 4 is that it has dropped ruby 1.8.7 support
and the minimum ruby version requirement is 1.9.3. The vendor/plugins directory has been removed.
ActiveResource is an ORM for REST-based web services; it has been removed from Rails4. Page and
Action caching facilities have being removed in Rails 4 instead; ‘Russian Doll caching’ strategies has been
introduced. Hence the need for ActiveRecord Observers is now almost redundant. The default setup and
naming of test locations has been altered. “Models” corresponded to “units”, “controllers” to
“functional” tests, and so on. The default test locations will be little closer to rspec’s naming conventions
for Rails tests.



  Rails 4.0 beta release could bring new possibilities to Ruby rails development. It is specifically featured
to make the development process easier and manageable. It’s not that it is without flaws but those are
yet to come.

Contenu connexe

En vedette

New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012New Eurasia Foundation
 
2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe PhiladelphiaFred Beans Cadillac
 
2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury PhiladelphiaFred Beans Cadillac
 
2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard PhiladelphiaFred Beans Cadillac
 
Opdracht online marketing FSM
Opdracht online marketing FSMOpdracht online marketing FSM
Opdracht online marketing FSMGewoon Groen
 
Potencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y AparentePotencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y Aparentegallardoluis
 
El Sector Terciario en España
El Sector Terciario en EspañaEl Sector Terciario en España
El Sector Terciario en Españaprofeshispanica
 
Mobile web apps tips & tricks
Mobile web apps tips & tricksMobile web apps tips & tricks
Mobile web apps tips & tricksDarius Leskauskas
 

En vedette (8)

New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012New Eurasia Foundation newsletter for 2012
New Eurasia Foundation newsletter for 2012
 
2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia2013 Cadillac CTS-V Coupe Philadelphia
2013 Cadillac CTS-V Coupe Philadelphia
 
2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia2013 Cadillac CTS Sport Luxury Philadelphia
2013 Cadillac CTS Sport Luxury Philadelphia
 
2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia2013 Cadillac CTS Sport Wagon Standard Philadelphia
2013 Cadillac CTS Sport Wagon Standard Philadelphia
 
Opdracht online marketing FSM
Opdracht online marketing FSMOpdracht online marketing FSM
Opdracht online marketing FSM
 
Potencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y AparentePotencia: Activa, Reactiva y Aparente
Potencia: Activa, Reactiva y Aparente
 
El Sector Terciario en España
El Sector Terciario en EspañaEl Sector Terciario en España
El Sector Terciario en España
 
Mobile web apps tips & tricks
Mobile web apps tips & tricksMobile web apps tips & tricks
Mobile web apps tips & tricks
 

Plus de Andolasoft Inc

Essential Functionalities Your Real Estate Web App Must Have.pdf
Essential Functionalities Your Real Estate Web App Must Have.pdfEssential Functionalities Your Real Estate Web App Must Have.pdf
Essential Functionalities Your Real Estate Web App Must Have.pdfAndolasoft Inc
 
A Complete Guide to Developing Healthcare App
A Complete Guide to Developing Healthcare AppA Complete Guide to Developing Healthcare App
A Complete Guide to Developing Healthcare AppAndolasoft Inc
 
Game-Changing Power of React Native for Businesses in 2024
Game-Changing Power of React Native for Businesses in 2024Game-Changing Power of React Native for Businesses in 2024
Game-Changing Power of React Native for Businesses in 2024Andolasoft Inc
 
A Complete Guide to Real Estate Website Development
A Complete Guide to Real Estate Website DevelopmentA Complete Guide to Real Estate Website Development
A Complete Guide to Real Estate Website DevelopmentAndolasoft Inc
 
How to Build Cross-Platform Mobile Apps Using Python
How to Build Cross-Platform Mobile Apps Using PythonHow to Build Cross-Platform Mobile Apps Using Python
How to Build Cross-Platform Mobile Apps Using PythonAndolasoft Inc
 
Impact of AI on Modern Mobile App Development
Impact of AI on Modern Mobile App DevelopmentImpact of AI on Modern Mobile App Development
Impact of AI on Modern Mobile App DevelopmentAndolasoft Inc
 
How to Optimize the SEO of Shopify Stores
 How to Optimize the SEO of Shopify Stores How to Optimize the SEO of Shopify Stores
How to Optimize the SEO of Shopify StoresAndolasoft Inc
 
14 Tips On How To Improve Android App Performance
14 Tips On How To Improve Android App Performance14 Tips On How To Improve Android App Performance
14 Tips On How To Improve Android App PerformanceAndolasoft Inc
 
The Ultimate Guide to Setting Up Your WooCommerce Store
The Ultimate Guide to Setting Up Your WooCommerce StoreThe Ultimate Guide to Setting Up Your WooCommerce Store
The Ultimate Guide to Setting Up Your WooCommerce StoreAndolasoft Inc
 
Ranking The Best PHP Development Companies in the World
Ranking The Best PHP Development Companies in the WorldRanking The Best PHP Development Companies in the World
Ranking The Best PHP Development Companies in the WorldAndolasoft Inc
 
Top 8 WordPress Design and Development Trends of 2023
Top 8 WordPress Design and Development Trends of 2023Top 8 WordPress Design and Development Trends of 2023
Top 8 WordPress Design and Development Trends of 2023Andolasoft Inc
 
List of 10 Best WordPress Development Companies
List of 10 Best WordPress Development CompaniesList of 10 Best WordPress Development Companies
List of 10 Best WordPress Development CompaniesAndolasoft Inc
 
WooCommerce vs Shopify: Which is Better For Your Online Store
WooCommerce vs Shopify: Which is Better For Your Online StoreWooCommerce vs Shopify: Which is Better For Your Online Store
WooCommerce vs Shopify: Which is Better For Your Online StoreAndolasoft Inc
 
Why Choose WooCommerce For Your eCommerce Store
Why Choose WooCommerce For Your eCommerce StoreWhy Choose WooCommerce For Your eCommerce Store
Why Choose WooCommerce For Your eCommerce StoreAndolasoft Inc
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and ArchitectureAndolasoft Inc
 
Service Oriented Architecture in NodeJS
Service Oriented Architecture in NodeJSService Oriented Architecture in NodeJS
Service Oriented Architecture in NodeJSAndolasoft Inc
 
Top Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowTop Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowAndolasoft Inc
 
How To Organize And Structure Your SASS Code
How To Organize And Structure Your SASS CodeHow To Organize And Structure Your SASS Code
How To Organize And Structure Your SASS CodeAndolasoft Inc
 
Why Businesses Need Open Source Software
Why Businesses Need Open Source Software Why Businesses Need Open Source Software
Why Businesses Need Open Source Software Andolasoft Inc
 
What is Closure and Its Uses in PHP
 What is Closure and Its Uses in PHP What is Closure and Its Uses in PHP
What is Closure and Its Uses in PHPAndolasoft Inc
 

Plus de Andolasoft Inc (20)

Essential Functionalities Your Real Estate Web App Must Have.pdf
Essential Functionalities Your Real Estate Web App Must Have.pdfEssential Functionalities Your Real Estate Web App Must Have.pdf
Essential Functionalities Your Real Estate Web App Must Have.pdf
 
A Complete Guide to Developing Healthcare App
A Complete Guide to Developing Healthcare AppA Complete Guide to Developing Healthcare App
A Complete Guide to Developing Healthcare App
 
Game-Changing Power of React Native for Businesses in 2024
Game-Changing Power of React Native for Businesses in 2024Game-Changing Power of React Native for Businesses in 2024
Game-Changing Power of React Native for Businesses in 2024
 
A Complete Guide to Real Estate Website Development
A Complete Guide to Real Estate Website DevelopmentA Complete Guide to Real Estate Website Development
A Complete Guide to Real Estate Website Development
 
How to Build Cross-Platform Mobile Apps Using Python
How to Build Cross-Platform Mobile Apps Using PythonHow to Build Cross-Platform Mobile Apps Using Python
How to Build Cross-Platform Mobile Apps Using Python
 
Impact of AI on Modern Mobile App Development
Impact of AI on Modern Mobile App DevelopmentImpact of AI on Modern Mobile App Development
Impact of AI on Modern Mobile App Development
 
How to Optimize the SEO of Shopify Stores
 How to Optimize the SEO of Shopify Stores How to Optimize the SEO of Shopify Stores
How to Optimize the SEO of Shopify Stores
 
14 Tips On How To Improve Android App Performance
14 Tips On How To Improve Android App Performance14 Tips On How To Improve Android App Performance
14 Tips On How To Improve Android App Performance
 
The Ultimate Guide to Setting Up Your WooCommerce Store
The Ultimate Guide to Setting Up Your WooCommerce StoreThe Ultimate Guide to Setting Up Your WooCommerce Store
The Ultimate Guide to Setting Up Your WooCommerce Store
 
Ranking The Best PHP Development Companies in the World
Ranking The Best PHP Development Companies in the WorldRanking The Best PHP Development Companies in the World
Ranking The Best PHP Development Companies in the World
 
Top 8 WordPress Design and Development Trends of 2023
Top 8 WordPress Design and Development Trends of 2023Top 8 WordPress Design and Development Trends of 2023
Top 8 WordPress Design and Development Trends of 2023
 
List of 10 Best WordPress Development Companies
List of 10 Best WordPress Development CompaniesList of 10 Best WordPress Development Companies
List of 10 Best WordPress Development Companies
 
WooCommerce vs Shopify: Which is Better For Your Online Store
WooCommerce vs Shopify: Which is Better For Your Online StoreWooCommerce vs Shopify: Which is Better For Your Online Store
WooCommerce vs Shopify: Which is Better For Your Online Store
 
Why Choose WooCommerce For Your eCommerce Store
Why Choose WooCommerce For Your eCommerce StoreWhy Choose WooCommerce For Your eCommerce Store
Why Choose WooCommerce For Your eCommerce Store
 
Django Workflow and Architecture
Django Workflow and ArchitectureDjango Workflow and Architecture
Django Workflow and Architecture
 
Service Oriented Architecture in NodeJS
Service Oriented Architecture in NodeJSService Oriented Architecture in NodeJS
Service Oriented Architecture in NodeJS
 
Top Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must KnowTop Features And Updates Of Angular 13 You Must Know
Top Features And Updates Of Angular 13 You Must Know
 
How To Organize And Structure Your SASS Code
How To Organize And Structure Your SASS CodeHow To Organize And Structure Your SASS Code
How To Organize And Structure Your SASS Code
 
Why Businesses Need Open Source Software
Why Businesses Need Open Source Software Why Businesses Need Open Source Software
Why Businesses Need Open Source Software
 
What is Closure and Its Uses in PHP
 What is Closure and Its Uses in PHP What is Closure and Its Uses in PHP
What is Closure and Its Uses in PHP
 

What’s new in rails 4.0 beta 1

  • 1. What’s new in Rails 4.0 Beta 1? Release of the Ruby 2.0 version also came with the first beta version of Rails 4.0. Ruby 2.0 is also the preferred Ruby to use with Rails 4.0. This beta release was intended to compel developers to upgrade from Rails 3.2 and earlier to Rails 4.0 which comes with numerous new features. The prime focus of the release was to make development simple and easy. It is featured to develop web applications that are fast and to eliminate the need to go to client-side JS/JSON server. Here are some features: Easy Russian Doll-caching through key-based expiration with automatic dependency management of nested templates. Turbolinks Speeds-up the client-side, which turns the app into a single-page JavaScript application in terms of speed, but without any developmental drawbacks. Declarative Etag makes it even easier to ensure taking advantage of HTTP. Although Rails offers an excellent JSON server for the Ruby on rails developers, but by using Rails 4.0, they won't need to go down that route to have a fast application. They have also added live streaming for continual connections and Rails 4.0 is safe for threaded servers. Active Record has received some improvements to make scoping and the query structure more consistent. Here are some major updates: Session store is encrypted by default. Strong Parameters take over from attr_protected plugin to guard against foreign parameters. Security headers like X-Frame-Options, X-XSS-Protection, X-Content-Type-Options are on by default with solid values. XML Parameter parsing has been sent to a plugin.
  • 2. Other than these new features and fixes, it has been streamlined and simplified for the developers. They have also removed some old APIs. Active Resource, Active Record Observers, Action Pack page and action caching have been removed and made as plugins. All the improvements in Rails 4.0 has been documented in the changelog. So the developers are advisable to read the changelog to get detailed information. Most improvements are made in Action Pack, Active Model, Active Record, and Active Support. Another notable change in rails 4 is that it has dropped ruby 1.8.7 support and the minimum ruby version requirement is 1.9.3. The vendor/plugins directory has been removed. ActiveResource is an ORM for REST-based web services; it has been removed from Rails4. Page and Action caching facilities have being removed in Rails 4 instead; ‘Russian Doll caching’ strategies has been introduced. Hence the need for ActiveRecord Observers is now almost redundant. The default setup and naming of test locations has been altered. “Models” corresponded to “units”, “controllers” to “functional” tests, and so on. The default test locations will be little closer to rspec’s naming conventions for Rails tests. Rails 4.0 beta release could bring new possibilities to Ruby rails development. It is specifically featured to make the development process easier and manageable. It’s not that it is without flaws but those are yet to come.