Coder Social home page Coder Social logo

Comments (8)

GBH avatar GBH commented on July 22, 2024

Do you mind tell me the steps you took to arrive at this error? I'm a bit confused about "installing Sofa and setting up demo site". This repo already has everything setup so it's just a matter of:

  • git clone this_repo
  • bundle install
  • rails s

Error you're getting looks like missing routing helper or active_link_to missing. That should not happen.

from comfy-demo.

zeitchef avatar zeitchef commented on July 22, 2024

Sorry, that wasn't clear. I started a fresh Rails installation beginning with Step 1 (I assumed this was a guided to setting up my own demo application, as implied in the opening paragraph).

from comfy-demo.

GBH avatar GBH commented on July 22, 2024

That's right. So one thing I can think of is something going on in your routes.rb file. Mind posting what's in there?

from comfy-demo.

zeitchef avatar zeitchef commented on July 22, 2024

Sure, thing.

Rails.application.routes.draw do
  comfy_route :cms_admin, path: "/admin"
  # Ensure that this route is defined last
  comfy_route :cms, path: "/"
  # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
end

from comfy-demo.

GBH avatar GBH commented on July 22, 2024

Seems like you're missing blog routes. Should look something like this: https://github.com/comfy/comfy-demo/blob/master/config/routes.rb

from comfy-demo.

GBH avatar GBH commented on July 22, 2024

Did that resolve your issue? Also I'm curious why blog routes didn't make it in. Blog generator should've put them in there,

from comfy-demo.

zeitchef avatar zeitchef commented on July 22, 2024

This corrected the issue for me. However, after adding the routes I could not name my site "Demo" (it complained that the hostname and identifier were already taken, which of course they could not have been).

I'm just a junior developer, so I won't presume to know here, but I noticed that Rails is automatically running rails active_storage:install during the initial rails new process. I believe this is also standard behavior for Rails 5.2. So to install Sofa, I needed to run the command again which perhaps the generator did not like?

Thanks again for all your effort on this project! It's my first experiments with a Rails CMS and I like it much better than the others I've found. Would you also consider PR's for the directions in the README? I'm a native English speaker and could make some very small suggestions that might help it read a little more naturally.

from comfy-demo.

GBH avatar GBH commented on July 22, 2024

That's odd about hostname and identifier. That's only possible if there's already something in the database. Didn't know that active storage generator is being run during rails new. Maybe it's a recent change. Will keep an eye for it. It really doesn't affect anything though.

If you have suggestions in mind, feel free to submit PRs!

from comfy-demo.

Related Issues (3)

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.