Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Omais's Profile

GitHub User: omaisali

Site: www.omaisali.com

Comments by Omais

Avatar

Hi
i'm using ActiveAdmin in my application. Reached to the dashboard page but when i have run "rails g active_admin:resource product" command, after that server is not running. I'm using Rails 3.2, Ruby 1.9.2. Can somebody help me... Thanks

/home/ali/MySite/app/admin/products.rb:1:in ': uninitialized constant Product (NameError) from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inblock in load!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:161:inload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/application.rb:187:in routes' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin.rb:78:inroutes' from /home/ali/MySite/config/routes.rb:2:in block in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:282:in eval_block' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:260:indraw' from /home/ali/MySite/config/routes.rb:1:in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inblock in load_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:40:inload_paths' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/routes_reloader.rb:16:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:108:inreload_routes!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:34:in reload!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activeadmin-0.4.3/lib/active_admin/reloader.rb:61:inblock in attach!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:429:in _run1902147173993390372prepare4025180163458367323callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in__run_callback' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in _run_prepare_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:inrun_callbacks' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:74:in prepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/actionpack-3.2.3/lib/action_dispatch/middleware/reloader.rb:48:inprepare!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application/finisher.rb:47:in block in module:Finisher' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:ininstance_exec' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:30:in run' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:55:inblock in run_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:in each' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/initializable.rb:54:inrun_initializers' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/application.rb:136:in initialize!' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:inmethod_missing' from /home/ali/MySite/config/environment.rb:5:in ' from /home/ali/MySite/config.ru:4:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:in instance_eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:51:ininitialize' from /home/ali/MySite/config.ru:1:in new' from /home/ali/MySite/config.ru:1:in' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:in eval' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/builder.rb:40:inparse_file' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:200:in app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:46:inapp' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:301:in wrapped_app' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/rack-1.4.1/lib/rack/server.rb:252:instart' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in start' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:55:inblock in ' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in tap' from /home/ali/.rvm/gems/ruby-1.9.2-p318/gems/railties-3.2.3/lib/rails/commands.rb:50:in' from script/rails:6:in require' from script/rails:6:in'