Giter Club home page Giter Club logo

Comments (7)

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

What version of spree, rails and static_content are you using?

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

On 18 mei 2012, at 05:53, "htaykhaing" [email protected] wrote:

Hi,
I tried out spree static content. I added about us page by setting Slug as "/about ". It's redirecting to the following.
http://localhost:3000/about#Journey::Path::Pattern:0x007fb94ca4bca0/about

However, I can access to About us page if I try on browser as follow.
http://localhost:3000/about

Could you please advice me?
Thanks,
Khaing


Reply to this email directly or view it on GitHub:
#57

from spree_static_content.

amer avatar amer commented on July 26, 2024

I'm having the same problem here.

I'm using Spree 1.1.1
spree_static_content branch 1-1-stable
Ruby 1.9.2-p320

from spree_static_content.

amer avatar amer commented on July 26, 2024

Sorry I forgot to say that I'm using Rails 3.2.3

from spree_static_content.

peterberkenbosch avatar peterberkenbosch commented on July 26, 2024

There must be missing a to_s somewhere.. Will look into this asap

Peter Berkenbosch
--------—-------—---------—
Wat niet kan, is nog nooit gebeurd.
-------—--------—-----------—
Verstuurd vanaf mijn iPhone.

On 18 mei 2012, at 23:49, "Amer Jazaerli" [email protected] wrote:

Sorry I forgot to say that I'm using Rails 3.2.3


Reply to this email directly or view it on GitHub:
#57 (comment)

from spree_static_content.

amer avatar amer commented on July 26, 2024

Loading development environment (Rails 3.2.3)
1.9.2p320 :001 > Rails.application.routes.named_routes[:spree].path.to_s
=> "#Journey::Path::Pattern:0x000000033a6530"

path.to_s returns "#Journey::Path::Pattern:0x000000033a6530" If I'm not mistaken, something wrong went here?!

from spree_static_content.

amer avatar amer commented on July 26, 2024

I made a change pp/views/spree/static_content/_static_content_list.html.erb , line 4

<% page_uri = Rails.application.routes.named_routes[:spree].path.spec.to_s == '/' ? page.slug : Rails.application.routes.named_routes[:spree].path.spec.to_s + page.slug %>

It worked for me.

from spree_static_content.

htaykhaing avatar htaykhaing commented on July 26, 2024

Thank you @amer and @peter .. It did worked for me.

from spree_static_content.

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.