The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
New in rails

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Tobias Luetke

Posts: 150
Nickname: xal
Registered: Jan, 2005

Tobias Luetke is a contributor to the ruby on rails project
New in rails Posted: May 26, 2005 9:54 AM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Tobias Luetke.
Original Post: New in rails
Feed Title: too-biased
Feed URL: http://blog.leetsoft.com/xml/rss/
Feed Description: Read the announcement: CD Baby rewrite in Postgres and Ruby, Baby!CD Baby is going rails. This is huge! If you don’t know CD Baby, its a distribution site with over 80.000 musicians under contract and its one of the biggest digital distributors of audio to Apple iTunes, Napster, Rhapsody, etc.  Read all about it here. What is even more exciting about it is that I’m on board for the rewrite and I had chance to talk to Derek on the phone directly for a consulting session which might have played its little part in the decision to go with rails. Come monday I’ll work together with him and other rails contributor Jeremy Kemper to help crunch those 90k lines of PHP in beautifully compact code for which Rails and Ruby are known. Here is a quote from Derek’s announcement on his weblog: Like a lost soul walkin’ the earth, lookin’ for spirituality, that stumbles upon the right church with the right people at the right time, I’ve found my niche with Ruby. Its little itty-bitty community attracts some brilliant “think different” types with a love for beautiful code that do this for love, not money.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Tobias Luetke
Latest Posts From too-biased

Advertisement

One of the bigger changes coming in the next rails will be an overhauled render method.

Here are some examples. New syntax in bold.

render_with_layout “weblog/show”, “200 OK”, “layouts/dialog”
render :action => “show”, :layout => “dialog”

render_without_layout “weblog/show”
render :action => “show”, :layout => false

render_action “error”, “404 Not Found”
render :action => “error”, :status => “404 Not Found”

render_template “xml.div(‘stuff’)”, “200 OK”, :rxml
render :inline => “xml.div(‘stuff’)”, :type => :rxml

render_text “hello world!”
render :text => “hello world!”

render_partial_collection “person”, @people, nil, :a => 1
render :partial => “person”, :collection => @people, :locals => { :a => 1 }

Read: New in rails

Topic: Setting up CIA: Continuous Integration Automater Previous Topic   Next Topic Topic: Lighttpd+Rails Launcher

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use