Migration trouble in the command line

Happy Saturday

Something weird is happening in my command line. After I create a
resource
and do the migration, there is none of the typical:

== CreatePosts: migrating

– create_table(:posts)
-> 0.0019s
== CreatePosts: migrated (0.0020s) ===

But rather :

MacBook-Air:twitterz fkrihely$ rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:schema:dump

When I try to run on the server, the server doesn’t recognize the routes
or
resources. What’s going on? My database seems fine.

Thanks for the help!

On Sat, Jan 7, 2012 at 11:23 PM, Francesca Krihely
[email protected]wrote:

Happy Saturday

Something weird is happening in my command line. After I create a resource
and do the migration, there is none of the typical:

So I guess you are doing

rails g resource Post …

right? or what was it?

Javier

Javier

You have to generate the scaffold because it generates the
models/views/controllers

I only use rails g resources when I have a many-to-many relation and it
only creates the model/controller

Glad you solve it =)

Javier

That was it! Thank you! I did it with the variable “user” but now I’m
looking into my ‘app’ folder and there’s nothing in the user layout,
even
though I generated the scaffold and the resource

Thanks

Francesca

On Sat, Jan 7, 2012 at 11:27 PM, Javier Q. [email protected]
wrote:


*Francesca Krihely | **Community Marketing Manager | *10gen
*@francescapasha http://twitter.com/francescapasha |
**@mongoDBhttp://twitter.com/mongoDB
*
Skype: FrancescaMongoDB
*
*
*Are you watching your clusters? Keep track with MongoDB Monitoring
Servicehttp://www.10gen.com/mongodb-monitoring-service
*
We’re hiring! Come build great things with us 10gen.com/careers

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs