kicking to layouts after site creation
Oleg
committed Jul 10, 2011
commit f1883949ec7518ba2853509dd1a2b36d76600a78
Showing 3
changed files with
4 additions
and 3 deletions
README.md
+2
-1
| @@ | @@ -4,11 +4,12 @@ ComfortableMexicanSofa is a powerful CMS Engine for your Rails 3 applications. U |
| Features | |
| -------- | |
| - | * Powerful Page templating |
| + | * Powerful page templating capability |
| * Simple integration with Rails 3.0 and 3.1 apps | |
| * Multiple Sites from a single installation | |
| * Multilingual | |
| * Fixtures for initial content population | |
| + | * Revision History |
| * Great reusable admin interface | |
| * Almost no 3rd party library dependencies | |
app/controllers/cms_admin/sites_controller.rb
+1
-1
| @@ | @@ -22,7 +22,7 @@ class CmsAdmin::SitesController < CmsAdmin::BaseController |
| def create | |
| @site.save! | |
| flash[:notice] = I18n.t('cms.sites.created') | |
| - | redirect_to :action => :edit, :id => @site |
| + | redirect_to cms_admin_site_layouts_path(@site) |
| rescue ActiveRecord::RecordInvalid | |
| flash.now[:error] = I18n.t('cms.sites.creation_failure') | |
| render :action => :new | |
test/functional/cms_admin/sites_controller_test.rb
+1
-1
| @@ | @@ -49,7 +49,7 @@ class CmsAdmin::SitesControllerTest < ActionController::TestCase |
| } | |
| assert_response :redirect | |
| site = Cms::Site.last | |
| - | assert_redirected_to :action => :edit, :id => site |
| + | assert_redirected_to cms_admin_site_layouts_path(site) |
| assert_equal 'Site created', flash[:notice] | |
| end | |
| end | |