search for: indexcontrol

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

2007 Sep 24
3
Trouble using backgroundrb
...rating it into my rails-app. I''m using namespaces to differentiate between the parts of my app. When I want to create a new worker, it seems that it cannot find the worker object. Here''s my code: -------------------- controller app/passwd/index -------------------- class Passwd::IndexController < ApplicationController layout ''default'' def index $subtitle = "AIX user inventory tool" end def createReport Passwdentry.delete_all User.delete_all session[:job_key] = MiddleMan.new_worker(:class => "passwd:get_passwds_worker&quot...
2005 Dec 21
0
help with sending email form
...post", "email", :size => 20, :value => @email, :class=>"form" %><br /><br /> <input type="submit" value="Resend &#187;" /> <%= end_form_tag %> *********************************************************** class IndexController < ApplicationController def index @p = params[:index] Notifier::deliver_signup_thanks(@p) end end *********************************************************** class Notifier < ActionMailer::Base def signup_thanks(p) # Email header info MUST be added here @recipients = "frocco...
2007 Mar 31
0
routing problem with controllers in other dirs
...:AccountController < ApplicationController -- ~ /Foo/account_controller.rb -- Strange thing is - when i point my browser to mydomain.com/Foo i always get redirected to /Foo/account/login (where exception takes place), that means - get right routing for /Foo/Index controller which is: class Foo::IndexController < Foo::AccountController Even more strange thing: this worked on RoR 1.2.2. I began getting exceptions after i upgraded to RoR 1.2.3. I''m quite lost. I''ve already tried IRC channel in freenode.net Thanks for any help. --~--~---------~--~----~------------~-------~--~----~...
2006 Nov 04
2
strange errors in dev.log and webserver log
...ings.taggable_type = ''Card'') Tag Load (0.002008) SELECT * FROM tags Tag Columns (0.003178) SHOW FIELDS FROM tags Rendered cards/_form (0.02718) Completed in 0.05205 (19 reqs/sec) | Rendering: 0.02855 (54%) | DB: 0.01755 (33%) | 200 OK [http://dev/cards/edit/5] Processing IndexController#not_found (for 192.168.2.6 at 2006-09-26 16:34:01) [GET] Session ID: 548258e6b4bb56506af5cb9859226509 Parameters: {"anything"=>["images", "fieldbg.gif"], "action"=>"not_found", "controller"=>"index"} Rendering pub...
2008 Jan 22
9
Cannot connect when spawning new workers on demand
...n app that lets you run a query on several servers at once, which are selected at runtime. Therefore, for each server that is selected, I spawn a new worker and assign its work. After everything is completed, the workers are deleted. I often get this error: BackgrounDRb::BdrbConnError in Multi com/indexController#uitvoeren Not able to connect Here''s the code that spawns the workers: (sorry for the linewraps) def uitvoeren # put selected servers in a session session[:selectedservers] = params[:servers] session[:running_cmd] = 1 @selected_servers = System.find_all_by_id(params...
2006 Jun 08
5
Suggestions wanted for non-logged-in user in closed beta phase
Will shortly be deploying first iteration of app to some beta testers (i.e. friends), and want them to be able see it both from logged-in view and guest (i.e. not logged-in) view. The two are a fair bit different. It''s a closed beta, so (hopefully) no pages (other than a blank login page) will be visible. The question is, what''s the best way for them to be able to see (and
2010 Dec 10
0
Encoding issues when uploading files
...and have isolated the strange behaviour on a simple empty project: view: <% form_tag({:action => ''upload''}, :multipart => true) do %> <%=text_field_tag :desc %> <%=file_field_tag :file %> <%=submit_tag %> <% end %> controller: class IndexController < ApplicationController def index end def upload render :text => params[:desc] + params[:file].original_filename end end The problem occurs, when I use national-specific characters in both "desc" field and the name of the file I''m uploading Error: incompa...
2006 Jan 03
22
Large-scale application
Hi fellow railers! We are discussing the possibility of writing a very large application in Rails. By "very large" I mean a framework that would contain a few hundred smaller applications that would need to talk to one big database and have to share some common session data I''d like to get some feedback on some possible ways of doing the following: The application would