Justin Collins wrote: > Joshua Beall wrote: >>> ...and you imagine executing it as a method, the block variable, >> format.html # index.html.erb >> And it should work. And indeed it does. However, there are still >> posts_controller.rb:9: syntax error, unexpected tSYMBEG, expecting kDO >> or '{' or '(' >> >> It's complaining about the symbol :xml. >> > In this case { render :xml => @posts} is being interpreted as a Hash, > not a block and that is messing things up for you. So how do I construct the method call so that I can use parentheses? -- Posted via http://www.ruby-forum.com/.