Paypal Registration

This commit is contained in:
Godwin
2014-07-24 00:16:33 -06:00
parent 4cf9277d20
commit 1430e505a0
81 changed files with 3011 additions and 295 deletions
+18 -17
View File
@@ -13,24 +13,25 @@ ENV['JPEGOPTIM_BIN'] = 'jpegoptim'
ENV['OPTIPNG_BIN'] = 'optipng'
module BikeBike
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
# config.time_zone = 'Central Time (US & Canada)'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :en #:de
config.i18n.enforce_available_locales = false
# config.action_controller.default_url_options = { :trailing_slash => true }
#config.middleware.swap 'Rack::MethodOverride', 'Rack::MethodOverrideWithParams'
#config.i18n.exception_handler = I18n::MissingTranslationExceptionHandler.new
#require '/app/helpers/bike_bike_form_helper'
#ActionView::Base.default_form_builder
#config.action_view.default_form_builder = 'BikeBikeFormHelper::BikeBikeFormBuilder'
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :en #:de
config.i18n.enforce_available_locales = false
self.paths['config/database'] = Rails.root.parent.join("secure/database.yml").to_s
# config.action_controller.default_url_options = { :trailing_slash => true }
#config.middleware.swap 'Rack::MethodOverride', 'Rack::MethodOverrideWithParams'
#config.i18n.exception_handler = I18n::MissingTranslationExceptionHandler.new
#require '/app/helpers/bike_bike_form_helper'
#ActionView::Base.default_form_builder
#config.action_view.default_form_builder = 'BikeBikeFormHelper::BikeBikeFormBuilder'
end
end
+8 -6
View File
@@ -45,13 +45,15 @@ BikeBike::Application.configure do
}
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
#config.force_ssl = true
#config.force_ssl = true
#config.action_mailer.default_charset = 'utf-8'
#Carmen.i18n_backend.locale_paths = ''
#puts "CARMEN\t" + Carmen.i18n_backend.locale_paths
#Carmen.i18n_backend.locale_paths = ''
#puts "CARMEN\t" + Carmen.i18n_backend.locale_paths
#PerfTools::CpuProfiler.start('/tmp/dev_prof')
config.serve_static_assets = true
#config.assets.precompile = false
#PerfTools::CpuProfiler.start('/tmp/dev_prof')
config.serve_static_assets = true
#config.assets.precompile = false
Paypal.sandbox!
#Paypal.sandbox = false
end
+28 -27
View File
@@ -1,37 +1,38 @@
BikeBike::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# Settings specified here will take precedence over those in config/application.rb.
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that
# your test database is "scratch space" for the test suite and is wiped
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Do not eager load code on boot. This avoids loading your whole application
# just for the purpose of running a single test. If you are using a tool that
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = { host: 'localhost' }
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
config.action_mailer.default_url_options = { host: 'localhost' }
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
Paypal.sandbox!
end
+63 -8
View File
@@ -48,7 +48,8 @@ module I18n
end
return self.lorem_ipsum(behavior, behavior_size)
end
key.to_s.gsub(/^world\..*\.(.+)\.name$/, '\1').gsub(/^.*\.(.+)?$/, '\1').gsub('_', ' ')
#key.to_s.gsub(/^world\..*\.(.+)\.name$/, '\1').gsub(/^.*\.(.+)?$/, '\1').gsub('_', ' ')
key.to_s.gsub(/^world\.(.+)\.name$/, '\1').gsub(/^.*\.(.+)?$/, '\1').gsub('_', ' ')
end
def call(exception, locale, key, options)
@@ -68,6 +69,21 @@ module I18n
@@translation_cache_file = 'config/locales/.translation-cache.yml'
@@pluralization_rules_file = 'config/locales/pluralization-rules.yml'
@@translation_cache
@@testing_started = false
@@hosts
def self.init_tests!(new_translations = nil)
if Rails.env.test?
if !@@testing_started
@@testing_started = true
File.open(@@translations_file, 'w+')
File.open(@@translation_cache_file, 'w+')
end
if !new_translations.nil?
record_translation(new_translations)
end
end
end
def needs_translation(key)
@@needs_translation ||= Array.new
@@ -90,12 +106,9 @@ module I18n
end
def initialize
if Rails.env.test? || !File.exist?(@@translation_cache_file)
if !File.exist?(@@translation_cache_file)
File.open(@@translation_cache_file, 'w+')
end
if Rails.env.test?
File.open(@@translations_file, 'w+')
end
@@translation_cache = YAML.load(File.read(@@translation_cache_file)) || Hash.new
super
end
@@ -105,8 +118,6 @@ module I18n
YAML.load_file(@@translations_file) || {}
rescue Exception => e
# sometimes concurrency issues cause an exception during testing
puts e.class
x
sleep(1/2.0)
get_translation_info()
end
@@ -121,6 +132,30 @@ module I18n
YAML.load_file(@@pluralization_rules_file).keys
end
def set_locale(host)
@@hosts ||= Hash.new
default = I18n.default_locale.to_s
lang = @@hosts[host]
if lang === false
lang = nil
elsif lang.nil?
if (lang = host.gsub(/^(dev|test|www)[\-\.](.*)$/, '\2').gsub(/^(([^\.]+)\.)?[^\.]+\.[^\.]+$/, '\2')).blank?
lang = default
end
if get_language_codes().include? lang
if !language_enabled? lang
I18n.locale = default
return lang
end
else
lang = nil
end
end
I18n.locale = default unless lang.present?
# return nil if the language doesn exist, false if it is not enabled, or the code if it is enabled
lang.present? ? true : false
end
def get_language_completion(lang)
total = 0
complete = 0
@@ -128,7 +163,11 @@ module I18n
total += 1
complete += v['languages'].include?(lang.to_s) ? 1 : 0
}
total ? complete / total : 0
(total ? complete / total.to_f : 0.0) * 100.0
end
def language_enabled?(lang)
lang.to_s == I18n.default_locale.to_s || get_language_completion(lang) > 66
end
def request_translation(key, vars, options)
@@ -142,10 +181,26 @@ module I18n
return result
end
def record_translation(key)
translations = get_translation_info()
translations ||= Hash.new
if key.is_a(Array)
key.each { |k| translations[k.to_s] ||= Hash.new }
else
translations[key.to_s] ||= Hash.new
end
File.open(@@translations_file, 'w') { |f| f.write translations.to_yaml }
end
protected
def lookup(locale, key, scope = [], options = {})
result = nil
if key.is_a?(String)
key = key.gsub(/(^\[|\])/, '').gsub(/\[/, '.')
end
if @@translation_cache && @@translation_cache.has_key?(locale.to_s) && @@translation_cache[locale.to_s].has_key?(key.to_s)
result = @@translation_cache[locale.to_s][key.to_s]
end
+416 -17
View File
@@ -1,31 +1,430 @@
---
nola_2013.about:
languages: []
world.ca.ns.name:
languages:
- en
pages:
- /
data: []
home.its_awesome:
languages: []
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":1489,"locale":"en","key":"world.ca.ns.name","value":"Nova Scotia","interpolations":[],"is_proc":false,"created_at":"2014-05-04T05:27:57.814Z","updated_at":"2014-05-04T05:27:57.821Z"}'
time.formats.date:
languages:
- en
pages:
- /
data: []
- "/"
data:
- '{"id":1618,"locale":"en","key":"time.formats.date","value":"%B %d, %Y","interpolations":[],"is_proc":false,"created_at":null,"updated_at":null}'
date.month_names:
languages:
- en
pages:
- "/"
data:
- '{"id":1620,"locale":"en","key":"date.month_names","value":["~","January","February","March","April","May","June","July","August","September","October","November","December"],"interpolations":[],"is_proc":true,"created_at":"2014-07-06T19:53:45.689Z","updated_at":"2014-07-06T19:53:45.689Z"}'
conference.More_Info:
languages:
- en
pages:
- "/"
data:
- '{"id":92004,"locale":"en","key":"conference.More_Info","value":"More Info","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:04:56.683Z","updated_at":"2014-07-22T00:04:56.696Z"}'
Conferences:
languages: []
languages:
- de
- en
pages:
- /
data: []
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":1503,"locale":"de","key":"Conferences","value":"Konferenzen","interpolations":[],"is_proc":false,"created_at":"2014-05-04T14:27:46.772Z","updated_at":"2014-05-04T14:27:46.789Z"}'
- '{"id":1481,"locale":"en","key":"Conferences","value":"Conferences","interpolations":[],"is_proc":false,"created_at":"2014-05-04T05:05:06.760Z","updated_at":"2014-05-04T05:26:07.021Z"}'
Organizations:
languages: []
languages:
- en
- de
pages:
- /
data: []
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":1482,"locale":"en","key":"Organizations","value":"Organizations","interpolations":[],"is_proc":false,"created_at":"2014-05-04T05:05:46.445Z","updated_at":"2014-07-21T01:51:57.345Z"}'
- '{"id":1505,"locale":"de","key":"Organizations","value":"Organisationen","interpolations":[],"is_proc":false,"created_at":"2014-05-04T14:29:44.542Z","updated_at":"2014-05-04T14:29:44.557Z"}'
Resources:
languages:
- en
- de
pages:
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":1483,"locale":"en","key":"Resources","value":"Resources","interpolations":[],"is_proc":false,"created_at":"2014-05-04T05:05:50.964Z","updated_at":"2014-05-04T05:25:53.510Z"}'
- '{"id":1506,"locale":"de","key":"Resources","value":"Ressourcen","interpolations":[],"is_proc":false,"created_at":"2014-05-04T14:36:08.331Z","updated_at":"2014-05-04T14:36:08.438Z"}'
donate.button_label:
languages: []
pages:
- /
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
Sign_In:
conference.Register_Now:
languages:
- en
pages:
- "/"
data:
- '{"id":92005,"locale":"en","key":"conference.Register_Now","value":"Register Now","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:05:01.141Z","updated_at":"2014-07-22T00:05:01.155Z"}'
form.placeholder.Enter_your_step:
languages:
- en
pages:
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91970,"locale":"en","key":"form.placeholder.Enter_your_step","value":"NIL","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:48:28.017Z","updated_at":"2014-07-21T01:48:28.028Z"}'
form.placeholder.Enter_your_email:
languages:
- en
pages:
- "/"
data:
- '{"id":91961,"locale":"en","key":"form.placeholder.Enter_your_email","value":"someone@example.com","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:39:53.873Z","updated_at":"2014-07-21T02:17:18.066Z"}'
form.label.email:
languages:
- en
pages:
- "/"
data:
- '{"id":91944,"locale":"en","key":"form.label.email","value":"Email","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:33:11.129Z","updated_at":"2014-07-21T01:33:11.140Z"}'
register:
languages:
- en
pages:
- "/"
data:
- '{"id":91980,"locale":"en","key":"register","value":"Register","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:52:22.219Z","updated_at":"2014-07-21T01:52:22.261Z"}'
- '{"id":92009,"locale":"en","key":"register.new_organization.no_city_error","value":"Please
enter your organization''s city","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:08:55.720Z","updated_at":"2014-07-22T00:08:55.758Z"}'
- '{"id":92010,"locale":"en","key":"register.new_organization.no_street_error","value":"Please
enter your organization''s street address","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:09:13.603Z","updated_at":"2014-07-22T00:09:13.616Z"}'
- '{"id":92012,"locale":"en","key":"register.organizations.confirm_thanks.is_not_workshop_host.help","value":"","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:10:09.190Z","updated_at":"2014-07-22T00:10:09.203Z"}'
- '{"id":92013,"locale":"en","key":"register.organizations.confirm_thanks.title","value":"","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:10:13.343Z","updated_at":"2014-07-22T00:10:13.355Z"}'
- '{"id":92011,"locale":"en","key":"register.new_organization.same_email_as_attendee_error","value":"This
email needs to be different than your own personal email, we need to keep in touch
with your organization even if you''re gone in years to come.","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:09:49.895Z","updated_at":"2014-07-22T00:11:24.105Z"}'
- '{"id":92008,"locale":"en","key":"register.new_organization.no_name_error","value":"Please
tell us your organization''s name","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:06:48.248Z","updated_at":"2014-07-22T00:12:21.428Z"}'
world.ca.nb.name:
languages:
- en
pages:
- "/"
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":1487,"locale":"en","key":"world.ca.nb.name","value":"New Brunswick","interpolations":[],"is_proc":false,"created_at":"2014-05-04T05:27:41.999Z","updated_at":"2014-05-04T05:27:42.039Z"}'
form.placeholder.Enter_your_firstname:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91962,"locale":"en","key":"form.placeholder.Enter_your_firstname","value":"Francis?
Frances? Phransiz?","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:40:00.075Z","updated_at":"2014-07-21T01:53:51.732Z"}'
form.label.firstname:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91945,"locale":"en","key":"form.label.firstname","value":"First name","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:33:15.267Z","updated_at":"2014-07-21T01:33:15.278Z"}'
form.placeholder.Enter_your_lastname:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91963,"locale":"en","key":"form.placeholder.Enter_your_lastname","value":"Smith?
Ng?","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:42:51.398Z","updated_at":"2014-07-21T01:42:51.409Z"}'
form.label.lastname:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91948,"locale":"en","key":"form.label.lastname","value":"Last name","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:34:35.847Z","updated_at":"2014-07-21T01:34:35.859Z"}'
form.placeholder.Enter_your_username:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91971,"locale":"en","key":"form.placeholder.Enter_your_username","value":"How
would you like to be known?","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:48:51.318Z","updated_at":"2014-07-21T01:48:56.170Z"}'
form.label.username:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91955,"locale":"en","key":"form.label.username","value":"Preferred name","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:36:18.747Z","updated_at":"2014-07-21T01:36:18.758Z"}'
registration.primary.role_title:
languages: []
pages:
- /
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
form.label.is_participant:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91946,"locale":"en","key":"form.label.is_participant","value":"A conference
participant","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:34:27.255Z","updated_at":"2014-07-21T01:34:27.267Z"}'
form.label.is_volunteer:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91947,"locale":"en","key":"form.label.is_volunteer","value":"A volunteer","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:34:33.243Z","updated_at":"2014-07-21T01:34:33.255Z"}'
cancel:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":92003,"locale":"en","key":"cancel","value":"Cancel","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:04:53.461Z","updated_at":"2014-07-22T00:04:53.473Z"}'
next:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91977,"locale":"en","key":"next","value":"next","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:51:54.465Z","updated_at":"2014-07-21T01:51:54.477Z"}'
registration.cancel.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.cancel.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
'no':
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
'yes':
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.cancelled.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.cancelled.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.housing:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.housing.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.housing_extra.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
form.placeholder.Enter_your_.questions.housing_extra:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91959,"locale":"en","key":"form.placeholder.Enter_your_.questions.housing_extra","value":"Preferences?
Concerns? Whatever.","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:39:27.543Z","updated_at":"2014-07-21T01:39:27.555Z"}'
registration.questions.loaner_bike:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.loaner_bike.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.workshop:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.questions.workshop.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
'Yes':
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91981,"locale":"en","key":"Yes","value":"Yes","interpolations":[],"is_proc":false,"created_at":"2014-07-21T02:03:02.555Z","updated_at":"2014-07-21T02:03:02.627Z"}'
'No':
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91978,"locale":"en","key":"No","value":"No","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:51:55.944Z","updated_at":"2014-07-21T01:51:55.955Z"}'
registration.questions.other:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
form.placeholder.Enter_your_.questions.other:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91960,"locale":"en","key":"form.placeholder.Enter_your_.questions.other","value":"Anything
else that we should know....","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:39:45.419Z","updated_at":"2014-07-21T01:39:45.431Z"}'
submit:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
register.email.registration.subject:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
vars:
- :conference_title
data: []
register.email.registration.please_confirm:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
vars:
- :username
data: []
register.email.registration.confirm_button:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
register.organizations.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
register.organizations.description:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
all_organizations:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":92002,"locale":"en","key":"all_organizations","value":"All organizations","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:04:45.086Z","updated_at":"2014-07-22T00:04:48.200Z"}'
world.ca.name:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":113,"locale":"en","key":"world.ca.name","value":"Canada","interpolations":[],"is_proc":false,"created_at":null,"updated_at":"2014-04-27T21:35:22.347Z"}'
orgnizations_filter.placeholder:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91979,"locale":"en","key":"orgnizations_filter.placeholder","value":"Organization
name or location","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:52:13.721Z","updated_at":"2014-07-21T01:52:13.732Z"}'
my_organizations:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91976,"locale":"en","key":"my_organizations","value":"My Organizations","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:51:51.454Z","updated_at":"2014-07-21T01:51:51.465Z"}'
form.label.add_new_org:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91943,"locale":"en","key":"form.label.add_new_org","value":"My organization
isn''t listed here","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:33:04.823Z","updated_at":"2014-07-21T01:33:04.834Z"}'
form.label.no_org:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":91949,"locale":"en","key":"form.label.no_org","value":"I currently do not
belong to any organization","interpolations":[],"is_proc":false,"created_at":"2014-07-21T01:35:06.287Z","updated_at":"2014-07-21T01:35:06.299Z"}'
registration.thanks.title:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.thanks.remember_to_confirm:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
registration.thanks.remember_to_confirm.help:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
resend_confirmation_email:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
register.email.registration_confirmed.subject:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
vars:
- :conference_title
data: []
register.organizations.confirm_thanks.title:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":92013,"locale":"en","key":"register.organizations.confirm_thanks.title","value":"","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:10:13.343Z","updated_at":"2014-07-22T00:10:13.355Z"}'
register.organizations.confirm_thanks.is_not_workshop_host.help:
languages:
- en
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data:
- '{"id":92012,"locale":"en","key":"register.organizations.confirm_thanks.is_not_workshop_host.help","value":"","interpolations":[],"is_proc":false,"created_at":"2014-07-22T00:10:09.190Z","updated_at":"2014-07-22T00:10:09.203Z"}'
register.organizations.confirm_thanks.payment_notice:
languages: []
pages:
- "/conferences/:conference_type/:conference_slug/register(/:step)"
data: []
+4
View File
@@ -15,6 +15,10 @@ BikeBike::Application.routes.draw do
#get :register, :param => 'step'
#post 'register/next' => 'conferences#register_submit'
match 'register(/:step)' => 'conferences#register', via: [:get, :post]
get 'register/confirm/:confirmation_token' => 'conferences#register_confirm'
match 'register/pay-registration/:confirmation_token' => 'conferences#register_pay_registration', via: [:get, :post]
get 'register/confirm-payment/:confirmation_token' => 'conferences#register_confirm_payment'
get 'register/cancel-payment/:confirmation_token' => 'conferences#register_cancel_payment'
#patch 'register/step/:step' => 'conferences#register_step'
#resources :registrations, :path => 'registration' do
# get :form, on: :collection