Comments (7)
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/aboutHowever, I can access to About us page if I try on browser as follow.
http://localhost:3000/aboutCould you please advice me?
Thanks,
Khaing
Reply to this email directly or view it on GitHub:
#57
from spree_static_content.
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.
Sorry I forgot to say that I'm using Rails 3.2.3
from spree_static_content.
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.
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.
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.
Thank you @amer and @peter .. It did worked for me.
from spree_static_content.
Related Issues (20)
- Remove the gem HOT 4
- ActiveRecord::StatementInvalid (Could not find table 'spree_pages')
- Error Installing
- Is this working in Spree 3.2.0 HOT 2
- Please specify the Rails release the migration was written for in gem 'spree_static_content', github: 'spree-contrib/spree_static_content' HOT 2
- Readme is not up to date HOT 2
- Problem with Translations HOT 2
- Mysql2::Error: Table 'development.spree_taxonomy_translations' doesn't exist: SHOW FULL FIELDS FROM `spree_taxonomy_translations` HOT 3
- NoMethodError in Spree::Home#index HOT 5
- Meta Description and Meta Keywords Not Being Applied HOT 1
- methods `find_by` stop working HOT 5
- How do I get the Pages menu item in the admin
- Problems with translations, locale used in slug
- Problems with Spree 4.0 HOT 1
- Table 'myproject_development.spree_page_translations' doesn't exist HOT 2
- Installation failure with a `Sprockets::Railtie::ManifestNeededError` HOT 1
- I can't translate pages HOT 3
- When trying Foreign link (URL) it doesnt work
- Links in footer doesn't work HOT 1
- after intalling the extension on spree nothing shows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spree_static_content.