Giter Club home page Giter Club logo

toodo's Issues

error after registering

items/index.html: line 0: items/_li.html: line 1: item: unknown identifier github.com/gobuffalo/pop.(*Connection).Transaction.func1 /Users/leonardoke/go/src/github.com/gobuffalo/pop/connection.go:131 github.com/gobuffalo/pop.(*postgresql).Lock /Users/leonardoke/go/src/github.com/gobuffalo/pop/postgresql.go:164 github.com/gobuffalo/pop.(*Connection).Transaction /Users/leonardoke/go/src/github.com/gobuffalo/pop/connection.go:118 github.com/gobuffalo/buffalo/middleware.glob..func1.1.1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/middleware/pop_transaction.go:23 github.com/gobuffalo/buffalo/middleware/csrf.glob..func1.1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/middleware/csrf/csrf.go:120 github.com/gobuffalo/buffalo/middleware.ParameterLogger.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/middleware/param_logger.go:28 github.com/gobuffalo/buffalo/middleware/ssl.ForceSSL.func1.1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/middleware/ssl/ssl.go:26 github.com/gobuffalo/buffalo.sessionSaver.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/session.go:70 github.com/gobuffalo/buffalo.RequestLoggerFunc.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/request_logger.go:51 github.com/gobuffalo/buffalo.(*App).PanicHandler.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/errors.go:71 github.com/gobuffalo/buffalo.RouteInfo.ServeHTTP /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/handler.go:80 github.com/gobuffalo/buffalo.(*RouteInfo).ServeHTTP <autogenerated>:1 github.com/gorilla/mux.(*Router).ServeHTTP /Users/leonardoke/go/src/github.com/gorilla/mux/mux.go:162 github.com/markbates/refresh/refresh/web.ErrorChecker.func1 /Users/leonardoke/go/src/github.com/markbates/refresh/refresh/web/web.go:23 net/http.HandlerFunc.ServeHTTP /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:1947 github.com/gobuffalo/buffalo.(*App).ServeHTTP /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/server.go:110 net/http.serverHandler.ServeHTTP /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:2694 net/http.(*conn).serve /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:1830 runtime.goexit /usr/local/Cellar/go/1.10.1/libexec/src/runtime/asm_amd64.s:2361 github.com/gobuffalo/buffalo.sessionSaver.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/session.go:72 github.com/gobuffalo/buffalo.RequestLoggerFunc.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/request_logger.go:51 github.com/gobuffalo/buffalo.(*App).PanicHandler.func1 /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/errors.go:71 github.com/gobuffalo/buffalo.RouteInfo.ServeHTTP /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/handler.go:80 github.com/gobuffalo/buffalo.(*RouteInfo).ServeHTTP <autogenerated>:1 github.com/gorilla/mux.(*Router).ServeHTTP /Users/leonardoke/go/src/github.com/gorilla/mux/mux.go:162 github.com/markbates/refresh/refresh/web.ErrorChecker.func1 /Users/leonardoke/go/src/github.com/markbates/refresh/refresh/web/web.go:23 net/http.HandlerFunc.ServeHTTP /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:1947 github.com/gobuffalo/buffalo.(*App).ServeHTTP /Users/leonardoke/go/src/github.com/gobuffalo/buffalo/server.go:110 net/http.serverHandler.ServeHTTP /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:2694 net/http.(*conn).serve /usr/local/Cellar/go/1.10.1/libexec/src/net/http/server.go:1830 runtime.goexit /usr/local/Cellar/go/1.10.1/libexec/src/runtime/asm_amd64.s:2361

dev does not start

as I am just started to learn all this, I do not (yet) have a clue what to do next.

toodo: 2017/05/11 21:13:48 === Rebuild on: :start: ===
toodo: 2017/05/11 21:13:48 === Running: go build -v -i -o tmp/toodo-build (PID: 26381) ===
github.com/gobuffalo/toodo
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.output.path: The provided value "./public/assets" is not an absolute path!
2017/05/11 21:13:49 exit status 1

with the following version

On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean
09:14:35 emicklei@Ernests-MacBook-Pro:~/go/src/github.com/gobuffalo/toodo (master=) $ git log
commit 84a5b2b449df40685fe4f259e3867ce46034c9b6
Author: Mark Bates <[email protected]>
Date:   Tue Mar 28 10:29:51 2017 -0400

c.Value("tx") and c.Bind

Hello, Just studying the code to gain some understanding. I was wondering the following

What does tx := c.Value("tx").(*pop.Connection) achieve here? Value method doesn't tell me more than just getting the key value from the current context. Just not clear where tx comes from.
https://github.com/gobuffalo/toodo/blob/master/actions/todos.go#L36

I'm also wondering what c.Bind() does as well.

Any clarification would be appreciated. Thanks

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.