Hi Chris, Oh, I don't have a Seller model. The Seller object I was trying to instantiate was an amatch class inside of my Response model. Sorry for the confusion.
I guess what I'm trying to say is: is there any way to instantiate the amatch Seller class in the console, after you have create a new Response object (which is the model - response.rb)? Also, I tried accessing my views in my browser and got this error: NameError in Games#show Showing app/views/games/show.html.erb where line #8 raised: uninitialized constant Response::Amatch Extracted source (around line #8): 5: </p> 6: <h2>Responses</h2> 7: 8: <% @game.responses.each do |r| %> 9: <p> 10: <b><%=h r.title %></b><br /> 11: <%= time_ago_in_words(r.created_at) %> ago Any thoughts on what could be the problem? I tried adding the include Amatch in my Game model as well, but got this error: NameError in GamesController#show uninitialized constant Game::Amatch Thanks again! Chris Mear wrote: > On 14 August 2010 16:05, Ze Ca <[email protected]> wrote: >>>> appreciated! >>> require 'amatch' >> Thank you for the reply. putting the include under the model class, >> however, I created a new object of my model, Responses: >> end >> >> That makes sense to me. I'm just curious why I wasn't able to make a new >> Sellers object in the first page? > > Did you restart or reload your console after making the change to > seller.rb? Sometimes there are changes that the console doesn't pick > up until you reload it. > > Chris -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

