Richard's attempt at building Grapevine ;)
richardjortega / grapevine Goto Github PK
View Code? Open in Web Editor NEWRichard's attempt at building Grapevine ;)
Richard's attempt at building Grapevine ;)
Need to work on logic for sending the 6th email after users have already received their 5th and final review:
We also need to rough out what this email should say and how we should say it. Erik made a comment last week about saying it in a way that doesn't suggest we'll send them any emails missed through the time that they were free till they upgraded.
Integrate sixth email to sending based on email from Josh
Apparently you can signup a user without all that mess of JS and token, plus makes page load faster.
Need to review HTML comp with team before giving to Richard. (after we wake him up)
The signup doesn't take duplicate location names. I had to add a validates_uniqueness_of : name under the location model just so the client side validation would check and it wouldn't let it submit. Ideally we want users to track whatever businesses they want.
Started POST "/subscriptions" for 127.0.0.1 at 2012-08-16 18:32:39 -0500
Processing by SubscriptionsController#create as HTML
Parameters: {"utf8"=>"โ", "authenticity_token"=>"udpfFuP9s8QV/tP2UrhFvcqNXSB331qdSFpxviYhu+Y=", "user"=>{"first_name"=>"Richard", "last_name"=>"Ortega", "email"=>"[email protected]", "phone_number"=>"123456678", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "location"=>{"name"=>"Drew's American Grille", "street_address"=>"384 Treeline Park Apt 1513", "address_line_2"=>"", "city"=>"San Antonio", "state"=>"Texas", "zip"=>"78209", "website"=>""}, "subscription"=>{"plan_id"=>"1"}, "commit"=>"Sign up for Grapevine Email Alerts"}
(0.1ms) begin transaction
User Exists (0.2ms) SELECT 1 FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1
CACHE (0.0ms) SELECT 1 FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1
Binary data inserted for string
type on column encrypted_password
SQL (1.0ms) INSERT INTO "users" ("created_at", "current_sign_in_at", "current_sign_in_ip", "email", "encrypted_password", "first_name", "last_name", "last_sign_in_at", "last_sign_in_ip", "phone_number", "remember_created_at", "reset_password_sent_at", "reset_password_token", "sign_in_count", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) ["created_at", Thu, 16 Aug 2012 23:32:39 UTC +00:00], ["current_sign_in_at", nil], ["current_sign_in_ip", nil], ["email", "[email protected]"], ["encrypted_password", "$2a$10$t438uXUSToOlWDfJtHJKEOR/cqnC9VzvHL.us7OpQ4sI/Vqk9sjmG"], ["first_name", "Richard"], ["last_name", "Ortega"], ["last_sign_in_at", nil], ["last_sign_in_ip", nil], ["phone_number", "123456678"], ["remember_created_at", nil], ["reset_password_sent_at", nil], ["reset_password_token", nil], ["sign_in_count", 0], ["updated_at", Thu, 16 Aug 2012 23:32:39 UTC +00:00] commit transaction
(0.1ms) begin transaction
SQL (1.0ms) INSERT INTO "locations" ("address_line_2", "city", "created_at", "lat", "long", "name", "state", "street_address", "updated_at", "website", "zip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["address_line_2", ""], ["city", "San Antonio"], ["created_at", Thu, 16 Aug 2012 23:32:39 UTC +00:00], ["lat", nil], ["long", nil], ["name", "Drew's American Grille"], ["state", "Texas"], ["street_address", "384 Treeline Park Apt 1513"], ["updated_at", Thu, 16 Aug 2012 23:32:39 UTC +00:00], ["website", ""], ["zip", "78209"]]
SQLite3::ConstraintException: constraint failed: INSERT INTO "locations" ("address_line_2", "city", "created_at", "lat", "long", "name", "state", "street_address", "updated_at", "website", "zip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
(0.1ms) rollback transaction
Completed 500 Internal Server Error in 355ms
ActiveRecord::StatementInvalid (SQLite3::ConstraintException: constraint failed: INSERT INTO "locations" ("address_line_2", "city", "created_at", "lat", "long", "name", "state", "street_address", "updated_at", "website", "zip") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)):
app/controllers/subscriptions_controller.rb:8:in `create'
Create a webhook handler for Stripe changes to plan name to our database, instead of having to do this manually and match up names.
When a user is signing up and clicks into the Address field, types a little, deletes it, then tries to retype another address the system sends back a "can't be blank" issue.
Notes:
dependency on client_side_validations and devise
OMG wake up
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.