search for: randomcontroller

Displaying 4 results from an estimated 4 matches for "randomcontroller".

2006 Aug 03
3
Calling/Executing javascript functions from controller
Hey all, How can I call a javascript function from my controller? Is it possible to simply call a javascript function from directly in the controller WITHOUT needing an AJAX request to come through via link_to_remote or remote form? As an example I''ve tried: class RandomController < ApplicationController before_filter :login_required, :except => [:index, :initialize] def index @session[:mode] = ''view'' @map = GMap.new("map") render :update do |page| page.call("resizeMap") end @map.control_init(:large_map =&gt...
2006 Jul 29
2
Instance Variables within Controller during AJAX request
Hey all, I''m trying to do something sorta simple... There are three button ids: ''view'', ''build'', ''search'' My controller looks like this: class RandomController < ApplicationController before_filter :login_required, :except => [:index, :initialize] def initialize @mode = ''view'' end def index store_location end def update_mode render :update do |page| page[@mode].className = ''tab''...
2011 Feb 08
3
puppetmaster fails to start using dist puppet.conf file
I''m having an issue with the default puppet.conf distributed with puppet 2.6.4 (FreeBSD port). I''ve reproduced the problem with a completely fresh install on a completely fresh OS in a VM. Under these conditions, running puppetmaster with no config is fine, but simply moving the puppet.conf-dist file to puppet.conf causes the following errors on console: Performing sanity
2006 Aug 03
0
N00b question...but here it goes
...ion from my controller? Is it possible to simply call a javascript function from directly in the controller without needing an AJAX request to come through via link_to_remote or remote form? I''m not talking through an RJS link_to_remote AJAX etc. As an example I''ve tried: class RandomController < ApplicationController before_filter :login_required, :except => [:index, :initialize] def index @session[:mode] = ''view'' @map = GMap.new("map") render :update do |page| page.call("resizeMap") end @map.control_init(:large_...