Git Product home page Git Product logo

rails5app's People

Contributors

the-teacher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

dimagv vidgarvii

rails5app's Issues

Problem with `ApplicationController.render` when it renders JBuilder template

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:

http://stackoverflow.com/questions/39103685/can-you-invoke-jbuilder-to-create-a-native-rails-object-instead-of-a-rendered-st

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

Fix example sed command

sed -i '' 's/production.example/development/g' config/ENV/development/services/*`

must be

sed -i '' 's/production.example/development/g' config/ENV/development/services/*

Protozaur WARNING

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

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.