From: James Britt Date: 2006-02-03T00:39:14+09:00 Subject: Re: Spaces in between brackets semmons99@gmail.com wrote: > Can anyone explain to me why the code works: > > > While this code doesn't: > > > I know that most people don't put spaces in between brackets, however I > like to for readability. It seems like I can do this everywhere in Ruby > and Rails except for the name of html tag. Any thoughts on why this is? > Because Rails magically converts "recipe[ title ]" into recipe[" title "] And " title " != "title" But, for the future, you would do better to direct Rails questions to the Rails mailing list. -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools