Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Should add the route for the engine to your project. * Add troubleshooting documentation
- Loading branch information
Showing
3 changed files
with
19 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
module BcmsSeoSitemap::RouteExtensions | ||
def routes_for_bcms_seo_sitemap | ||
|
||
# Add this modules routes to the project. | ||
def mount_bcms_seo_sitemap | ||
match '/sitemaps/google.xml'=>'sitemaps#google', :as =>:google_sitemap | ||
mount BcmsSeoSitemap::Engine => "/bcms_seo_sitemap" | ||
end | ||
|
||
alias :routes_for_bcms_seo_sitemap :mount_bcms_seo_sitemap | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
require 'cms/module_installation' | ||
|
||
class BcmsSeoSitemap::InstallGenerator < Cms::ModuleInstallation | ||
add_migrations_directory_to_source_root __FILE__ | ||
|
||
# Add migrations to be copied, by uncommenting the following file and editing as needed. | ||
# copy_migration_file 'name_of_migration' | ||
|
||
|
||
def add_route | ||
route 'mount_bcms_seo_sitemap' | ||
end | ||
|
||
|
||
end |