Hello, please help me with one little error that I have here. I have created database structure, than generated scaffold for it (script/ generate scaffold Artist). But when I try to use it, all i have is this (db contains t records): ----- Listing artists Show Edit Destroy Show Edit Destroy Show Edit Destroy New artist ----- The same with "New artist" - it just shows the submit button but no input forms. What is wrong ? Why doesnt it show data ? Thanx for reply in advance. -- 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 Sun, Jul 11, 2010 at 4:31 AM, DrSney <drsney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, please help me with one little error that I have here. I have > created database structure, than generated scaffold for it (script/ > generate scaffold Artist).> What is wrong ? Why doesnt it show data ?What would you expect it to show if you''re not created any attributes for the Artist model? -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org twitter: @hassan -- 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.
Did you rake db:migrate? On Jul 11, 7:31 am, DrSney <drs...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hello, please help me with one little error that I have here. I have > created database structure, than generated scaffold for it (script/ > generate scaffold Artist). But when I try to use it, all i have is > this (db contains t records): > ----- > Listing artists > Show Edit Destroy > Show Edit Destroy > Show Edit Destroy > > New artist > ----- > The same with "New artist" - it just shows the submit button but no > input forms. What is wrong ? Why doesnt it show data ? > Thanx for reply in advance.-- 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.
yes, of course. On 11 čnc, 16:26, Agoofin <thebserv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Did you rake db:migrate? > > On Jul 11, 7:31 am, DrSney <drs...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hello, please help me with one little error that I have here. I have > > created database structure, than generated scaffold for it (script/ > > generate scaffold Artist). But when I try to use it, all i have is > > this (db contains t records): > > ----- > > Listing artists > > Show Edit Destroy > > Show Edit Destroy > > Show Edit Destroy > > > New artist > > ----- > > The same with "New artist" - it just shows the submit button but no > > input forms. What is wrong ? Why doesnt it show data ? > > Thanx for reply in advance.-- 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.
Could you show us your migration file here? On Mon, Jul 12, 2010 at 4:07 PM, DrSney <drsney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> yes, of course. > > On 11 čnc, 16:26, Agoofin <thebserv...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Did you rake db:migrate? > > > > On Jul 11, 7:31 am, DrSney <drs...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hello, please help me with one little error that I have here. I have > > > created database structure, than generated scaffold for it (script/ > > > generate scaffold Artist). But when I try to use it, all i have is > > > this (db contains t records): > > > ----- > > > Listing artists > > > Show Edit Destroy > > > Show Edit Destroy > > > Show Edit Destroy > > > > > New artist > > > ----- > > > The same with "New artist" - it just shows the submit button but no > > > input forms. What is wrong ? Why doesnt it show data ? > > > Thanx for reply in advance. > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@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.