I am new to active admin. I am using rails 3 and I create one resource called product with the field of Name, Price, category.It runs good with simple users but when i log in to admin and try to create new product then it gives me error like Error --------- Mysql2::Error in Admin/products#show Showing * /usr/lib/ruby/gems/1.8/gems/activeadmin-0.3.4/app/views/active_admin/resource/show.html.arb * where line *#1* raised: Table ''demo2_development.active_admin_comments'' doesn''t exist Extracted source (around line *#1*): 1: render renderer_for(:show) Rails.root: /home/urjit/rails_project/demo2 Application Trace <http://localhost:3000/admin/products/3#> | Framework Trace <http://localhost:3000/admin/products/3#> | Full Trace<http://localhost:3000/admin/products/3#> Request *Parameters*: {"id"=>"3"} Show session dump <http://localhost:3000/admin/products/3#> Show env dump <http://localhost:3000/admin/products/3#> Response *Headers*: None I think it is because there is no comment field in my database. Is there any way to generate active_admin like devise? If there then please tell me the command. please tell me what to do? Thank you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/DALU7oeE2N0J. 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.
have u ran command rake db:migrate On Tue, Dec 20, 2011 at 3:43 PM, guru <urjit.rajgor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I am new to active admin. I am using rails 3 and I create one resource > called product with the field of Name, Price, category.It runs good with > simple users but when i log in to admin and try to create new product then > it gives me error like > > Error > --------- > Mysql2::Error in Admin/products#show > > Showing * > /usr/lib/ruby/gems/1.8/gems/activeadmin-0.3.4/app/views/active_admin/resource/show.html.arb > * where line *#1* raised: > > Table ''demo2_development.active_admin_comments'' doesn''t exist > > Extracted source (around line *#1*): > > 1: render renderer_for(:show) > > Rails.root: /home/urjit/rails_project/demo2 > Application Trace <http://localhost:3000/admin/products/3#> | Framework > Trace <http://localhost:3000/admin/products/3#> | Full Trace<http://localhost:3000/admin/products/3#> > > Request > > *Parameters*: > > {"id"=>"3"} > > Show session dump <http://localhost:3000/admin/products/3#> > > Show env dump <http://localhost:3000/admin/products/3#> > Response > > *Headers*: > > None > > > > > I think it is because there is no comment field in my database. > Is there any way to generate active_admin like devise? > If there then please tell me the command. > please tell me what to do? > Thank you. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/rubyonrails-talk/-/DALU7oeE2N0J. > 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. >-- sαη∂ιρ Rαηѕιηg --- www.funonrails.com twitter, github @sandipransing skype sandip.ransing -- 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 i have I think it is because there is no comment field in my database and active admin show page is going for the comment and not found comment in database. is there anyway to generate views in active admin? -- 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 active admin migrations first and then need to migrate those tables in db. On Tue, Dec 20, 2011 at 4:00 PM, guru <urjit.rajgor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > yes i have > I think it is because there is no comment field in my database and > active admin show page is going for the comment and not found comment > in database. > is there anyway to generate views in active admin? > > -- > 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. > >-- sαη∂ιρ Rαηѕιηg --- www.funonrails.com twitter, github @sandipransing skype sandip.ransing -- 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.
rails generate active_admin:install rake db:migrate On Tue, Dec 20, 2011 at 4:06 PM, sandip ransing <sandip-cm2wsEbV6oregbzhZkK2zA@public.gmane.org>wrote:> You have to generate active admin migrations first and then need to > migrate those tables in db. > > > On Tue, Dec 20, 2011 at 4:00 PM, guru <urjit.rajgor-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > >> >> yes i have >> I think it is because there is no comment field in my database and >> active admin show page is going for the comment and not found comment >> in database. >> is there anyway to generate views in active admin? >> >> -- >> 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. >> >> > > > -- > sαη∂ιρ Rαηѕιηg > > --- > www.funonrails.com > > twitter, github @sandipransing > skype sandip.ransing > >-- sαη∂ιρ Rαηѕιηg --- www.funonrails.com twitter, github @sandipransing skype sandip.ransing -- 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 am doing exactly that. I have run rails generate active_admin:install rake db:migrate command. there is command like rails generate devise_views is there command for active_admin??? -- 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.