Giter Site home page Giter Site logo

grapevine's Introduction

grapevine

Richard's attempt at building Grapevine ;)

grapevine's People

Contributors

jo5hs avatar richardjortega avatar rsds143 avatar spencercooley avatar thor74 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

mcampbellga

grapevine's Issues

6th email followup

Need to work on logic for sending the 6th email after users have already received their 5th and final review:

  1. On a specific day of the month?
  2. X number of days from when they received their last review?
  3. When a 6th review comes in, send the 'you missed it' email?

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.

cc/ @Thor74 @richardjortega

Signup doesn't take duplicate location names

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'

Validation messes up when tabbed out of address

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.