Datamapper correctly creates the database in sqlite, but fails to persist an object to its table. The form returns the values and properly assigns them to the object, but the call to save the object fails. How do you determine why it failed so that I can correct the problem? I am a newbie to Ruby, Sinatra, Datamapper and Sqlite and any assistance would be greatly appreciated.
set the locale manually - this will be replaced with code to extract it from the subdomain
I18n.locale = :en
end
get '/' do
redirect "/residential/signup"
end
get '/residential/signup' do
@title = I18n.t('residential_signup_title')
erb :residential_signup
end
post '/residential/signup' do
@title = "Residential Signup"
@home_menu = "home"
@ce_logo = "../assets/images/ceLogo.png"
@lgraphic = "../assets/images/TmpResidentialGraphic.png"
@international_gif = "../assets/images/international.gif"
@page_content = "The data collected is:
"
@person = Person.new()
params[:post].each { |key, value| @person[key] = value }
if @person.save == false
@sub = "The save failed!"
else
@sub = "The save succeeded!"
end
session[:foo] = @person
session[:base_route] = "residential"
if params[:post][:submit] == I18n.t('privacy_policy_label')
redirect "/privacy_policy"
elsif params[:post][:submit] == I18n.t('cancel_btn_label')
redirect "/residential"
else
@page_content = "The data collected is:
" + " " + @sub
erb :index
end
end
Here is the view for the form residential_signup.erb :
Your use of the Community Energy, L.P. ("Community Energy") Web Site, whether as a Community Energy Customer or as any other user of the Community Energy Web Site ("Web Site" or "Site"), is governed by the Terms of Use, and by your use of the Web Site, you accept this privacy policy.
1. What Personal Information We Collect You are not required to register or provide information to us in order to view much of our Web Site. You will be required to provide information that can be used to identify you (your "Personal Information") when you utilize the Request a Quote process or register as a Community Energy Customer ("Customer") by utilizing the Sign-up Now process. Likewise, when you or another person signs onto the Web Site as a Customer, Community Energy will collect certain Personal Information. This information may include, but is not limited to, your name, address, telephone number, e-mail address, credit card number, login id, password, electricity usage data and certain other related information. Also, when you visit the Web Site, we may place a "cookie," a text file containing a randomly assigned number, on your computer so that we can customize the look and feel of the Web Site for you. If you register as a Customer, this cookie may also contain your login id and password to ease your access to and use of the Web Site. You are always free to decline our cookies if your browser permits, although doing so may impede your use of certain features. If you choose to reject the use of cookies, you will not be able to Request a Quote online or use the Sign-up Now process. However, you may contact a Customer Service Representative at (800) 820-2423, who will assist you with these processes over the phone.
2. How We Use Your Personal Information To be specific, we may use your Personal Information in the following ways (a) to fulfill our obligations to our Customers under the Electricity Aggregation Agreement; (b) to monitor our Customers' accounts in order to enhance the products and services that we currently or will, in the future, offer; (c) to accommodate your requests and facilitate providing your services; (d) to send you offers and related information about other goods or services offered by us or our business partners; (e) to send you material about topics on which you have requested more information; (f) to provide you with technical and other support; and (g) to customize the look and feel of the Site for you. While we may use information about our Customers on an aggregated basis and will often share such data with unaffiliated third parties, this information, by its aggregate nature, contains none of your Personal Information. When we refer to an "unaffiliated" third party, we mean one that (i) is not controlled by us, (ii) does not control us, and (iii) is not controlled by the same party controlling us.
3. When We Disclose Your Personal Information Except as explicitly stated in this privacy policy, we will not disclose to unaffiliated third parties any of your Personal Information without first obtaining your consent. We do and will continue to disclose your Personal Information to unaffiliated third parties in the following circumstances (a) if required by law, regulatory or court order, or legal process; (b) to the Public Utility Commission, if the information is requested for regulatory oversight purposes, or to investigate or resolve Customer complaints; (c) to an aggregator engaged to collect an overdue or unpaid amount from the customer or to perform any duties of the aggregator; (d) to credit reporting agencies pursuant to state and federal law; (e) to an energy assistance agency to allow a customer to qualify for and obtain financial assistance as provided for in our agency agreement; (f) if we determine that doing so would be in the public interest (i.e., if we were to suspect that you were using the Web Site in connection with the commission of a crime), or to local, state, and federal law enforcement agencies; (g) to Retail Electric Providers from whom Community Energy seeks a competitive bid for the supply of electricity to the Customer; (h) in connection with a sale, merger, consolidation, change in control, transfer of substantial assets, reorganization, or liquidation of Community Energy; (i) to contractors, subcontractors, agents, consultants, legal counsel, and other designees; (j) if you provide such information to us in connection with a promotion of a good or service offered by a third party, for purposes of such promotion, including, without limitation, sharing such information with that third party; and (k) in the context of working with third-party contractors engaged by us in the provision of Community Energy's services. After we disclose your Personal Information to unaffiliated third parties in such instances, we can no longer control the use or further disclosure of your Personal Information. Consequently, we will not be responsible to you for such use or further disclosure.
4. What Options You Have You will not be able to use the Web Site as a Customer without providing us with some Personal Information. You may, however, opt out of receiving newsletters and other communications from us.
5. Correcting Your Information You can ensure that your account information is correct and current by reviewing and updating it at any time. You may do so as often as necessary by editing your account profile. If you are having difficulty doing so, please contact us by e-mail and indicate the problems you have encountered.
6. Security We take precautions involving physical, electronic, and managerial controls to protect from loss, misuse, unauthorized access or disclosure, and alteration any of your Personal Information in our possession. We urge you to refrain from sharing your login id and password with others. We also strongly recommend that you change your password frequently and store it in a safe place. We employ industry-standard Secure Sockets Layer encryption when obtaining your assent to the Electricity Aggregation Agreement and in other appropriate places. We do not, however, use such encryption during all of your day-to-day use of the Web Site. You should note that the confidentiality of any information transmitted over the Internet cannot be guaranteed.
7. Links to Other Sites You should be aware that this privacy policy applies only to the Web Site. Importantly, it does not apply to any other web or other site to which a link may be provided. We cannot control and are not responsible for the actions of third parties operating such sites. You should not take the existence of an affiliation with, or a link from, the Web Site to any such other site to mean that it has a privacy policy similar to this one. You should review the privacy policy of any such site.
8. Changes to this Policy As our business is a very dynamic one, we need to be able to make revisions to this privacy policy. Consequently, we reserve the right to change this privacy policy at any time. You should check this location for any updates and other changes. In the event of a material change, we will indicate on the Web Site that our privacy policy has changed materially and provide a link to the revised policy.
A Note About the Privacy of Children The Web Site is not directed to or otherwise promoted for use by children. We do not permit children to register to become Community Energy Customers. We do not knowingly collect or use any personal information of any children.
#Terms of use text
terms_of_use:
Terms of Use
The following Terms of Use apply to all visitors to or users of this Web site (this "Site"), which is owned and operated by Community Energy, L.P. ("Community Energy"). Please feel free to browse this Site; however, your access and use of this Site is subject to the following terms ("Terms of Use") and all applicable laws. By accessing and browsing this Site, you accept, without limitation or qualification, the Terms of Use. If you do not agree with any of these Terms and Conditions, do not use this Site. Community Energy reserves the right, in its sole discretion, to modify, alter or otherwise update these at any time. By using this Site you agree to be bound by such modifications, alterations or updates and should therefore periodically visit this page to determine the then-current Terms of Use to which you are bound.
1. ACCESS. Access to and use of password protected and/or secure areas of the Site is restricted to authorized users only, and, where applicable, shall be subject to special terms and conditions governing the use of those areas to, among other things, engage in transactions. Accordingly, except for these Terms of Use, this Site or the use thereof shall not in and of itself create any legal relationship between you and Community Energy. If you entered into another agreement with Community Energy (such as an Electricity Aggregation Agreement (the "Agreement"), the Terms of Use, the Agreement, and all terms and conditions referred to therein, shall govern your access and utilization of this Site. Unauthorized individuals attempting to access these areas of the Site may be subject to prosecution.
2. INTELLECTUAL PROPERTY. The trademarks, logos and service marks ("Marks") displayed on the Site are the property of Community Energy and/or other parties. Users of this Site are prohibited from using any Marks for any purpose including, but not limited to use as metatags on other pages or sites on the World Wide Web without the written permission of Community Energy or such third party that may own the Marks. All information and content available on or through the Site ("Content") is protected by copyright. Users are prohibited from modifying, copying, distributing, transmitting, displaying, publishing, selling, licensing, creating derivative works or using any Content available on or through the Site for commercial or public purposes. You also may not, without Community Energy's written permission, frame or "mirror" on any other server any material contained on this Site. Except as expressly permitted above, no portion of the materials on this Site may be reproduced in any form, or by any means, without prior written permission from Community Energy.
3. DISCLAIMER OF WARRANTY. ALL CONTENT, PRODUCTS, AND SERVICES ON THE SITE, OR OBTAINED FROM A SITE TO WHICH THE SITE IS LINKED (A "LINKED SITE") ARE PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, SECURITY OR ACCURACY.
COMMUNITY ENERGY DOES NOT ENDORSE AND IS NOT RESPONSIBLE FOR (A) THE ACCURACY OR RELIABILITY OF ANY OPINION, ADVICE OR STATEMENT MADE THROUGH THE SITE BY ANY PARTY OTHER THAN COMMUNITY ENERGY, (B) ANY CONTENT PROVIDED ON LINKED SITES OR (C) THE CAPABILITIES OR RELIABILITY OF ANY PRODUCT OR SERVICE OBTAINED FROM A LINKED SITE.
OTHER THAN AS REQUIRED UNDER APPLICABLE CONSUMER PROTECTION LAW, UNDER NO CIRCUMSTANCE WILL COMMUNITY ENERGY BE LIABLE FOR ANY LOSS OR DAMAGE CAUSED BY A USER'S RELIANCE ON INFORMATION OBTAINED THROUGH THE SITE OR A LINKED SITE, OR USER'S RELIANCE ON ANY PRODUCT OR SERVICE OBTAINED FROM A LINKED SITE. IT IS THE RESPONSIBILITY OF THE USER TO EVALUATE THE ACCURACY, COMPLETENESS OR USEFULNESS OF ANY OPINION, ADVICE OR OTHER CONTENT AVAILABLE THROUGH THE SITE, OR OBTAINED FROM A LINKED SITE. PLEASE SEEK THE ADVICE OF PROFESSIONALS, AS APPROPRIATE, REGARDING THE EVALUATION OF ANY SPECIFIC OPINION, ADVICE, PRODUCT, SERVICE, OR OTHER CONTENT.
4. LIMITATION OF LIABILITY. Community Energy and its directors, officers, employees and agents shall, to the extent permitted by law, have no liability, contingent or otherwise, whether caused by the negligence of Community Energy, its employees, subcontractors, agents, suppliers, or otherwise, to you or to third parties for the accuracy, timeliness, completeness, reliability, performance or continued availability of this Site or for delays or omissions therein, including, but not limited to, inaccuracies or errors in data. Community Energy shall have no responsibility to maintain the Content or services made available on this Site or to supply any corrections or updates in connection with such Content or services.
YOU AGREE THAT COMMUNITY ENERGY, ITS AFFILIATES, ITS SUPPLIERS, ITS THIRD PARTY AGENTS, THIRD PARTIES POSTING CONTENT OR PRODUCTS ON THE SITE, OR OTHER USERS OF THE SITE AND ANY OF THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, OR AGENTS WILL NOT BE LIABLE, WHETHER IN CONTRACT, TORT, STRICT LIABILITY OR OTHERWISE, FOR ANY INDIRECT, PUNITIVE, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR INDIRECT DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS, COST OF PROCURING SUBSTITUTE SERVICE OR LOST OPPORTUNITY) ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SITE OR A LINKED SITE, OR WITH THE DELAY OR INABILITY TO USE THE SITE OR A LINKED SITE, EVEN IF COMMUNITY ENERGY IS MADE AWARE OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION ON LIABILITY INCLUDES, BUT IS NOT LIMITED TO, THE TRANSMISSION OF ANY VIRUSES WHICH MAY INFECT A USER'S EQUIPMENT, FAILURE OF MECHANICAL OR ELECTRONIC EQUIPMENT OR COMMUNICATION LINES, TELEPHONE OR OTHER INTERCONNECT PROBLEMS (e.g., YOU CANNOT ACCESS YOUR INTERNET SERVICE PROVIDER), UNAUTHORIZED ACCESS, THEFT, OPERATOR ERRORS, STRIKES OR OTHER LABOR PROBLEMS OR ANY FORCE MAJEURE. COMMUNITY ENERGY CANNOT AND DOES NOT GUARANTEE CONTINUOUS, UNINTERRUPTED OR SECURE ACCESS TO THE WEB SITE.
5. HYPERLINKING. THIS SITE MAY PROVIDE A LINK TO OTHER SITES BY ALLOWING THE USER TO LEAVE THIS SITE TO ACCESS THIRD-PARTY MATERIAL OR BY BRINGING THE THIRD-PARTY MATERIAL INTO THIS SITE VIA "INVERSE" HYPERLINKS AND FRAMING TECHNOLOGY. COMMUNITY ENERGY HAS NO DISCRETION TO ALTER, UPDATE, OR CONTROL THE CONTENT ON A LINKED SITE. THE FACT THAT COMMUNITY ENERGY HAS PROVIDED A LINK TO A SITE IS NOT AN ENDORSEMENT, AUTHORIZATION, SPONSORSHIP, OR AFFILIATION WITH RESPECT TO SUCH SITE, ITS OWNERS, OR ITS PROVIDERS. THERE ARE INHERENT RISKS IN RELYING UPON USING, OR RETRIEVING ANY INFORMATION FOUND ON THE INTERNET, AND COMMUNITY ENERGY URGES YOU TO MAKE SURE YOU UNDERSTAND THESE RISKS BEFORE RELYING UPON, USING, OR RETRIEVING ANY SUCH INFORMATION ON A LINKED SITE.
6. CONFIDENTIALITY. You agree that you will maintain the confidentiality of this Site and that you will not disclose or provide access to this Site or its Contents to any person (other than your employees in connection with the performance of their duties to you), except as may be required by applicable law or regulation or by order of a court or regulatory or self-regulatory authority with jurisdiction over you.
Except as required by law, Community Energy will maintain the confidentiality of all user communications which contain personal user information and which are transmitted directly to Community Energy.
User should be aware that Linked Sites may contain confidentiality provisions that differ from the provisions provided herein. Community Energy is not responsible for such provisions, and expressly disclaims any and all liability related to such provisions.
7. INDEMNITY. You agree, at your own expense, to indemnify, defend and hold harmless Community Energy and its employees, representatives, Suppliers and agents, against any claim, suit, action or other proceeding against Community Energy, its employees, representatives, Suppliers and agents, by a third party, to the extent that such claim, suit, action or other proceeding is based on or arises in connection with your use of the Site, or any links on the Site, including, but not limited to (i) your use or someone using your computer's use of the Site; (ii) your use or someone using any password you may obtain; (iii) a violation of the terms set forth in this Terms of Use by you or anyone using your computer or password; (iv) a claim that any use of the Site by you or someone using your computer or password infringes any intellectual property right, is libelous or defamatory, or otherwise results in injury or damage to anyone; (v) any deletions, additions, insertions or alterations to, or any unauthorized use of, the Site by you or someone using your computer or password; (vi) any misrepresentation or breach of representation or warranty made by you contained herein or (vii) any breach of any covenant or agreement to be performed by you hereunder. You agree to pay any and all costs, damages and expenses, including, but not limited to, reasonable attorneys' fees and costs awarded against or otherwise incurred by or in connection with or arising from any such claim, suit, action or proceeding attributable to any such claim.
8. VIOLATIONS OF TERMS OF USE. Community Energy reserves the right to seek all remedies available at law and in equity for violations of these Terms of Use, including the right to block access from a particular Internet address to the Site.
9. LAWS AND REGULATIONS. The Terms of Use shall be governed by the laws of the State of Texas, without regard to conflicts of laws principles. THE PARTIES CONSENT TO JURISDICTION AND VENUE EXCLUSIVELY IN THE STATE OF TEXAS. User access to and use of the Site is subject to all applicable international, federal, state and local laws and regulations.
#This is dummy content for the home page
home_content:
English Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
character_set: text/html;charset=UTF-8
username_label: Username
password_label: Password
remember_me: Remember me on this computer.
forgot_password: Forgot your password?
login_label: Login
error: Error
err_msg_404: Oops! The server was not able to find the file you requested.
back_to_continue: To continue, click the Back button.
err_msg_general: Sorry, Ruby has thrown an exception.
details: Details
err_label_404: 404 Error
err_label_general: Ruby Error
#This is used for the type of error.
type_label: Type
#This is the label for the error message returned by Java.
message_label: Message
commercial_info_label: Commercial Services
commercial_pricing_label: Commercial Pricing
commercial_info_content:
Commercial English Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
commercial_signup_title: Commercial Registration
residential_signup_title: Residential Registration
esid_label: Electricy Service Identifier
location_description_label: Location Description
service_address_label: Service Address
city_label: City
state_label: State
zip_code_label: Zip
tax_exempt_checkbox_label: Check this box if this location is tax exempt.
service_location_change_label: What would you like to do?
service_location_change_option_one: Switch Providers
service_location_change_option_2: Obtain New Service
current_provider_inquiry: Who is the current provider?
add_new_location: Add New Location
apartment_label: Apartment
suite_label: Suite
switch_type_inquiry: What type of switch are you requesting?
switch_type_option_1: Standard Switch
switch_type_option_2: Selected Switch
requested_switch_date: Requested Switch Date
existing_contract_inquiry: Check this box if this location is under an existing supply contract.
contract_end_date: Contract End Date
continue_btn_label: Continue
go_back_btn_label: Go Back
save_btn_label: Save
corporate_headquarters: Corporate Headquarters
service_location_label: Service Location Information
legal_company_name: Legal Company Name
dba_name_label: DBA Name (if applicable)
address_label: Address
cancel_btn_label: CANCEL
privacy_policy_review_caption: To learn how Community EnergyLP safeguards your personal information, review our Privacy Policy.
first_name_label: First Name
middle_name_label: Middle Name
last_name_label: Last Name
suffix_label: Suffix
prefix_label: Prefix
salutation_label: Salutation
title_label: Title
phone_number_label: Phone Number
cell_number_label: Cell Number
fax_number_label: Fax Number
email_address_label: Email Address
tax_id_label: Employer Identification Number (Tax ID)
birthdate_label: Date of Birth
social_security_number_label: Social Security Number
drivers_license_label: Drivers License
#State issuing the drivers license.
dl_state_issued_label: State Issued
billing_information_title: Billing Information
same_billing_service_address_inquiry: Check this box if the billing address is the same as the service address; otherwise, please provide a billing address.
billing_address_label: Billing Address
preferred_language_inquiry: What is your preferred language?
english_label: English
spanish_label: Spanish
auto_pay_option_label: Check this box if you would like for your monthly bill to be automatically charged to a credit card or deducted from a checking account.
auto_pay_method_inquiry: How would you like to auto pay your bill each month?
ach_payment_label: ACH Payment
credit_card_label: Credit Card
ach_title: ACH Payment Information
name_on_account_label: Name on Account
name_of_bank_label: Name of Bank
routing_number_label: Routing Number
account_number_label: Account Number
ach_consent_text: By checking this box I authorize Community EnergyLP to provide my bank account information to the
Datamapper correctly creates the database in sqlite, but fails to persist an object to its table. The form returns the values and properly assigns them to the object, but the call to save the object fails. How do you determine why it failed so that I can correct the problem? I am a newbie to Ruby, Sinatra, Datamapper and Sqlite and any assistance would be greatly appreciated.
Here is the Ruby code savetest.rb :
require 'rubygems' require 'i18n' require 'sinatra' require 'data_mapper' require 'bcrypt'
enable :sessions
DataMapper::setup(:default, "sqlite3://#{Dir.pwd}/savetest.db")
in config/initializer/locale.rb
tell the I18n library where to find your translations
I18n.load_path << Dir[File.join('config', 'locales','*.{rb,yml}') ]
class Entity
include DataMapper::Resource
property :entity_id, Serial property :full_legal_name, String property :tax_id, String property :phone_number, String property :fax_number, String property :cell_number, String property :email, String, :unique => true, :format => :email_address property :alt_email, String property :is_active, Boolean property :created_at, DateTime property :created_by, String property :updated_at, DateTime property :updated_by, String property :auto_pay, Boolean property :use_ach, Boolean property :prefix, String property :first_name, String property :middle_name, String property :last_name, String property :suffix, String property :referal_code, String property :login_name, String, :unique => true property :hashed_password, String property :salt, String property :permission_level, Integer property :title, String property :greeting, String property :preferred_name, String property :preferred_language, String property :security_question, String property :security_answer, String property :signature_font, String
has n, :addresses, :through => Resource has n, :aches has n, :creditcards
end
class Person < Entity
property :birthdate, Date property :drivers_license_number, String property :state_issuing_drivers_license, String
end
class Company < Entity
property :dba_name, String property :legal_structure, String property :url, String, :format => :url
end
class Address
include DataMapper::Resource
property :address_id, Serial property :esid, String property :description, String property :address_line1, String property :address_line2, String property :city, String property :state, String property :zipcode, String property :country, String property :meter_number, String property :meter_type, String property :meter_status, String property :meter_status_date, DateTime property :updated_by, String property :switch_indicator, String property :switch_type, String property :selected_switch_date, Date property :under_contract, Boolean property :contract_end_date, Date
has n, :entities, :through => Resource
end
class Ach
include DataMapper::Resource
property :ach_id, Serial property :bank_account_owner, String property :bank_name, String property :routing_number, String property :bank_account_number, String property :ach_authorization, Boolean
belongs_to :entity, :required => false
end
class Creditcard
include DataMapper::Resource
property :credit_card_id, Serial property :type_of_card, String property :card_number, String property :expiration_date, Date property :security_code, String property :cardholder_name, String property :credit_card_billing_address_line1, String property :credit_card_billing_address_line2, String property :credit_card_billing_city, String property :credit_card_billing_state, String property :credit_card_billing_zipcode, String property :credit_card_authorization, Boolean
belongs_to :entity, :required => false
end
DataMapper.finalize
Create or upgrade all tables at once
DataMapper.auto_upgrade!
before do
set utf-8 for outgoing
headers "Content-Type" => "text/html; charset=utf-8"
set the locale manually - this will be replaced with code to extract it from the subdomain
I18n.locale = :en end
get '/' do redirect "/residential/signup" end
get '/residential/signup' do @title = I18n.t('residential_signup_title') erb :residential_signup end
post '/residential/signup' do @title = "Residential Signup" @home_menu = "home" @ce_logo = "../assets/images/ceLogo.png"
@lgraphic = "../assets/images/TmpResidentialGraphic.png" @international_gif = "../assets/images/international.gif" @page_content = "The data collected is:
"
@person = Person.new()
params[:post].each { |key, value| @person[key] = value }
@test = params[:post][:prefix] + " " + params[:post][:first_name] + " " + params[:post][:middle_name] + " " + params[:post][:last_name] + " " + params[:post][:suffix] @person.full_legal_name = @test
if @person.save == false @sub = "The save failed!" else @sub = "The save succeeded!" end
session[:foo] = @person
session[:base_route] = "residential"
if params[:post][:submit] == I18n.t('privacy_policy_label') redirect "/privacy_policy" elsif params[:post][:submit] == I18n.t('cancel_btn_label') redirect "/residential" else @page_content = "The data collected is:
" + "
" + @sub erb :index end end
Here is the view for the form residential_signup.erb :
<%= I18n.t('residential_signup_title') %>
Here is the view for the display index.erb : ```<%= I18n.t('home_tagline') %>
<%= @page_content %>
<%= I18n.t('copyright') %>
<%= I18n.t('aggregation_license') %>
|
<%= I18n.t('terms_of_use_label') %>Privacy Policy
Your use of the Community Energy, L.P. ("Community Energy") Web Site, whether as a Community Energy Customer or as any other user of the Community Energy Web Site ("Web Site" or "Site"), is governed by the Terms of Use, and by your use of the Web Site, you accept this privacy policy.
#Terms of use text terms_of_use:1. What Personal Information We Collect
You are not required to register or provide information to us in order to view much of our Web Site. You will be required to provide information that can be used to identify you (your "Personal Information") when you utilize the Request a Quote process or register as a Community Energy Customer ("Customer") by utilizing the Sign-up Now process. Likewise, when you or another person signs onto the Web Site as a Customer, Community Energy will collect certain Personal Information. This information may include, but is not limited to, your name, address, telephone number, e-mail address, credit card number, login id, password, electricity usage data and certain other related information. Also, when you visit the Web Site, we may place a "cookie," a text file containing a randomly assigned number, on your computer so that we can customize the look and feel of the Web Site for you. If you register as a Customer, this cookie may also contain your login id and password to ease your access to and use of the Web Site. You are always free to decline our cookies if your browser permits, although doing so may impede your use of certain features. If you choose to reject the use of cookies, you will not be able to Request a Quote online or use the Sign-up Now process. However, you may contact a Customer Service Representative at (800) 820-2423, who will assist you with these processes over the phone.
2. How We Use Your Personal Information
To be specific, we may use your Personal Information in the following ways
(a) to fulfill our obligations to our Customers under the Electricity Aggregation Agreement;
(b) to monitor our Customers' accounts in order to enhance the products and services that we currently or will, in the future, offer;
(c) to accommodate your requests and facilitate providing your services;
(d) to send you offers and related information about other goods or services offered by us or our business partners;
(e) to send you material about topics on which you have requested more information;
(f) to provide you with technical and other support; and
(g) to customize the look and feel of the Site for you.
While we may use information about our Customers on an aggregated basis and will often share such data with unaffiliated third parties, this information, by its aggregate nature, contains none of your Personal Information. When we refer to an "unaffiliated" third party, we mean one that (i) is not controlled by us, (ii) does not control us, and (iii) is not controlled by the same party controlling us.
3. When We Disclose Your Personal Information
Except as explicitly stated in this privacy policy, we will not disclose to unaffiliated third parties any of your Personal Information without first obtaining your consent. We do and will continue to disclose your Personal Information to unaffiliated third parties in the following circumstances
(a) if required by law, regulatory or court order, or legal process;
(b) to the Public Utility Commission, if the information is requested for regulatory oversight purposes, or to investigate or resolve Customer complaints;
(c) to an aggregator engaged to collect an overdue or unpaid amount from the customer or to perform any duties of the aggregator;
(d) to credit reporting agencies pursuant to state and federal law;
(e) to an energy assistance agency to allow a customer to qualify for and obtain financial assistance as provided for in our agency agreement;
(f) if we determine that doing so would be in the public interest (i.e., if we were to suspect that you were using the Web Site in connection with the commission of a crime), or to local, state, and federal law enforcement agencies;
(g) to Retail Electric Providers from whom Community Energy seeks a competitive bid for the supply of electricity to the Customer;
(h) in connection with a sale, merger, consolidation, change in control, transfer of substantial assets, reorganization, or liquidation of Community Energy;
(i) to contractors, subcontractors, agents, consultants, legal counsel, and other designees;
(j) if you provide such information to us in connection with a promotion of a good or service offered by a third party, for purposes of such promotion, including, without limitation, sharing such information with that third party; and
(k) in the context of working with third-party contractors engaged by us in the provision of Community Energy's services.
After we disclose your Personal Information to unaffiliated third parties in such instances, we can no longer control the use or further disclosure of your Personal Information. Consequently, we will not be responsible to you for such use or further disclosure.
4. What Options You Have
You will not be able to use the Web Site as a Customer without providing us with some Personal Information. You may, however, opt out of receiving newsletters and other communications from us.
5. Correcting Your Information
You can ensure that your account information is correct and current by reviewing and updating it at any time. You may do so as often as necessary by editing your account profile. If you are having difficulty doing so, please contact us by e-mail and indicate the problems you have encountered.
6. Security
We take precautions involving physical, electronic, and managerial controls to protect from loss, misuse, unauthorized access or disclosure, and alteration any of your Personal Information in our possession. We urge you to refrain from sharing your login id and password with others. We also strongly recommend that you change your password frequently and store it in a safe place. We employ industry-standard Secure Sockets Layer encryption when obtaining your assent to the Electricity Aggregation Agreement and in other appropriate places. We do not, however, use such encryption during all of your day-to-day use of the Web Site. You should note that the confidentiality of any information transmitted over the Internet cannot be guaranteed.
7. Links to Other Sites
You should be aware that this privacy policy applies only to the Web Site. Importantly, it does not apply to any other web or other site to which a link may be provided. We cannot control and are not responsible for the actions of third parties operating such sites. You should not take the existence of an affiliation with, or a link from, the Web Site to any such other site to mean that it has a privacy policy similar to this one. You should review the privacy policy of any such site.
8. Changes to this Policy
As our business is a very dynamic one, we need to be able to make revisions to this privacy policy. Consequently, we reserve the right to change this privacy policy at any time. You should check this location for any updates and other changes. In the event of a material change, we will indicate on the Web Site that our privacy policy has changed materially and provide a link to the revised policy.
A Note About the Privacy of Children
The Web Site is not directed to or otherwise promoted for use by children. We do not permit children to register to become Community Energy Customers. We do not knowingly collect or use any personal information of any children.
Terms of Use
The following Terms of Use apply to all visitors to or users of this Web site (this "Site"), which is owned and operated by Community Energy, L.P. ("Community Energy"). Please feel free to browse this Site; however, your access and use of this Site is subject to the following terms ("Terms of Use") and all applicable laws. By accessing and browsing this Site, you accept, without limitation or qualification, the Terms of Use. If you do not agree with any of these Terms and Conditions, do not use this Site. Community Energy reserves the right, in its sole discretion, to modify, alter or otherwise update these at any time. By using this Site you agree to be bound by such modifications, alterations or updates and should therefore periodically visit this page to determine the then-current Terms of Use to which you are bound.
#This is dummy content for the home page home_content:1. ACCESS. Access to and use of password protected and/or secure areas of the Site is restricted to authorized users only, and, where applicable, shall be subject to special terms and conditions governing the use of those areas to, among other things, engage in transactions. Accordingly, except for these Terms of Use, this Site or the use thereof shall not in and of itself create any legal relationship between you and Community Energy. If you entered into another agreement with Community Energy (such as an Electricity Aggregation Agreement (the "Agreement"), the Terms of Use, the Agreement, and all terms and conditions referred to therein, shall govern your access and utilization of this Site. Unauthorized individuals attempting to access these areas of the Site may be subject to prosecution.
2. INTELLECTUAL PROPERTY. The trademarks, logos and service marks ("Marks") displayed on the Site are the property of Community Energy and/or other parties. Users of this Site are prohibited from using any Marks for any purpose including, but not limited to use as metatags on other pages or sites on the World Wide Web without the written permission of Community Energy or such third party that may own the Marks. All information and content available on or through the Site ("Content") is protected by copyright. Users are prohibited from modifying, copying, distributing, transmitting, displaying, publishing, selling, licensing, creating derivative works or using any Content available on or through the Site for commercial or public purposes. You also may not, without Community Energy's written permission, frame or "mirror" on any other server any material contained on this Site. Except as expressly permitted above, no portion of the materials on this Site may be reproduced in any form, or by any means, without prior written permission from Community Energy.
3. DISCLAIMER OF WARRANTY. ALL CONTENT, PRODUCTS, AND SERVICES ON THE SITE, OR OBTAINED FROM A SITE TO WHICH THE SITE IS LINKED (A "LINKED SITE") ARE PROVIDED TO YOU "AS IS" WITHOUT WARRANTY OF ANY KIND EITHER EXPRESS OR IMPLIED INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, TITLE, NON-INFRINGEMENT, SECURITY OR ACCURACY.
COMMUNITY ENERGY DOES NOT ENDORSE AND IS NOT RESPONSIBLE FOR (A) THE ACCURACY OR RELIABILITY OF ANY OPINION, ADVICE OR STATEMENT MADE THROUGH THE SITE BY ANY PARTY OTHER THAN COMMUNITY ENERGY, (B) ANY CONTENT PROVIDED ON LINKED SITES OR (C) THE CAPABILITIES OR RELIABILITY OF ANY PRODUCT OR SERVICE OBTAINED FROM A LINKED SITE.
OTHER THAN AS REQUIRED UNDER APPLICABLE CONSUMER PROTECTION LAW, UNDER NO CIRCUMSTANCE WILL COMMUNITY ENERGY BE LIABLE FOR ANY LOSS OR DAMAGE CAUSED BY A USER'S RELIANCE ON INFORMATION OBTAINED THROUGH THE SITE OR A LINKED SITE, OR USER'S RELIANCE ON ANY PRODUCT OR SERVICE OBTAINED FROM A LINKED SITE. IT IS THE RESPONSIBILITY OF THE USER TO EVALUATE THE ACCURACY, COMPLETENESS OR USEFULNESS OF ANY OPINION, ADVICE OR OTHER CONTENT AVAILABLE THROUGH THE SITE, OR OBTAINED FROM A LINKED SITE. PLEASE SEEK THE ADVICE OF PROFESSIONALS, AS APPROPRIATE, REGARDING THE EVALUATION OF ANY SPECIFIC OPINION, ADVICE, PRODUCT, SERVICE, OR OTHER CONTENT.
4. LIMITATION OF LIABILITY. Community Energy and its directors, officers, employees and agents shall, to the extent permitted by law, have no liability, contingent or otherwise, whether caused by the negligence of Community Energy, its employees, subcontractors, agents, suppliers, or otherwise, to you or to third parties for the accuracy, timeliness, completeness, reliability, performance or continued availability of this Site or for delays or omissions therein, including, but not limited to, inaccuracies or errors in data. Community Energy shall have no responsibility to maintain the Content or services made available on this Site or to supply any corrections or updates in connection with such Content or services.
YOU AGREE THAT COMMUNITY ENERGY, ITS AFFILIATES, ITS SUPPLIERS, ITS THIRD PARTY AGENTS, THIRD PARTIES POSTING CONTENT OR PRODUCTS ON THE SITE, OR OTHER USERS OF THE SITE AND ANY OF THEIR RESPECTIVE OFFICERS, DIRECTORS, EMPLOYEES, OR AGENTS WILL NOT BE LIABLE, WHETHER IN CONTRACT, TORT, STRICT LIABILITY OR OTHERWISE, FOR ANY INDIRECT, PUNITIVE, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR INDIRECT DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS, COST OF PROCURING SUBSTITUTE SERVICE OR LOST OPPORTUNITY) ARISING OUT OF OR IN CONNECTION WITH THE USE OF THE SITE OR A LINKED SITE, OR WITH THE DELAY OR INABILITY TO USE THE SITE OR A LINKED SITE, EVEN IF COMMUNITY ENERGY IS MADE AWARE OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION ON LIABILITY INCLUDES, BUT IS NOT LIMITED TO, THE TRANSMISSION OF ANY VIRUSES WHICH MAY INFECT A USER'S EQUIPMENT, FAILURE OF MECHANICAL OR ELECTRONIC EQUIPMENT OR COMMUNICATION LINES, TELEPHONE OR OTHER INTERCONNECT PROBLEMS (e.g., YOU CANNOT ACCESS YOUR INTERNET SERVICE PROVIDER), UNAUTHORIZED ACCESS, THEFT, OPERATOR ERRORS, STRIKES OR OTHER LABOR PROBLEMS OR ANY FORCE MAJEURE. COMMUNITY ENERGY CANNOT AND DOES NOT GUARANTEE CONTINUOUS, UNINTERRUPTED OR SECURE ACCESS TO THE WEB SITE.
5. HYPERLINKING. THIS SITE MAY PROVIDE A LINK TO OTHER SITES BY ALLOWING THE USER TO LEAVE THIS SITE TO ACCESS THIRD-PARTY MATERIAL OR BY BRINGING THE THIRD-PARTY MATERIAL INTO THIS SITE VIA "INVERSE" HYPERLINKS AND FRAMING TECHNOLOGY. COMMUNITY ENERGY HAS NO DISCRETION TO ALTER, UPDATE, OR CONTROL THE CONTENT ON A LINKED SITE. THE FACT THAT COMMUNITY ENERGY HAS PROVIDED A LINK TO A SITE IS NOT AN ENDORSEMENT, AUTHORIZATION, SPONSORSHIP, OR AFFILIATION WITH RESPECT TO SUCH SITE, ITS OWNERS, OR ITS PROVIDERS. THERE ARE INHERENT RISKS IN RELYING UPON USING, OR RETRIEVING ANY INFORMATION FOUND ON THE INTERNET, AND COMMUNITY ENERGY URGES YOU TO MAKE SURE YOU UNDERSTAND THESE RISKS BEFORE RELYING UPON, USING, OR RETRIEVING ANY SUCH INFORMATION ON A LINKED SITE.
6. CONFIDENTIALITY. You agree that you will maintain the confidentiality of this Site and that you will not disclose or provide access to this Site or its Contents to any person (other than your employees in connection with the performance of their duties to you), except as may be required by applicable law or regulation or by order of a court or regulatory or self-regulatory authority with jurisdiction over you.
Except as required by law, Community Energy will maintain the confidentiality of all user communications which contain personal user information and which are transmitted directly to Community Energy.
User should be aware that Linked Sites may contain confidentiality provisions that differ from the provisions provided herein. Community Energy is not responsible for such provisions, and expressly disclaims any and all liability related to such provisions.
7. INDEMNITY. You agree, at your own expense, to indemnify, defend and hold harmless Community Energy and its employees, representatives, Suppliers and agents, against any claim, suit, action or other proceeding against Community Energy, its employees, representatives, Suppliers and agents, by a third party, to the extent that such claim, suit, action or other proceeding is based on or arises in connection with your use of the Site, or any links on the Site, including, but not limited to (i) your use or someone using your computer's use of the Site; (ii) your use or someone using any password you may obtain; (iii) a violation of the terms set forth in this Terms of Use by you or anyone using your computer or password; (iv) a claim that any use of the Site by you or someone using your computer or password infringes any intellectual property right, is libelous or defamatory, or otherwise results in injury or damage to anyone; (v) any deletions, additions, insertions or alterations to, or any unauthorized use of, the Site by you or someone using your computer or password; (vi) any misrepresentation or breach of representation or warranty made by you contained herein or (vii) any breach of any covenant or agreement to be performed by you hereunder. You agree to pay any and all costs, damages and expenses, including, but not limited to, reasonable attorneys' fees and costs awarded against or otherwise incurred by or in connection with or arising from any such claim, suit, action or proceeding attributable to any such claim.
8. VIOLATIONS OF TERMS OF USE. Community Energy reserves the right to seek all remedies available at law and in equity for violations of these Terms of Use, including the right to block access from a particular Internet address to the Site.
9. LAWS AND REGULATIONS. The Terms of Use shall be governed by the laws of the State of Texas, without regard to conflicts of laws principles. THE PARTIES CONSENT TO JURISDICTION AND VENUE EXCLUSIVELY IN THE STATE OF TEXAS. User access to and use of the Site is subject to all applicable international, federal, state and local laws and regulations.
English Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
character_set: text/html;charset=UTF-8 username_label: Username password_label: Password remember_me: Remember me on this computer. forgot_password: Forgot your password? login_label: Login error: Error err_msg_404: Oops! The server was not able to find the file you requested. back_to_continue: To continue, click the Back button. err_msg_general: Sorry, Ruby has thrown an exception. details: Details err_label_404: 404 Error err_label_general: Ruby Error #This is used for the type of error. type_label: Type #This is the label for the error message returned by Java. message_label: Message commercial_info_label: Commercial Services commercial_pricing_label: Commercial Pricing commercial_info_content:Commercial English Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
residential_info_label: Residential Services residential_pricing_label: Residential Pricing residential_info_content:Residential English Content
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio. Donec et ipsum et sapien vehicula nonummy. Suspendisse potenti. Fusce varius urna id quam. Sed neque mi, varius eget, tincidunt nec, suscipit id, libero. In eget purus. Vestibulum ut nisl. Donec eu mi sed turpis feugiat feugiat. Integer turpis arcu, pellentesque eget, cursus et, fermentum ut, sapien. Fusce metus mi, eleifend sollicitudin, molestie id, varius et, nibh. Donec nec libero.
H2 level heading
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent aliquam, justo convallis luctus rutrum, erat nulla fermentum diam, at nonummy quam ante ac quam. Maecenas urna purus, fermentum id, molestie in, commodo porttitor, felis. Nam blandit quam ut lacus. Quisque ornare risus quis ligula. Phasellus tristique purus a augue condimentum adipiscing. Aenean sagittis. Etiam leo pede, rhoncus venenatis, tristique in, vulputate at, odio.
commercial_signup_title: Commercial Registration residential_signup_title: Residential Registration esid_label: Electricy Service Identifier location_description_label: Location Description service_address_label: Service Address city_label: City state_label: State zip_code_label: Zip tax_exempt_checkbox_label: Check this box if this location is tax exempt. service_location_change_label: What would you like to do? service_location_change_option_one: Switch Providers service_location_change_option_2: Obtain New Service current_provider_inquiry: Who is the current provider? add_new_location: Add New Location apartment_label: Apartment suite_label: Suite switch_type_inquiry: What type of switch are you requesting? switch_type_option_1: Standard Switch switch_type_option_2: Selected Switch requested_switch_date: Requested Switch Date existing_contract_inquiry: Check this box if this location is under an existing supply contract. contract_end_date: Contract End Date continue_btn_label: Continue go_back_btn_label: Go Back save_btn_label: Save corporate_headquarters: Corporate Headquarters service_location_label: Service Location Information legal_company_name: Legal Company Name dba_name_label: DBA Name (if applicable) address_label: Address cancel_btn_label: CANCEL privacy_policy_review_caption: To learn how Community EnergyLP safeguards your personal information, review our Privacy Policy. first_name_label: First Name middle_name_label: Middle Name last_name_label: Last Name suffix_label: Suffix prefix_label: Prefix salutation_label: Salutation title_label: Title phone_number_label: Phone Number cell_number_label: Cell Number fax_number_label: Fax Number email_address_label: Email Address tax_id_label: Employer Identification Number (Tax ID) birthdate_label: Date of Birth social_security_number_label: Social Security Number drivers_license_label: Drivers License #State issuing the drivers license. dl_state_issued_label: State Issued billing_information_title: Billing Information same_billing_service_address_inquiry: Check this box if the billing address is the same as the service address; otherwise, please provide a billing address. billing_address_label: Billing Address preferred_language_inquiry: What is your preferred language? english_label: English spanish_label: Spanish auto_pay_option_label: Check this box if you would like for your monthly bill to be automatically charged to a credit card or deducted from a checking account. auto_pay_method_inquiry: How would you like to auto pay your bill each month? ach_payment_label: ACH Payment credit_card_label: Credit Card ach_title: ACH Payment Information name_on_account_label: Name on Account name_of_bank_label: Name of Bank routing_number_label: Routing Number account_number_label: Account Number ach_consent_text: By checking this box I authorize Community EnergyLP to provide my bank account information to theIsn't it wrong because
:url
? I have a property named:url
and I tray to useformat => :url
, as you. In my case app hungs...