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!
--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sat, Jan 7, 2012 at 11:23 PM, Francesca Krihely <francesca-Ot75HdpNzd8AvxtiuMwx3w@public.gmane.org>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 received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 Quarite <jquarites-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > On Sat, Jan 7, 2012 at 11:23 PM, Francesca Krihely <francesca-Ot75HdpNzd8AvxtiuMwx3w@public.gmane.org>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 received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- *Francesca Krihely | **Community Marketing Manager | **10gen* *@francescapasha <http://twitter.com/francescapasha> | **@mongoDB<http://twitter.com/mongoDB> * *Skype: FrancescaMongoDB* * * *Are you watching your clusters? Keep track with MongoDB Monitoring Service<http://www.10gen.com/mongodb-monitoring-service> * *We''re hiring! Come build great things with us 10gen.com/careers* -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.