Code Monkey home page Code Monkey logo

c80_yax's Introduction

C80Yax

Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/c80_yax. To experiment with that code, run bin/console for an interactive prompt.

TODO: Delete this and the text above, and describe your gem

Installation

Add this line to your application's Gemfile:

gem 'c80_yax'

Add dependencies to app's Gemfile:

gem 'rails', '4.2.0'
gem 'mysql2', '~> 0.3.18'

gem 'execjs'
gem 'therubyracer'

gem 'activeadmin'
gem 'devise'
gem 'cancan' # or cancancan
gem 'draper'
gem 'pundit'

gem 'font-awesome-rails'
gem 'friendly_id'
gem 'babosa'

gem 'bootstrap-select-rails'
gem 'c80_md'
gem 'c80_yax'

And then execute:

$ bundle

Add to app's active_admin.js.coffee:

#= require bootstrap
#= require bootstrap-select
#= require c80_yax

Add to app's active_admin.scss:

@import "font-awesome";
@import "bootstrap-sprockets";
@import "bootstrap";
@import "bootstrap-select";
@import "mat_design";
@import "c80_yax_backend";

Add to app's application_controller.rb:

helper C80Yax::Engine.helpers

Add to app's routes.rb:

    mount C80Yax::Engine => '/'

Usage

c80_yax's People

Contributors

c80609a avatar

Watchers

 avatar

c80_yax's Issues

Создание товара: если в поле "цена" вписать строку, получаем Mysql2 ошибку.

 INSERT INTO `c80_yax_strcat_15_items` (`item_id`,`item_title`,`is_main`,`is_hit`,`is_sale`,`strsubcat_id`,`strsubcat_slug`,`vendor_id`,`full_desc`,`image`,`is_ask_price`,`is_gift`,`is_starting`,`is_available`,`prop_1`,`prop_2`,`prop_9`,`prop_13`) VALUES ('7','123412341234','0','0','0','15','na-ploskuu-krovlu','-1','','','0','0','0','0','','','фыва','фыва')

D, [2017-06-27T15:28:00.713292 #8115] DEBUG -- : [94b9b167-762a-4359-a401-63b7a20aafeb] [TRACE] <StrsubcatRuntimeTables.hash_sql_execute> Mysql2::Error: Incorrect decimal value: '' for column 'prop_1'

Item Props: если удаляем свойство, которое связано с подкатегориями, надо пересоздать runtime таблицу.

И, возможно, почистить какие-то связанные таблицы.

В форме редактирования\создания предмета, у подкатегории которого удалили имя свойства, на месте удалённого свойства имеется строка без имени, но со значением. Она должна, по идее, исчезнуть.

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.