Comments (5)
Have you updated to the latest code? Perhaps you are still using an older version that still contains the page caching, which has since been removed.
from spree_static_content.
I double checked and I am using 1-3-stable branch:
(my Spree is also 1.3.0)
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git', :branch => '1-3-stable'
I looked to make sure and page caching has indeed been removed in 1-3-stable. So it must be something else?
from spree_static_content.
What commit does you Genfile.lock indicate your using for the extension?
Try running bundle update spree_static_content if it does not indicate
your using the latest commit in the branch.
On Saturday, January 19, 2013, Aleksandr Melentiev wrote:
I double checked and I am using 1-3-stable branch:
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git', :branch => '1-3-stable'
I looked to make sure and page caching has indeed been removed in
1-3-stable. So it must be something else?—
Reply to this email directly or view it on GitHubhttps://github.com//issues/102#issuecomment-12464913.
from spree_static_content.
You are right, seems like master was merged into 1-3-stable only 3 days ago so I had to bundle update spree_static_content. I had to run rails g spree_static_content:install for new migrations, but was getting an error:
SQLite3::SQLException: no such table: pages: ALTER TABLE "pages" RENAME TO "spree_pages"
For some reason my table was already named spree_pages; so I had to run the add_render_as_partial_for_layout_for_spree_pages migration individually. Everything is working now.
Not sure why the table was already named spree_pages to be honest, but perhaps add a check to the migration like so, in case others updating might see same issue:
class PrefixPagesTableName < ActiveRecord::Migration
def change
if table_exists?(:pages)
rename_table :pages, :spree_pages
end
end
end
EDIT: figured it out, it's because of #71 where a migration was renamed, so I already had it run before which renamed pages to spree_pages, but with an update it copied over the same migration with a new name, hence the error.
from spree_static_content.
I opened a PR #105 for the migration issue described above.
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.