Coder Social home page Coder Social logo

qna's People

Contributors

ikuznetsow avatar

Stargazers

 avatar

Watchers

 avatar  avatar

qna's Issues

Q1

.. index using: :btree

Q2

= form_for [@question, @answer] do |f|
/- if @answer.errors.any?
ul
- @answer.errors.full_messages.each do |message|
li= message

Devise 401 Unauthorized capture?

Started POST "/questions/25/answers" for ::1 at 2015-12-28 04:19:17 +0100
Processing by AnswersController#create as JS
Parameters: {"utf8"=>"✓", "answer"=>{"body"=>"afwf"}, "commit"=>"Create Answer", "question_id"=>"25"}
Completed 401 Unauthorized in 1ms (ActiveRecord: 0.0ms)

Как понимать и выводить возможные ошибоки при save

@vkurennov
Если ты делаешь create, то нет смылса делать save ниже, потому что create сразу создаст объект. Нужно использовать build или new, чтобы потом вывести ошибки валидации
@elijahik Owner
Исправил,
Про снятие и вывод возмодных ошибок спрошу дополнительно

Q3

resources :answers do
patch :set_best, on: :collection
end

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.