similar to: engines causing problems with mocks

Displaying 20 results from an estimated 300 matches similar to: "engines causing problems with mocks"

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 Feb 27
5
the best open source OS for Rails?
I''m rigging up some virtual machines in VMware to test out a new production configuration. Up till now I''ve been using Ubuntu Breezy Server distribution pre- installed on dedicated boxes by the hosting company, but in this 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
2006 Feb 20
9
a complex availability problem
Ok, this is a hard one and I just thought I''d see if people on the list had any suggestions on how they would approach this, I''ve not started to implement the rails to handle this yet as I''m still at the paper planning phase. I''m building an app that has to handle availability for travel packages. The complexity comes in that a person can choose a start
2006 Mar 01
2
In_place_editor in a For loop
I''m using Ajax to create a list of items. Once these items have been created the user can edit in place and delete them. I''ve got the ajax working for delete and removing the element from the page, but the in_place_editor_field doesn''t seem to like being in a for loop. I''ve got in_place_editor working for single items, but what''s the syntax
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
2006 Mar 03
2
strip html
say i wanted to allow only certain html characters from my user submissions, and strip everything else. does rails have a built-in for this?
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
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
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/.
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
2007 Oct 24
8
validates_confirmation_of not working
Hello to everyone, Well, very frustrated with this one because I am following the example straight from the documentation and it is not working. First when I try: validates_confirmation_of :password, :on => :password_update (password_update is a def in my User model which works fine without this validation in please) I get the following error: TypeError in UsersController#update_password
2006 May 09
2
A rails CMS
A client has posed me the task of creating a CMS for a customer facing website using Ruby on Rails. Are there any such projects already underway? If not, is a basic CMS going to be too much for one developer to handle? (I can probably outsource a bit but the budget isn''t massive) The project is scheduled to last for 3 months and will probably involve some basic marketing pages,
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
2006 Mar 03
68
Agile Web Development with Rails 1.1
Dave, on another topic, might I recommend that you and DHH publish an updated version of the Agile guide right away when 1.1 comes out? You could reuse much of your material and it would do a lot of good to help make sure there is still a good centralized source of reference for Rails. Without that book, there really is not a good one-stop source of information for people to learn how to use
2006 Jul 04
1
Changing default word separator in URLs?
At the moment, if you put a string into parameters in a URL Rails will delimit them using + E.g. The title of a page might be "My Great New Page", Rails maps it nicely onto myapp.com/My+Great+New+Page - and then handles this when used at the destination action. Does anyone know if the + character can be swapped for a hypen -, a plugin or custom function that overrides the Rails