Frederick Cheung wrote in post #985716:
> On Mar 6, 1:45am, Manny 777 <[email protected]> wrote:
> So at the rails console, what does Test.all returns? is your record
> actually in the right database/collection?
>
> Fred

Hmm...maybe here could be the problem, because I don't know, how to 
specific collection, from which I want to showing dates...

Current situation:

controller
--------
class TestController < ApplicationController
  def index
    @tests=Testt.all
  end
end

model
-----
class Testt
  include MongoMapper::Document
  key :name, String
end

mongo.rb
---------
MongoMapper.database = "mydb"

And the dates are stored in "mydb" database in a collection called 
"people". And if I see on my code, I am not see the setup of collection 
"people", where are stored dates... So the problem could be perhaps 
here... but in tutorials I am not see specific the collection, from they 
show data...

Or the names of models, controllers and the collections must be the 
same?

-- 
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.

Reply via email to