search for: choose_layout

Displaying 8 results from an estimated 8 matches for "choose_layout".

2006 Jul 18
4
Multiple Layouts - Single Controller
How do I do multiple layouts for a single controller: I am aware I can do... render(:layout =>''mylayout'') for individual actions, however this becomes a multiple render problem. I tried this... layout "mylayout", :except => [:myaction, :myotheraction] layout "myotherlayout", :only => [:myaction, :myotheraction] However that doesn''t
2006 Feb 21
4
customizing layouts for functions
I want to be able to have different layouts in my rails program for different functions. For example, when a person first comes to the site the layout will have a link that says ''home'', ''login'', or register on the menu bar. Once the user logs in however, the layout will change. I want it to show the links ''account manager'',
2010 Jul 05
1
[PATCH] gettext initiation problem Thanks to Thibault Deloffre <tdeloffre@linagora.com>
...ilable for all controllers. +require 'gettext_rails' class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService -# init_gettext "ovirt" + init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section -- 1.7.0.1
2010 Mar 31
1
[PATCH] Upgrading the server to work with Rails 2.3.4.
...b/src/app/controllers/application_controller.rb @@ -25,7 +25,7 @@ class ApplicationController < ActionController::Base # FIXME: once all controller classes include this, remove here include ApplicationService - init_gettext "ovirt" +# init_gettext "ovirt" layout :choose_layout before_filter :is_logged_in, :get_help_section diff --git a/src/config/environment.rb b/src/config/environment.rb index 913b9f9..9c1a9fa 100644 --- a/src/config/environment.rb +++ b/src/config/environment.rb @@ -20,7 +20,7 @@ # Be sure to restart your web server when you modify this file....
2006 May 14
12
Is there a place for java in Ruby on Rails apps?
Hi all, I''m asking this question from the standpoint of a developer with almost 10 years experience with Microsoft technologies, mostly doing server side component and database work. So, I''m not very familiar with the java world. Can anyon tell me how/if java development can complement Ruby on Rails development? I''m not interested in how java can duplicate Rails
2009 Jul 07
0
[PATCH server] Update app to work with rails 2.3.2
...onController::Base - # FIXME: once all controller classes include this, remove here - include ApplicationService - - # Pick a unique cookie name to distinguish our session data from others' - session :session_key => '_ovirt_session_id' - init_gettext "ovirt" - layout :choose_layout - - before_filter :is_logged_in, :get_help_section - - # General error handlers, must be in order from least specific - # to most specific - rescue_from Exception, :with => :handle_general_error - rescue_from PermissionError, :with => :handle_perm_error - rescue_from ActionError, :with...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...app/controllers/application.rb b/src/app/controllers/application.rb index e9c515f..040b8a3 100644 --- a/src/app/controllers/application.rb +++ b/src/app/controllers/application.rb @@ -30,19 +30,6 @@ class ApplicationController < ActionController::Base init_gettext "ovirt" layout :choose_layout - # FIXME: once service layer is complete, the following before_filters will be - # removed as their functionality has been moved to the service layer - # pre_new - # pre_create - # pre_edit - # pre_show - # authorize_admin - before_filter :pre_new, :only => [:new] - before_filter :pr...
2009 Jul 20
9
Upgrade server to run on Rails 2.3.2/F11
Note that one of the 8 patches (#6) will be sent separately in reply to this email, as some of the replaced lines are too long, so git won't let me send the email. However, there is nothing wrong with that patch, and it should be applied in the sequence listed below. Note also that I assume this will be tested on a clean f11 install, rather than an upgrade of an existing ovirt server