search for: dashboardcontrol

Displaying 11 results from an estimated 11 matches for "dashboardcontrol".

2009 May 14
0
uninitialized constant DashboardController::User
Hi all, I''m new to rails and I''ve been getting this error as shown in my subject. Is there anyone out there who could possibly help in this matter. Thanks
2006 Jul 05
1
Routing error "unitialized constant" after refactoring
...> ''user/dashboard'', :action => ''boo'' map.connect '':controller/:action/:id'', :controller => ''user/dashboard'', :action => ''boo'' end And app/controllers/user/dashboard_controller.rb: class User::DashboardController < ApplicationController def index render :text => "wtf?!" end end If I access http://0.0.0.0:3000/user/dashboard/ the controller loads correctly. I''m wondering why routing complains on DashboardController rather than User::DashboardController.. This is dri...
2010 Apr 05
3
syntax error, unexpected '\n', expecting tASSOC
Hey all, I get the following error. Now I know it''s related to a curly brace, but it seems that all curly braces are properly in place. So I''m not sure why I get this error: SyntaxError in DashboardController#panels rails/app/controllers/dashboard_controller.rb:170: syntax error, unexpected ''\n'', expecting tASSOC def panels addDetailToContainer = "function() { var detailContainer = jQuery(''#container'').prepend( ''<d...
2007 Jun 07
0
Functional Tests Fail - No URL can be generated for hash
...s and I should visit dashboard/intro.rhtml. My unit test looks like: require ''dashboard_controller'' require ''action_controller/test_process'' require ''action_controller/assertions'' # Raise errors beyond the default web-based presentation class DashboardController; def rescue_action(e) raise e end; end class DashboardControllerTest < Test::Unit::TestCase def setup @controller = DashboardController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end # let''s test our main page...
2011 Aug 07
9
How can I disable Rails 3.1's ActiveRecord Query Caching?
...cord/ConnectionAdapters/QueryCache.html without comments or examples, unsurprisingly). This doesn''t appear to work as I''m still seeing prepared statement caching going on in my log file: Started GET "/dashboard" for 127.0.0.1 at 2011-08-06 22:43:07 -0600 Processing by DashboardController#index as HTML User Load (13.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1]] Rendered dashboard/index.html.erb within layouts/application (0.3ms) CACHE (0.0ms) SELECT "users".* FROM "users"...
2006 Jul 07
4
Controllers - model vs. use case centric
...d MVC developers mixing the two. However any comments on the people''s experience would be much appreciated. --- I also have a question regarding menu pages, I have many maintenance actions that I wish to group into a section of the application. I was thinking of having something like DashboardController with actions such as ''maintenance'', ''warehouse'', ''accounts'' etc. These would contain views with links to major controllers and actions specific to that area of work. This seems reasonably ''tidy'', however has anyone tackl...
2010 May 10
1
Rails/mongrel/httpd issue - F13, rails 2.3.5
...to reach the ovirt web interface, I see the html tags (kerberos auth is working) : <html><body>You are being <a href="http://ovirt.admin.virt.par.lng/ovirt/login/login">redirected</a>.</body></html> and logs : ==> rails.log <== Processing DashboardController#index (for 10.75.128.51 at 2010-05-10 10:37:25) [GET] Redirected to http://ovirt.admin.virt.par.lng/ovirt/login/login Filter chain halted as [:is_logged_in] rendered_or_redirected. Completed in 5ms (DB: 28) | 302 Found [http://ovirt.admin.virt.par.lng/ovirt/] ==> mongrel.log <== Mon May 1...
2006 Jan 10
2
Make link_to_remote call redirect current view, not read redirected content
...:failure => %q{alert(''Failure to update: '' + request.responseText)}, 302 => %q(alert(''Redirect To: '' + request.inspect))}, { :title => ''Convert to Party'', :id => "create-#{request.id}" })%> class DashboardController < ApplicationController def convert_to_party @contact_request = ContactRequest.find(params[:id]) @party = @contact_request.to_party if @party.save then @contact_request.mark_processed redirect_to :controller => ''/admin/parties'', :action => :ed...
2006 Mar 26
2
Controllers in modules, not recognised - driving me mad!
...ng back to Rails 1.0 and tried Edge Rails) and the problem occurs using lighty, webrick and when I run my functional tests (I have a few assert_routings). I have a Dashboard controller in an admin module. I have the following file: app/controllers/admin/dashboard_controller.rb --- class Admin::DashboardController < ActionController::Base def index # do stuff end end Now, this should be automatically picked up by Rails as http://myapp/admin/dashboard and http://myapp/admin/dashboard/index - but they aren''t, I get routing errors. I also have the following test: require File.dirname...
2006 Apr 23
37
Newbie .. nil object and missing something obvious
...ng the dreaded nil object exception. I''ve reduced the code to what I think is the minimal case, and it''s still not working. Code presented below.. ---------------------------------------------------------------------- in "app/controllers/dashboard_controller.rb" class DashboardController < ApplicationController def display_calendar @dates[0] = Date.Today @dates << Date.Today + 1 end end in "app/views/dashboard/display_calendar.rhtml" <h1>Display Calendar</h1> <p> First day should be <%= Date.today %><br/> Second...
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, +# MA 02110-1301, USA. A copy of the GNU General Public License is +# also available at http://www.gnu.org/copyleft/gpl.html. + +class Cloud::DashboardController < Cloud::CloudController + def index + end + +end diff --git a/src/app/controllers/cloud/instance_controller.rb b/src/app/controllers/cloud/instance_controller.rb new file mode 100644 index 0000000..a4d0fd8 --- /dev/null +++ b/src/app/controllers/cloud/instance_controller.rb @@ -0,0 +1,95 @...