Zach Dennis wrote:

> 
> m = MyModel.new :name => "foo"
> m["name"]      # => "foo"
> 
> http://www.railsbrain.com/api/rails-2.2.2/doc/index.html?a=M001972&name=[]
> 
> On a different note, how about some better variable names?

That code was for demonstration purposes for this question only.
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to