search for: dashboard_controller

Displaying 7 results from an estimated 7 matches for "dashboard_controller".

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( ''<div id=\"details-chart\"></div>'...
2007 Jun 07
0
Functional Tests Fail - No URL can be generated for hash
...I have developed a Rails application, but not using the creation scripts that come with the rails distribution. Consequently, no test scaffolding is available to me, and I''m trying to write my functional tests from scratch. I have what might be considered a standard plain old controller (dashboard_controller.rb) that I''m trying to test. There are many actions, but one in particular simply forwards to an introduction page. Here is the code for that action: def intro end Real simple. Just returns and I should visit dashboard/intro.rhtml. My unit test looks like: require ''dashboar...
2006 Jul 05
1
Routing error "unitialized constant" after refactoring
...ct '''', :controller => ''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::...
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...re we can setup the service layer/ar classes to be a separate rpm that two different wuis (admin/cloud) could call into, enhancing modularity. Signed-off-by: Jason Guiditta <jguiditt at redhat.com> --- src/app/controllers/cloud/cloud_controller.rb | 35 ++++ src/app/controllers/cloud/dashboard_controller.rb | 24 +++ src/app/controllers/cloud/instance_controller.rb | 95 +++++++++++ src/app/helpers/cloud/cloud_helper.rb | 21 +++ src/app/helpers/cloud/dashboard_helper.rb | 21 +++ src/app/helpers/cloud/instance_helper.rb | 38 +++++ src/app/views/cloud/d...
2006 Mar 26
2
Controllers in modules, not recognised - driving me mad!
...s RC1 (but I''ve also tried rolling 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...
2006 Apr 23
37
Newbie .. nil object and missing something obvious
...Ruby on Rails, and I''m getting 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 <%= Dat...
2006 Jan 31
13
Acts_as_authenticated
Hello I have been trying a number of security/login generators recently. My favourite so far is the Acts_as_authenticated. I like the fact that it is only billed as a starting point and doesn''t try to do everything. I would like to add security roles to it, so that some of my controller actions can only be used by an admin role. Has anybody implemented this using