deployrb / rails5app Goto Github PK
View Code? Open in Web Editor NEWSimple Rails5App
License: MIT License
Simple Rails5App
License: MIT License
I think, ApplicationController.render
should return data in json
format when it works with jbuilder
templates. Right now it returns a string.
There is a similar problem and expectation from SO user:
Right now I solved it with simple helpers, like this:
module ChannelHelper
def render_view(params)
ApplicationController.render(params)
end
def render_json(params)
JSON.parse render_view(params)
end
def broadcast channel, message
ActionCable.server.broadcast channel, message
end
end
https://github.com/DeployRB/Rails5App/blob/master/app/channels/notes_channel.rb#L18
During I was working on this project I found a problem with bundler.
The bug was fixed. And I should check release v1.13.2
sed -i '' 's/production.example/development/g' config/ENV/development/services/*`
must be
sed -i '' 's/production.example/development/g' config/ENV/development/services/*
During I was working on this project I found a problem with Kaminari and SLIM template engine.
https://github.com/amatsuda/kaminari/issues/804
I checked it. Now it works fine with commit gem 'kaminari', github: 'amatsuda/kaminari', branch: 'cbcfe341'
WARNING on line 32 of /home/vagrant/.rvm/gems/ruby-2.4.0/bundler/gems/protozaur-a39e67a7b0cf/app/assets/stylesheets/ptz/inputs_buttons/fileinputs.sass:
This selector doesn't have any properties and will not be rendered.
P.S.: maybe this off topic
Add nodejs to system requirements
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.