Nirav
2012-Oct-11 06:19 UTC
Getting error while submitting form in ruby on rails with radiant
I have issues with radiant cms version 0.8.2.In Application,when i click on submit on form application got an error uninitialized controller which is in radiant/app/controller. error : NameError (uninitialized constant ResourceController): vendor/extensions/smart/app/controllers/quote_requests_controller.rb:1 /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service'' /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun'' /usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:162:instart'' /usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread'' /usr/lib/ruby/1.8/webrick/server.rb:95:instart'' /usr/lib/ruby/1.8/webrick/server.rb:92:in each'' /usr/lib/ruby/1.8/webrick/server.rb:92:instart'' /usr/lib/ruby/1.8/webrick/server.rb:23:in start'' /usr/lib/ruby/1.8/webrick/server.rb:82:instart'' ResourceController is in radiant/app/controllers/admin/resource_controller.rb and in the first line of quote_requests_controller.rb, "class QuoteRequestsController < ResourceController::Base" is there. rails 2.3.14 ruby 1.8.7 rubygems-update (1.4.2) radiant 0.8.2 i was done googling for this issue please help me to figure out error. Thanking You, Nirav -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Fn0Jw71HTiAJ. For more options, visit https://groups.google.com/groups/opt_out.
Nirav
2012-Oct-11 11:26 UTC
Re: Getting error while submitting form in ruby on rails with radiant
i tried little bit but it doesn''t helpful to me (with the help of googling and stackoverflow suggestions ): 1. "class Admin::ResourceController < ApplicationController" this is in resource_controller.rb file. and i also tried to put resource_controller.rb file out of admin. but it gives error LoadError (Expected /home/ec2-user/rubygems-1.4.2/new/vendor/radiant/app/controllers/resource_controller.rb to define ResourceController): vendor/extensions/smartmove/app/controllers/quote_requests_controller.rb:1 2. i also tried to replace "class QuoteRequestsController < ResourceController::Base" to "class QuoteRequestsController < Admin::ResourceController" but still it gets an error will be same and i search by googling to add require "resource_controller" in top of the controller but it doesn''t help to solve an error. Thanking You, Nirav On Thursday, October 11, 2012 11:49:32 AM UTC+5:30, Nirav wrote:> > I have issues with radiant cms version 0.8.2.In Application,when i click > on submit on form application got an error uninitialized controller which > is in radiant/app/controller. > > error : > > NameError (uninitialized constant ResourceController): > vendor/extensions/smart/app/controllers/quote_requests_controller.rb:1 > /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in service'' > /usr/lib/ruby/1.8/webrick/httpserver.rb:65:inrun'' > > /usr/lib/ruby/1.8/webrick/server.rb:173:in start_thread'' > /usr/lib/ruby/1.8/webrick/server.rb:162:instart'' > > /usr/lib/ruby/1.8/webrick/server.rb:162:in start_thread'' > /usr/lib/ruby/1.8/webrick/server.rb:95:instart'' > > /usr/lib/ruby/1.8/webrick/server.rb:92:in each'' > /usr/lib/ruby/1.8/webrick/server.rb:92:instart'' > > /usr/lib/ruby/1.8/webrick/server.rb:23:in start'' > /usr/lib/ruby/1.8/webrick/server.rb:82:instart'' > > ResourceController is in > radiant/app/controllers/admin/resource_controller.rb > > and in the first line of quote_requests_controller.rb, "class > QuoteRequestsController < ResourceController::Base" is there. > > rails 2.3.14 ruby 1.8.7 rubygems-update (1.4.2) radiant 0.8.2 > > i was done googling for this issue please help me to figure out error. > > Thanking You, > > Nirav >-- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/Bo4luwSQrSgJ. For more options, visit https://groups.google.com/groups/opt_out.