search for: smalley

Displaying 20 results from an estimated 45 matches for "smalley".

Did you mean: smaller
2006 Feb 19
8
uninitialized constant RailsFCGIHandler
Hello, I''m trying to switch to FastCGI. With CGI everything works, but after have done all the steps of the wiki here (http://wiki.rubyonrails.org/rails/pages/RailsOnUbuntuDebianTestingAndUnstable) My application started to give me "Error 500" Looking at the Apache logs I can see : [notice] mod_fcgid: server /rails/public/dispatch.fcgi(6127) started
2006 Aug 10
7
Mongrel proxied through Apache won''t serve images
I followed the tutorial from Coda Hale[1] on setting up Mongrel/Mongrel_cluster and Apache to move away from my current Apache+FastCGI setup. The mongrels are all working fine, and Apache is proxying all dynamic requests through to the cluster using proxy balance. Strange thing is now, that all my images in public/images aren''t loading at all, if I access them directly I just get a
2007 Jun 24
6
mocking errors
What is the correct way to mock out the errors on a Rails model? I''m assuming i need to say @mock_thing = mock_model(Thing) @mock_thing_errors = mock("errors") @mock_thing_errors.should_receive(:full_messages).and_return("An error") @mock_thing.should_receive(:errors).and_return(@mock_thing_errors) Just wanted to check the best practice on this kind of thing and how
2007 Jun 25
5
strange mock error
I''m testing using the rspec mocking framework and rspec 1.0.5 and I''m getting the following strange error: #<Spec::Mocks::Mock:0x337f7c8> expected :set_defaults with (#<Service: 0x19c4040 @name="Service_1023">, {"1"=>"1", "2"=>"2"}) but received it with (#<Service:0x19c4040
2006 Feb 27
5
the best open source OS for Rails?
...scenario I am free to choose whatever OS I want. I''ve had some problems with Ubuntu Breezy (likes to call fastgi - fcgid etc.) and a low (1.8.2?) pre-packaged version of Ruby. What do people suggest for OS? Any of the Signals feel like sharing the OS their apps run on? :-) David Smalley w: http://davidsmalley.com/blog
2006 Mar 01
2
In_place_editor in a For loop
...s to this line of the javascript macro helper file: tag_options = {:tag => "span", :id => "#{object}_#{method}_# {tag.object.id}_in_place_editor", :class => "in_place_editor_field"}.merge!(tag_options) Any ideas on syntax to solve this? David David Smalley w: http://davidsmalley.com/blog
2006 Feb 20
9
a complex availability problem
...updated by a stored procedure after a booking is taken. However this completely violates data normalisation rules and potentially creates the update/delete errors that can arise from duplicating data and not keeping it atomic. Hope thats clear, I can try to clarify if not. David David Smalley w: http://davidsmalley.com/blog
2007 May 09
3
engines causing problems with mocks
...stub!(:paginate) end it "should return a collection of collection objects" do get ''index'' response.should be_success end end Gives me this error undefined method `callback_events'' for #<Class:Spec::Runner::Specification> /Users/davidsmalley/Development/incutio/skeleton/config/../vendor/ plugins/engines/lib/engines/rails_extensions/dependencies.rb:139 :in `require_or_load'' ./vendor/plugins/sor_core/spec/controllers/ admin_collections_controller_spec.rb:7 137 # if we managed to load a file, return true. If not, default...
2007 Mar 27
3
Stubbing out method for all instances
I am using the acts_as_state_machine plugin to control state of an object in my app, however when testing this I need to be able to stub out the guard conditions so that state will change when I fire off an event without depending on other models. Guard conditions simply return true or false so I have an instance method: def encoded? <check state of other objects> return true
2006 Feb 17
16
Booking system
Hi! I''m planning a booking system in rails, and I have the following issue: There will be room_types. I can implement this with STI in the rooms table, or with a separate table room_types. Each room type will have its special features. For example, a double room can be: -- Posted via http://www.ruby-forum.com/.
2007 Mar 15
7
greetings, and first question
Hi, Nice project. I saw the checkin for jbehave and I thought "SOLD!" One question, is there a reason that it cannot be installed using gem? It would make starting the server easy. Other people can also customize the server like they do with Jetty (which I think is the coolest servlet engine because of that). -- Shane http://www.shaneduan.com
2017 Dec 04
0
Fwd: Qwery regarding Selinux Change Id context
...*xguest_u user s0 s0 xguest_r* Looks like its related to some other issue. What you think about this. Thanks Aman On Sat, Dec 2, 2017 at 1:05 AM, Simon Sekidde <ssekidde at redhat.com> wrote: > > > ----- Original Message ----- > > From: "Stephen Smalley" <sds at tycho.nsa.gov> > > To: "Simon Sekidde" <ssekidde at redhat.com>, "Aman Sharma" < > amansh.sharma5 at gmail.com> > > Cc: "SELinux" <selinux at tycho.nsa.gov> > > Sent: Friday, December 1, 2017 2:28:17 PM > &g...
2006 Feb 16
0
Accessing Metaweblog API
...? Should I just leave the code in the controller? There is a brief mention in the pragmatic programmers rails book on creating models that do not inherit from ActiveRecord::Base, but this doesn''t give enough information to be able to suss this out. David ---------------------- David Smalley david.smalley@gmail.com
2009 Aug 14
0
[PATCH] xen/xsm/flask: Fix AVC audit message format
Fix formatting of Flask AVC audit messages so that existing policy tools can parse them. After applying, ''xm dmesg | audit2allow'' yields the expected result. Signed-off-by: Stephen D. Smalley <sds@tycho.nsa.gov> Signed-off-by: George S. Coker, II <gscoker@alpha.ncsc.mil> --- xen/xsm/flask/avc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/xen/xsm/flask/avc.c b/xen/xsm/flask/avc.c --- a/xen/xsm/flask/avc.c +++ b/xen/xsm/flask/avc.c @@ -226...
2006 Aug 06
1
Guide to new RESTful routing in Rails
Does anyone have any links to a comprehensive guide on the new routing in Edge Rails? I''m keen to integrate it into a new app and have read the Riding Rails post by Rick but would like to read a more comprehensive guide to its usage. -- Posted via http://www.ruby-forum.com/.
2006 Mar 05
9
Rails Development on a Mac Mini?
How many people out there are doing Rails development on a Mac Mini? I''ve been eyeing up the MacBook as well as the new MacMini trying to decide if I want to splurge. I''ve been doing very little Rails development thus far which makes the investment a little hard to justify. The Free Mini Mac ( http://minimacs.freepay.com/?r=16778073) offer seems like the best route but
2007 Mar 02
2
database modifications not rolling back
Hi, Since moving this morning from 0.7.5.1 to 0.8.2 I''ve hit some problems and I''m not sure if it''s something I''m doing wrong or a change in 0.8.2 Basically I dislike fixtures so I have been using a helper method to create an object I need frequently and setting it up in the setup method, in 0.7.5.1 this all worked fine - but since moving to 0.8.2
2006 Aug 19
4
acts_as_ferret causing strange behaviour
I posted this issue as a bug on the acts_as_ferret trac (http://projects.jkraemer.net/acts_as_ferret/ticket/36) but need to get this working asap. so hopefully someone can point me in the right direction. To try and sum this up in better terms than I used in the original bug report, the problem I am experiencing seems to be related to the fact I am using inheritance in my controllers. I
2011 Feb 07
0
[xen-unstable test] 5665: regressions - FAIL
...Przywara <andre.przywara@amd.com> George Dunlap <george.dunlap@eu.citrix.com> Ian Jackson <ian.jackson@eu.citrix.com> Juergen Gross <juergen.gross@ts.fujitsu.com> Keir Fraser <keir@xen.org> Stefano Stabellini <stefano.stabellini@eu.citrix.com> Stephen Smalley <sds@tycho.nsa.gov> Wei Huang <wei.huang2@amd.com> Wei Wang <wei.wang2@amd.com> ------------------------------------------------------------ jobs: build-i386-xcpkern pass build-amd64...
2009 May 03
6
[RFC] The reflink(2) system call.
Hi everyone, I described the reflink operation at the Linux Storage & Filesystems Workshop last month. Originally implemented as an ocfs2-specific ioctl, the consensus was that it should be a syscall from the get-go. Here's some first-cut patches. For people who have not seen reflink, either at LSF or on the ocfs2 wiki, the first patch contains Documentation/filesystems/reflink.txt to