From: Rail Shafigulin Date: 2010-12-21T09:36:28+09:00 Subject: creating an object i'm somewhat new to rails and ruby. whenever i create a new object in ruby i use o = ClassName.new but recently i bumped into the following code (in rails) rating = Rating.new(:rating => params[:rating]) i can't understand what it means. i looked at the class definition for Rating and didn't see any attributes or methods named rating. i also didn't see the constructor in there (i.e. initialize method) i would really appreciate if someone offer an explanation of what is happening and if there are more ways of creating an object. any help is appreciated -- Posted via http://www.ruby-forum.com/.