search for: company_nam

Displaying 20 results from an estimated 31 matches for "company_nam".

Did you mean: company_name
2006 Aug 07
1
Escape ''&'' in text_field_with_auto_complete
...n the name of the company (example Barnes & Nobel). The auto complete works beautifully. However, the problem arises when I pass the name of the company to the controller to use in searching the customers for the other information in the database relevant to the customer. Error result ==> :company_name => "Barnes ", :Nobel => "" Expected/Desired result ==> :company_name => "Barnes & Nobel" Code in view: <%= text_field_with_auto_complete :supplier, :company_name, { :size => "45", :value => @supplier.company_name }, :after_update_e...
2003 Apr 24
1
R 1.7.0 (Windows) Crashes After using "Install Package from Cran option" within
...<MATCHING_FILE NAME="advapi32.dll" SIZE="558080" CHECKSUM="0x7B6E5DDA" BIN_FILE_VERSION="5.1.2600.1106" BIN_PRODUCT_VERSION="5.1.2600.1106" PRODUCT_VERSION="5.1.2600.1106" FILE_DESCRIPTION="Advanced Windows 32 Base API" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft? Windows? Operating System" FILE_VERSION="5.1.2600.1106 (xpsp1.020828-1920)" ORIGINAL_FILENAME="advapi32.dll" INTERNAL_NAME="advapi32.dll" LEGAL_COPYRIGHT="? Microsoft Corporation. All rights...
2006 Dec 28
13
Sorting/Ordering Search Results
..._options.merge options options[:offset] = options[:limit] * (options.delete(:page).to_i-1) results = Member.find_by_contents(q, options, find_options) return [results.total_hits, results] end (controller) sortable_fields = [] sortable_fields << Ferret::Search::SortField.new(''company_name'') @total, @members = Member.full_text_search("Restaurants", {:page => (params[:page]||1), :sort => sortable_fields}, {:include => [:categories, :discounts], :order => ["members.company_name ASC"]}) -- Posted via http://www.ruby-forum.com/.
2013 May 02
1
trouble-with-capybara-and-rspec-on-a-new-model-spec
...ed)>'' Finished in 0.89134 seconds2 examples, 1 failure Failed examples: rspec ./spec/requests/mailer_pages_spec.rb:30 # Mailer pages mail us with valid information should send a mail Randomized with seed 17352 The model file is: class Mailer < ActiveRecord::Base attr_accessible :company_name, :contact_name, :address, :telephone, :email, :description before_save { |mailer| mailer.email = mailer.email.downcase } validates :company_name, length: { maximum: 50 } validates :contact_name, presence: true, length: { maximum: 40 } VALID_EMAIL_REGEX = /\A[\w+\-.]+@[a-z\d\-.]+\.[a-z]+\z/...
2009 Nov 06
0
Nested objects not propagating from view
...uot;email", :null => false t.string "password", :null => false t.integer "contact_id" t.datetime "created_at" t.datetime "updated_at" end create_table "contacts", :force => true do |t| t.string "company_name" t.integer "address_id" t.integer "phone_areacode", :limit => 3 t.integer "phone_prefix", :limit => 3 t.integer "phone_suffix", :limit => 4 t.integer "phone_extension", :limit => 5 t.string &qu...
2006 Mar 02
4
Getting Acts_as_Paranoid to work with validates_uniqueness_of
Hello I''ve been using Acts_as_Parnoid for a while and it has been working well but I am now having a slight issue with it. I have a company table were I would like to use validates_uniqueness_of :company_name. This validation works if a company exists in the database and has not been deleted. However, I also would like the validates_uniqueness_of to work if a company has previously been deleted and has been flagged in the deleted_at column. Currently, if a company has been deleted, it is...
2006 Jan 10
8
Noob: Child records not saved
Hi all, happily coding along, but it seems a belongs_to record is not saved. # Create some stuff def create_project @contact = Contact.new @project = Project.new(@params[''project'']) @project_contact = ProjectContact.new(@params[''collect'']) @project.project_contact = @project_contact contact =
2005 Dec 29
4
How to handle a non existing action in a controller?
Hello, i''m currently building a website in which i have to customise the url to the data. An example: i have a company which is situated in Amsterdam and it''s name is Ruby, then i would like to have the following URL: /companies/amsterdam/ruby/ But since there are a lot of cities that have companies i can''t make a define for all of these. How to fix? Thanks in
2005 Feb 16
4
Beginners Question
I''m just picking up rails...I''ve got a few questions. First, I''d like to get some input and parrot it back. I''m trying the following in my .rhtml file but it isn''t working. What am I missing here? <html> <head> <title>Search</title> </head> <body> <h1>Search for Filings</h1> <p> Use this page to
2008 Feb 24
3
1 error(s) on assignment of multiparameter attributes
...expiration, :start_year => 2008, :use_month_numbers => false, :discard_day => true, :include_blank => false) %></p> ActiveRecord::MultiparameterAssignmentErrors in AccountController#signup_unlimited Parameters: {"user"=>{"company_name"=>"", "card_type"=>"Mastercard", "password_confirmation"=>"", "card_number"=>"", "card_expiration(1i)"=>"2008", "first_name"=>"", "card_expiration(2i)&quo...
2007 Oct 13
13
Story Runner: Readability of output with multiple params
Fistly, many, many thanks for RSpec and Story Runner. Minor request to improve readability of output Given a scenario item with multiple params.. Eg. And "the user belongs to", "Joe", "Acme" do |user_name, company_name| The readability of the following output is less than ideal.. "And the user belongs to company,Joe Public, No Videos" It would be great if something like the following were possible. And "the user $1 belongs to $2", "Joe", "Acme" do |user_name, compan...
2008 Jan 28
2
Could this controller test be made simpler?
...(User) users = mock("Userlist") @account.stub!(:users).and_return(users) users.stub!(:build).and_return(@user) #since the form is repopulated the account mock must have stub for all the attributes @account.stub!(:subdomain).and_return("") @account.stub!(:company_name).and_return("") @account.stub!(:filename).and_return("") @user.stub!(:login).and_return("") @user.stub!(:email).and_return("") @user.stub!(:password).and_return("") @user.stub!(:password_confirmation).and_return("")...
2006 Jun 23
0
Re:(RESOLVED, KIND OF) auto complete and after update element
Well, I did finally get the after_update_element to call my controller action with the following syntax: <%= text_field_with_auto_complete ( :customer, :company_name, { :size => "45" }, :after_update_element => "function(element,value){" + remote_function( :url => { :action => :get_customer_info }, :with => "''customer=''+$F(''customer_company_name''...
2005 Sep 26
1
[Fwd: [Rails] Re: Autocomplete - setting a second value?]
...ontroller.rb: def auto_complete_for_supplier_name name = "%#{params[:supplier][:name].downcase}%" conditions = [] values = [] conditions << ''destroyed_at is null'' conditions << ''supplier = 1'' conditions << ''(company_name LIKE ? OR last_name LIKE ? OR first_name LIKE ?)'' 3.times { values << name } @suppliers = Party.find(:all, :limit => 15, :conditions => [conditions.join('' AND ''), values].flatten.compact, :order => %q(CONCAT_WS('' '', co...
2007 Oct 20
14
Problems with form_for and partials
i''m having problem with a form_for situation where i''m trying to DRY out the repeated parts of my forms and put them in common/form and render the form elements via another partial in controller_name/_form. Here''s the first form # app/views/common/form <% form_for ... do |f| -%> <%= render :partial => "params[:controller]/form", :object => f
2005 Sep 02
7
Form to update two tables
...L ----------- <%= start_form_tag :action=> "signup" %> <div title="Account signup" id="signupform" class="form"> <h3>Signup</h3> <%= error_messages_for ''user'' %><br/> <label for="company_name">Company:</lĀ­abel><br/> <%= text_field "company", "name", :size => 30 %><br/> <label for="user_login">Desired login:</label><br/> <%= text_field "user", "login", :size => 30 %>&...
2008 Jul 29
1
R crashes on new laptop
...FILE NAME="ig4icd32.dll" SIZE="2412544" CHECKSUM="0x50BD93D8" BIN_FILE_VERSION="6.14.10.4964" BIN_PRODUCT_VERSION="6.14.10.4964" PRODUCT_VERSION="6.14.10.4964" FILE_DESCRIPTION="OpenGL(R) Driver for Intel(R) Graphics Accelerator" COMPANY_NAME="Intel Corporation" PRODUCT_NAME="Intel Graphics Accelerator Drivers for Windows NT(R)" FILE_VERSION="6.14.10.4964" ORIGINAL_FILENAME="iglicd32" INTERNAL_NAME="OpenGL" LEGAL_COPYRIGHT="Copyright (c) 1998-2006 Intel Corporation." VERFILEDA...
2006 Nov 28
2
Twice the same code, but only once it seems to work
...; <%= end_form_tag %> <%= link_to ''Back'', :action => ''list'' %> in both _forms (resp. Dir and admin) ------------------------------- <%= error_messages_for ''company'' %> <!--[form:company]--> <p><label for="company_name">Name</label> <%= text_field ''company'', ''name'' %></p> <p><label for="company_adline">Adline</label> <%= text_field ''company'', ''adline'' %></p> <p><lab...
2006 May 26
5
scriptaculous - auto complete textbox with a drop down
Hi, I''m using scriptaculous to provide an auto complete textbox - and it works perfectly - but I was wondering if there was anyway to let users navigate the choices using the keyboard i.e the curor keys as opposed to having to use the mouse? Apart from that it''s perfect! :) Cheers, Pete -- Posted via http://www.ruby-forum.com/.
2005 Sep 22
6
Autocomplete - setting a second value?
I''m using the autocomplete function, and need a way to grab a second value from the ajax request... an example would probably speak better: This is my HTML: <input name="CustomerName" id="CustomerName" type="text" /> <div id="CustomerList"></div> <input name="CustomerID" id="CustomerID"