hello, I am trying to deploy a rails 3.1 app to Heroku and need to run db:seed My seeds file has this code User.seed do |s| s.email = "temp-bTQkdIJrLO8@public.gmane.org" s.password = "bigsecret" s.password_confirmation = "bigsecret" end Running rake db:seed locally works fine, but after deployment to Heroku I try to run this seed file and get error: undefined method `seed'' for #<Class:0x00000006499ac0> Any ideas why Heroku does not like my seed file? thanks -- 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.
Pls try out this heroku:rake:db:seed On 08/11/11 3:16 AM, "slava" <mikerin.slava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:>hello, >I am trying to deploy a rails 3.1 app to Heroku and need to run >db:seed >My seeds file has this code > >User.seed do |s| > s.email = "temp-bTQkdIJrLO8@public.gmane.org" > s.password = "bigsecret" > s.password_confirmation = "bigsecret" >end > >Running rake db:seed locally works fine, but after deployment to >Heroku I try to run this seed file and get error: > >undefined method `seed'' for #<Class:0x00000006499ac0> > >Any ideas why Heroku does not like my seed file? > >thanks > >-- >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 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.
Opps my mistake try out this heroku rake db:seed On 09/11/11 10:36 AM, "Rameshwar Vyevhare" <rameshwar-RurJdf2q/3b81YoFknqbq1pr/1R2p/CL@public.gmane.org> wrote:>Pls try out this heroku:rake:db:seed > >On 08/11/11 3:16 AM, "slava" <mikerin.slava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>hello, >>I am trying to deploy a rails 3.1 app to Heroku and need to run >>db:seed >>My seeds file has this code >> >>User.seed do |s| >> s.email = "temp-bTQkdIJrLO8@public.gmane.org" >> s.password = "bigsecret" >> s.password_confirmation = "bigsecret" >>end >> >>Running rake db:seed locally works fine, but after deployment to >>Heroku I try to run this seed file and get error: >> >>undefined method `seed'' for #<Class:0x00000006499ac0> >> >>Any ideas why Heroku does not like my seed file? >> >>thanks >> >>-- >>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 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.
heroku:rake:db:seed command does not exist. Are you sure about this sintax? On Tue, Nov 8, 2011 at 9:06 PM, Rameshwar Vyevhare <rameshwar-RurJdf2q/3b81YoFknqbq1pr/1R2p/CL@public.gmane.org> wrote:> Pls try out this heroku:rake:db:seed > > On 08/11/11 3:16 AM, "slava" <mikerin.slava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >>hello, >>I am trying to deploy a rails 3.1 app to Heroku and need to run >>db:seed >>My seeds file has this code >> >>User.seed do |s| >> s.email = "temp-bTQkdIJrLO8@public.gmane.org" >> s.password = "bigsecret" >> s.password_confirmation = "bigsecret" >>end >> >>Running rake db:seed locally works fine, but after deployment to >>Heroku I try to run this seed file and get error: >> >>undefined method `seed'' for #<Class:0x00000006499ac0> >> >>Any ideas why Heroku does not like my seed file? >> >>thanks >> >>-- >>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 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I did. This is the code that has problems, that I described in first post. Running heroku rake db:seed is what caused the problem in the first place. On Tue, Nov 8, 2011 at 9:08 PM, Rameshwar Vyevhare <rameshwar-RurJdf2q/3b81YoFknqbq1pr/1R2p/CL@public.gmane.org> wrote:> Opps my mistake try out this heroku rake db:seed > > On 09/11/11 10:36 AM, "Rameshwar Vyevhare" <rameshwar-RurJdf2q/3b81YoFknqbq1pr/1R2p/CL@public.gmane.org> > wrote: > >>Pls try out this heroku:rake:db:seed >> >>On 08/11/11 3:16 AM, "slava" <mikerin.slava-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >>>hello, >>>I am trying to deploy a rails 3.1 app to Heroku and need to run >>>db:seed >>>My seeds file has this code >>> >>>User.seed do |s| >>> s.email = "temp-bTQkdIJrLO8@public.gmane.org" >>> s.password = "bigsecret" >>> s.password_confirmation = "bigsecret" >>>end >>> >>>Running rake db:seed locally works fine, but after deployment to >>>Heroku I try to run this seed file and get error: >>> >>>undefined method `seed'' for #<Class:0x00000006499ac0> >>> >>>Any ideas why Heroku does not like my seed file? >>> >>>thanks >>> >>>-- >>>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 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@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- 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@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.