Giter Club home page Giter Club logo

blog_backend's People

Contributors

k-sato0130 avatar k-sato1995 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

blog_backend's Issues

uninitialized constant DatabaseCleaner

error occurred while loading ./spec/requests/api/v1/posts_controller_spec.rb.
Failure/Error: add_grpup 'API', 'app/controllers/api/'

NoMethodError:
  undefined method `add_grpup' for main:Object
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile/fallback_context_proxy.rb:55:in `block in initialize'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile/fallback_context_proxy.rb:84:in `method_missing'
# ./spec/rails_helper.rb:9:in `block in <top (required)>'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile/execution.rb:26:in `instance_exec'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile/execution.rb:26:in `exec_in_proxy_context'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile.rb:43:in `dsl_eval'

# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/simplecov-0.16.1/lib/simplecov/configuration.rb:164:in `configure'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/simplecov-0.16.1/lib/simplecov.rb:49:in `start'
# ./spec/rails_helper.rb:6:in `<top (required)>'
# ./spec/requests/api/v1/posts_controller_spec.rb:1:in `require'
# ./spec/requests/api/v1/posts_controller_spec.rb:1:in `<top (required)>'
Linter
Severity  Provider  Description Line
00config/database.yml0002:22Prettier
LFUTF-8YAML
dev0 files1 update
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/docile-1.3.1/lib/docile.rb:43:in `dsl_eval'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/simplecov-0.16.1/lib/simplecov/configuration.rb:164:in `configure'
# /Users/katsuki/.rvm/gems/ruby-2.4.1/gems/simplecov-0.16.1/lib/simplecov.rb:49:in `start'
# ./spec/rails_helper.rb:6:in `<top (required)>'
# ./spec/requests/api/v1/posts_controller_spec.rb:1:in `require'
# ./spec/requests/api/v1/posts_controller_spec.rb:1:in `<top (required)>'
No examples found.

An error occurred in a `before(:suite)` hook.
Failure/Error: DatabaseCleaner.clean_with(:truncation)

NameError:
  uninitialized constant DatabaseCleaner
# ./spec/spec_helper.rb:5:in `block (2 levels) in <top (required)>'

API V2

Currently, the info on the SideNav on / page completely relies on the data from /api/v1/posts.

I want to get different data from different endpoints. For instance, I wanna get the data about post-categories from '/api/v1/categories`.

By doing this, I can create a sidenav that can be displayed anywhere on the blog. Thus, I can have /about, /issues and /projects pages with cool sidenav.

image

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.