search for: myentity

Displaying 5 results from an estimated 5 matches for "myentity".

2009 Mar 09
10
Cucumber - RSpec matcher
I must be missing something obvious here but I cannot seem to see it. I have this step definition: When /entity named "(.*)" has a legal name "(.*)"/ do |name, legal| myentity = Entity.find_by_entity_common_name!(name.hll_keycase) myentity.entity_legal_name.should equal legal.hll_keycase end Which fails with this: And the entity named "Myuser" has a legal name "Myuser Legal Name" # features/app/models/entities/step_definitions/entity_steps.rb:...
2006 May 02
3
''NameError: uninitialized constant <MyEntity>'' in console
When I create a new model entity, and try to access it from the Rails console I get the error: >> b = Bar.new(:name => ''Some Bar'') NameError: uninitialized constant Bar from (irb):1 from :0 (My model class is called Bar, and is in file app/models/bar.rb) So, I try to load the model class file, and I run into a more frigtening error: >> load
2006 Apr 04
9
Does ActiveRecord have support for "Boolean" columns?
...#39; and ''n'' values for my Boolean columns in Rails, but it strikes me there should be a better way. How do you setup columns that represent true/false-ness in your schemas on Rails? Wondering what kind of standard approaches there are other than me writing something like class MyEntity < ActiveRecord::Base def active return false unless active==''y'' true end end -- Brendan Baldwin (dot com)
2008 Aug 31
6
why's my course_duration being reset
...date @enquiries = Enquiry.find(:all, :order => ''requested_start_date ASC'') end def list_not_responded # @enquiries = Enquiry.find(:all, :conditions => ''responded = null'', :order => ''requested_start_date ASC'') # entity = MyEntity.find_all_by_active(true) @enquiries = Enquiry.find_all_by_responded(false) end def show @enquiry = Enquiry.find(params[:id]) end def new @enquiry = Enquiry.new @courses = Course.active_courses @accomodations = Accomodation.active_accomodation # @enquiry.course_bo...
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...ts of Rails digest..." Today''s Topics: 1. Re: Rails MySQL Stored Procedure Fun (Paulie) 2. define the meaning of this error (bash) 3. Re: Re: Help: wrong number of arguments (0 for 1) (Jon Gretar Borgthorsson) 4. Re: ''NameError: uninitialized constant <MyEntity>'' in consol (Binil Thomas) 5. Pagination Question (Binil Thomas) 6. Re: rake doc:rails fails (Dave Thomas) 7. Re: posting xml in functional test (justin worrall) 8. depot test-driven development exercise (cremes.devlist@mac.com) 9. Re: pdf/writer: table.render_on be...