Another Update When the application is running when i change auto_actions :all to auto_actions :none it works. but upon application restart , it crashes again
are we supposed to have auto_actions :all on regular controller too ? Vivek On Wednesday, January 9, 2013 11:26:59 PM UTC+5:30, Vivek Sampara wrote: > > Hi guys, > > Found something a bit weird today. > > What i wanted - Hospital Resource not available to normal users but only > available to Admin > What i did - Deleted app/controllers/hospitals_controller.rb ( auto > generated ) > Created app/controllers/admin/hospitals_controller.rb > > > /admin/hospitals/new - works > /admin/hospitals/1/edit - works > /admin/hospitals/1/delete - works > /admin/hospitals/ - Crashes > > undefined method `hospital_path' for #<#<Class:0x9d0a51c>:0x9d1dc48> > > > dryml (2.0.0.pre7) lib/dryml/template_environment.rb:642:in `method_missing' > actionpack (3.2.10) lib/action_dispatch/routing/polymorphic_routes.rb:129:in > `polymorphic_url' > actionpack (3.2.10) lib/action_dispatch/routing/polymorphic_routes.rb:135:in > `polymorphic_path' > > > > Its very easy to reproduce , so im not putting up the full stack trace. > > Later on I put back my regular controller and change auto_actions :all > to auto_actions :none > > It did fix the issue and got me what i wanted . but want to understand > whats causing the crash. > > Admin::HospitalsController < ApplicationController #inherits directly from > ApplicationController and not HospitalsController > > > Thanks > Vivek > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/Hrv6XLJmfaUJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
