GithubHelp home page GithubHelp logo

Comments (6)

AlexRiedler avatar AlexRiedler commented on June 20, 2024

@jwlms what do you mean by a backing model? (unfamiliar with the use of that term)

from handlebars_assets.

AlexRiedler avatar AlexRiedler commented on June 20, 2024

Have you potentially set the template_namespace to something different then HandlebarsTemplates ?

from handlebars_assets.

jwlms avatar jwlms commented on June 20, 2024

@jwlms what do you mean by a backing model? (unfamiliar with the use of that term)

I just mean a model in general. A Contact model, would generally have a view /contacts/new.html etc. I think you would say the contact pages have a backing Contact model. Maybe it's not that important in my case.

Have you potentially set the template_namespace to something different then HandlebarsTemplates ?

I did attempt this at an earlier point just to see if I could get this gem working, but was unsuccessful. Currently I don't have template_namespace set. It's possible it's something with my applications config though.. I will give this a try on a new Rails app.

from handlebars_assets.

jwlms avatar jwlms commented on June 20, 2024

I'm seeing the same behavior with a new rails app. There doesn't seem to be anything created in the HandlebarsTemplates namespace. Is there possibly a step that I'm missing? (fwiw I'm using Rails 3).

from handlebars_assets.

jwlms avatar jwlms commented on June 20, 2024

@AlexRiedler - I put up a PR to fix the issue I've run into. This seems like it should have limited side effects, but I don't know the project well.

Alternatively, to get this to work on Rails 3 I was able to add this to my application.rb file:

    config.before_initialize do
      Sprockets.register_engine '.hbs', HandlebarsAssets::HandlebarsTemplate
    end

Which could be used as an alternative to the PR if it's not up to spec.

from handlebars_assets.

AlexRiedler avatar AlexRiedler commented on June 20, 2024

cleaning up, going to close cause referenced PR was merged, and making sure this all works with Rails 7

from handlebars_assets.

Related Issues (20)

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.