search for: resourcecontrol

Displaying 13 results from an estimated 13 matches for "resourcecontrol".

2008 Mar 16
3
undefined method `redirect_to'
...I''m getting the following error in my app: undefined method `redirect_to'' for ActionController::Base:Class I''m using Windows 2000, Rails 2.0.2 and resource_controller (from James Golick). My controller: class CommentsController < ApplicationController include ResourceController::Controller belongs_to :post, :article, :photo create do ActionController::Base.redirect_to :back end end I''ve been also trying to use the following: class CommentsController < ResourceController::Base belongs_to :post, :article, :photo create do Action...
2008 Oct 25
1
Returning a variable to before_filter
I know its probably doesnt sound right, but I am trying to call a before_filter method that will check whats the user role and then based on that return a string / hash / array to the before_filter something like this: class MonqiClassesController < ResourceController::Base before_filter :check_user_access_level , grant_access def check_user_access_level if current_user.has_role?(''staff'') return grant_access = {:only => :index} end end end i am planing on using case and then return the set of actions they can prefor...
2010 Jan 25
9
skinny Controllers, fat models with REST?
Hi, I''m really new to rails, so i programmed some stuff and today i read some things about skinny Controllers, fat models. My Controllers are really fat now. So i''m asking myself how can i shrink my controllers and move the code to the models, especially in fact of REST e.g. in focus on error codes? code example: # POST /tasks # POST /tasks.xml def create @authorized
2007 Dec 27
6
ActiveResource and (polymorphic) associations
Hi, I''m just playing with ActiveResource and I did''nt find anything about the support of (polymorphic) associations. Is there a support at all? Thanks in advance --~--~---------~--~----~------------~-------~--~----~ 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
2018 Nov 12
1
virsh reboot "in shutdown" state?
...sbredir -device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 -chardev spicevmc,id=charredir1,name=usbredir -device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on 2018-11-12T13:36:44.112904Z qemu-system-x86_64: -chardev pty,id=charserial0: char device redirected to /dev/pts/3 (label charserial0) 2018-11-12T13:37:35.867474Z qemu-system-x86_64: terminating on signal 15 from pid 597 (/usr/bin/libvirtd) 2018-11-12 13:37:36.192+0000: shutti...
2008 May 14
7
A copy of XX has been removed from the module tree but is still active!
I have a class in my /lib/ directory called tracker.rb It''s function is to receive an array of URLs and then perform 4 separate tasks on each URL Each of the 4 tasks gets it''s own thread. the class is called from my controller like: output = Tracker.go([array_of_urls]) Sometimes, when it hits an exception, instead of just dieing gracefully, my logs repeatedly display: A
2006 Oct 07
0
should_have_tag: What am I doing wrong?
My spec contains: response.should_have_tag "<legend>", :content => "Add new Contact" The output is: Spec::Expectations::ExpectationNotMetError in ''The ResourceController should do something when I try to edit contacts'' .. <legend>Add new Contact</legend> .. should include [[{:content=>"Add new Contact", :tag=>"<legend>"}]] This looks right to me... Jay Levitt
2020 Oct 14
2
scsi passthrough differs between guests
Greetings, I have two machines running the same distro, both running qemu 5.1.0, one runs libvirt 6.7.0, the other 6.8.0. I've decided to test the viability of passing through my sata cdrom into a vm, so I went to the libvirt docs, read a bit and added the following to a debian10 uefi vm running on libvirt 6.8.0: <controller type='scsi' index='0'
2020 Oct 15
2
Re: scsi passthrough differs between guests
...,channel=0,scsi-id=0,lun=0,drive=drive-hostdev0,id=hostdev0 \ -device virtio-balloon-pci,id=balloon0,bus=pci.5,addr=0x0 \ -object rng-random,id=objrng0,filename=/dev/urandom \ -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.6,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on the bad one: /usr/bin/qemu-system-x86_64 \ -name guest=streamer-vm-q35,debug-threads=on \ -S \ -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-12-streamer-vm-q35/master-key.aes \ -blockdev '{"driver":"file","filename&q...
2008 Jan 26
0
RSpec and resource_controller plugin
...end # DELETE /hardways/1 # DELETE /hardways/1.xml def destroy @hardway = Hardway.find(params[:id]) @hardway.destroy respond_to do |format| format.html { redirect_to(hardways_url) } format.xml { head :ok } end end end To this: class EasywaysController < ResourceController::Base end And the helpers make it dead easy to use these resource controllers polymorphically (i.e. with multiple parent resources using for example AR polymorphic associations) or in both nested and unnested forms. Anyway, in case you can''t tell, I''m pretty pumped about the...
2020 May 13
0
Running libvirtd inside chroot (mock to be precise)
...pty,id=charconsole0 -device virtconsole,chardev=charconsole0,id=console0 -device cirrus-vga,id=video0,bus=pci.0,addr=0x2 -object rng-random,id=objrng0,filename=/dev/urandom -device virtio-rng-pci,rng=objrng0,id=rng0,bus=pci.0,addr=0x9 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on 2020-05-13 08:56:51.643+0000: Domain id=1 is tainted: high-privileges 2020-05-13 08:56:51.643+0000: Domain id=1 is tainted: host-cpu libvirt: QEMU Driver error : internal error: Unable to find any /dev mount 2020-05-13 08:56:51.654+0000: shutting down, reason=failed And thi...
2020 Aug 15
2
unable to migrate non shared storage in tunneled mode
...0 \ -chardev pty,id=charserial0 \ -device isa-serial,chardev=charserial0,id=serial0 \ -vnc 127.0.0.1:2 \ -device VGA,id=video0,vgamem_mb=16,bus=pcie.0,addr=0x1 \ -incoming defer \ -device virtio-balloon-pci,id=balloon0,bus=pci.3,addr=0x0 \ -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \ -msg timestamp=on char device redirected to /dev/pts/5 (label charserial0) Receiving block device images Error unknown block device 2020-08-15T21:23:39.278287Z qemu-system-x86_64: error while loading state section id 1(block) 2020-08-15T21:23:39.278422Z qemu-system-x86_64: load of migration...
2009 Jun 22
1
getting error can't modify frozen hash
Hi, When I upgraded my rails application to rails 2.3.2 I am getting error ''can''t modify frozen hash'' on using @something.update_attribute(params[:something]). Can anyone help me who is familiarize with this bug? Thanks,