Rails 3 beta is released!!
Yeah! Rails 3 beta just got released.
So grab it while it’s hot: ;)
gem install rack bundler tzinfo i18n rack rack-test rack-mount erubis mail thor gem install rails --prerelease
Railslove around the world
We’re posting more and more stuff on our tumble blog “Railslove around the world”.
On the tumble we’re publishing all the good stuff we discover on the web, mostly ruby and web develoment related. So make sure to keep an eye on it. ;)
On the way to Rails 3 - a link list
Rails 3 is coming! The first beta release of the new version is right around the corner and it should be released today or tomorrow… the release notes are already in the master branch.
For me this feels like the release of Rails 1.0 and I’m so excited about all the new changes and the great new features.
Rails 3 is a lot about changing your mindset to make use of the all new features and concepts.
I’ve collected some reading material for you about Rails 3 and the upcoming changes. Since the final Rails 3 is not yet released excpect some of the stuff that’s mentioned to be changed or already have changed in the beta. But this is a good start to catch up with all the Rails awesomeness:
Must-reads
Actually all of these links are “must-reads” but for those of you with little time. Read at least these:
- official Rails 3 relase notes
- Live Coding Rails 3 upgrade a free peepcode
- Exploring Rails 3 - A Free Two Hour Online Conference
- The Path to Rails 3 - Intorduction - A very awesome introduction to the big picture of Rails 3. read it!
- Rails and Merb Merge: Rails Core (Part 4 of 6)
- Rails 3 Upgrade plugin - checks your code and gives you hints to make it Rails 3 compatible (first announcment)
- Greenfielding new apps with the Rails 3 beta
Router
ActiveRecord / ActiveModel
- Active Record Query Interface 3.0
- Rails 3.0’s ActiveModel: How To Give Ruby Classes Some ActiveRecord Magic
- ActiveModel: Make Any Ruby Object Feel Like ActiveRecord
- Arel source code and readme
- Why Arel
- validates :rails_3, :awesome => true great post about the new validations in Rails 3
ActionMailer
Views / JavaScript
Controller
- Render options in Rails 3
- Three reasons to love ActionController::Responder
- Default RESTful Rendering
- Cleaner RESTful Controllers w/ respond_with
Rack
- The CodeRack Contest
- 21 Rack Middlewares To Turbocharge Your Ruby Webapps
- Rails on Rack(not Rails 3 specific)
Gem, Plugins, Dependencies
- Bundler 0.9 - heading towards 1.0
- Bundler is the new hotness: deploying rails apps with bundler and capistrano
- Is your plugin ready for Rails 3?
Generators
- Making generators for Rails 3 with Thor
- Customizing generators in Rails 3
- Discovering Rails 3 generators
I18n
Other great reading
- Rails now seems to act like a grown up
- Build Sinatra on Rails 3
- My five favorite things about Rails 3
- Better Ruby idioms- read this for plugin development
- Rails 3 ready plugins
- Rails 3 and Passenger
- Extending Rails 3 Talk by @wycats at pivotallabs
- Mail gem Version 2 Rails 3 is now using the new mail gem. This is a great writeup about new features in version 2
General Rails
I’ll update this list with upcoming Rails 3 resources.
update:
1. Added link to I18n changes (thanks @ Carlos)
Rails Rumble 2009 - we’ve built nybbl.me
Phew! That was exciting. Rails Rumble 2009 - the 48 hour web application development competition- is over.
We teamed up with Rany (aka @purzelrakete) to build the best team I can imagine.
Our idea is as simple as powerful: (from your team description)
nybbl.me is a microlearning plattform. get twitter sized nibbles of information sent to you, like “you can parse json 2x as fast with the yajl-ruby gem. check it on github.”. choose a set, like “rails active record”, and get schooled over the next days.
create, share and remix nybbl sets, and get them pushed to your iphone. if you prefer, you can grab them per email or sms, too.
nybbl is learning, the easy way: sweat not included.
Think of your private teacher who teaches you in twitter sized micro lessons throughout the day.
Everyone can create those sets of lessons and publish them on the nybbl app store. Most of the sets are free but publishers can choose a price between 0.99$ and 9.99$.
nybbl.me will deliver these nybbls to every subscriber via iphone push notification, sms, twitter or email.
We will post more information and a screencast about nybbl.me in the next days.
For now you should check out nybbl.me and all the incredible apps that were built within the 2 days.
A huge thanks goes out to all the organizers and sponsors of the Rails Rumble for the awesome weekend.
Static content in your Rails application
Our heros over at thoughtbot.com blogged about static pages and their newly released Rails engine high_voltage. High Voltage helps you dealing with simple, stupid static content pages that nobody wants but everyone needs. ;) (With static pages I’m thinking of imprint, about us, etc.)
In our projects we had a similar solution but to edit the pages more easily and without the need to deploy the whole application we’re saving the content in the database.
Because the database part was missing in high_voltage but I’ve really liked the idea to extract that feature into a rails engine I’ve created a fork last night.
My fork checks if there is a valid template file in views/pages/ - if not it checks the Database and renders the views/pages/show template.
How to use it?
Installation
script/plugin install git://github.com/bumi/high_voltage.git
Create pages
this is up to you. ;)
You can add static files to your app/views/pages/ directory or create a database entry:
HighVoltage::Page.create(:title => "Hello world", :body => "High Voltage! High Voltage!")
That’s it!
For more information check the original thoughtbot post” - You should follow their blog anyway! - And have a look at the readme.
Hope you like my addons.
What are your solutions for static pages?


