search for: entity_legal_name

Displaying 3 results from an estimated 3 matches for "entity_legal_name".

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:20 expected #<ActiveSupport::Multibyte::Chars:0x2b4bb29e73d8 @wrapped_strin...
2008 Apr 08
1
Help with primary_key_prefix_type
...cord.primary_key_prefix_type = :table_name_with_underscore I have this migration: class CreateEntities < ActiveRecord::Migration def self.up create_table :entities do |t| t.string :entity_name, :null => false, :limit => 40 t.string :entity_legal_name, :null => false, :limit => 120 t.string :entity_legal_form, :null => false, :limit => 4 t.timestamps end add_index :entities, :entity_name, :name => :idxU_entities_entity_name, :uniqu...
2008 Mar 08
9
Validation error handling on related models
...>Editing client <%= @entity.id unless @entity.new_record? %></h1> <%= error_messages_for :client %> <% form_for(@client) do |cu| %> <% fields_for @entity do |en| %> Name <%= en.text_field :entity_name %> <br />Legal name <%= en.text_field :entity_legal_name %> <br />Legal form <%= en.text_field :entity_legal_form %> <% end %> <br />Credit Policy <%= cu.text_field :client_credit_policy %> <br />Credit Terms <%= cu.text_field :client_credit_terms %> ... <p> <%= cu.submit "Updat...