search for: servicescontrol

Displaying 6 results from an estimated 6 matches for "servicescontrol".

Did you mean: servicecontrol
2009 Oct 19
3
routing namespaced controllers
...access to them using something like: http://localhost:3000/animals/1/production/services/1 or at least with: http://localhost:3000/animals/1/services/1 I tried the last one adding in routes.rb: map.resources :animals, :has_many => :services but it throws me an error: uninitialized constant ServicesController any idea? Thanks. -- Posted via http://www.ruby-forum.com/.
2007 Oct 16
2
Is Services a reserved word?
I want to have a controller/model called services_controller.rb/service.rb all went well, but then I tried to get a ''list'' view and I got this error... Message uninitialized constant ServicesController::Services Location /services/list Action list Controller services which worries me because it doesn''t say ServicesController::ApplicationController must I rename? ;-( -- Craig White <craig-CnJ8jr4MGtxl57MIdRCFDg@public.gmane.org> --~--~---------~--~----~------------~-------~...
2008 Jul 07
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
...rror_control="ignore", load_order_group="Primary disk", tag_id=3, start_n ame=nil, dependencies=nil, description=nil, :interactive?=false, pid=0, service_flags=0> If I do the same inside a Rails controller like this it dies: gem "win32-service" include Win32 class ServicesController < ApplicationController def index list render :action => "list" end def list # Enumerate over all services, inspecting each struct @services = Service.services end end The Error Message is as follows: NoMethodError in ServicesController#list undef...
2007 Jun 04
0
[ win32utils-Support Requests-11344 ] Can''t user win32-service inside of a Rails application
...rror_control="ignore", load_order_group="Primary disk", tag_id=3, start_n ame=nil, dependencies=nil, description=nil, :interactive?=false, pid=0, service_flags=0> If I do the same inside a Rails controller like this it dies: gem "win32-service" include Win32 class ServicesController < ApplicationController def index list render :action => "list" end def list # Enumerate over all services, inspecting each struct @services = Service.services end end The Error Message is as follows: NoMethodError in ServicesController#list undef...
2010 Oct 06
7
Passing a hash from the model to the view
I''m trying to display a drop-down menu by using an instance variable from a model. THIS WORKS... <div class="field"> <%= f.label :duration %><br /> <%= f.select ("duration", {"30 minutes" => "30", "1 hour" => "60"}, :prompt => "Select") %> </div> THIS DOESN''T
2008 Dec 09
4
HABTM checkboxes insert but don't delete
I have a problem related with the HABTM relationships with checkboxes. I''ve got a profile and a service model, both related with has_and_belongs_to_many. The problem is that i can insert new data in the profiles_services table, however, i cant delete already existing data. What could be the problem? --~--~---------~--~----~------------~-------~--~----~ You received this message