Displaying 20 results from an estimated 400 matches similar to: "a complex availability problem"
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
2007 May 09
3
engines causing problems with mocks
As I delve further into using engines and rspec together I am
noticing more strange issues.
describe "Requesting /admin/collections using get" do
controller_name :admin_collections
before(:each) do
Collection.stub!(:paginate)
end
it "should return a collection of collection objects" do
get ''index''
response.should be_success
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 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/.
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 09
4
habtm questions
I''ve got some of this working but other parts are ellusive.
I have
CREATE TABLE `bags` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '''',
PRIMARY KEY (`id`)
CREATE TABLE `packages` (
`id` int(255) NOT NULL auto_increment,
`name` varchar(255) NOT NULL default '''',
PRIMARY KEY (`id`)
CREATE TABLE
2012 Apr 19
1
active admin undefined method `' for nil:NilClass
im working with active admin i have collection_select or dropdown box
that populates the packages and crews im just wondering i why this
undefined method `[]'' for nil:NilClass`
i dont know what happened but it run few days ago and tested it once but
now it raises this error are there possible way to solve this?
def create
@package = Package.find(params[:package_crew][:package_id])
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
2005 Dec 15
2
efficient INSERTS
Hi,
I''ve got the following models:
Company
Package
with a habtm relationship.
In my controller, I have a ''dispatch'' action which does the following
@companies.each do |company|
@packages.each do |package|
company.packages.push_with_attributes(package, :sent_on => Time.now)
end
end
my table ''companies_packages'' therefore lists which
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
2009 Feb 02
9
ActiveRecord Unexplainable SystemStackError - Only in WEBrick
This SystemStackError is driving me crazy. It only takes place when
testing with WEBrick - I can''t reproduce it with any tests. It is
caused by calling the "missing" id method (base.rb:2435) on my
ActiveRecord class.
WEBrick and my tests are running as the same user, with a `ulimit -s`
of 10240. Plus the query works sometimes so I don''t think this
matters.
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 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 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
2011 Sep 04
2
has_many :through basic fubar
I''m trying to do, what seems like, a very basic join. However, the
association just doesn''t seem to work. I''m sure it''s something very
simple but I don''t know what.
class Role < ActiveRecord::Base
belongs_to :packages
belongs_to :users
end
class Package < ActiveRecord::Base
has_many :roles
has_many :users, :through => :roles
end