search for: main_control

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

Did you mean: train_control
2006 Mar 22
3
stack level too deep error : Pulling my hairs out
...the cause of the "stack level too deep" raising on every request. I''ve removed almost every part of code and the error still occurs, eg with this url : www.myhost.com/main/index routes.rb (nothing else in this file) map.connect '':controller/:action/:id'' app/main_controller.rb (nothing else in this file) class MainController < ApplicationController layout "common" def index end end views/main/index.rhtml (nothing else in this file) <b>I''m here</b> This is really frustrating, the development.log file contains thousands of...
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
...inController#index Symbol as array index RAILS_ROOT: /Rails/foo/public/../config/.. Application Trace | Framework Trace | Full Trace #{RAILS_ROOT}/app/controllers/application.rb:10:in `[]'' #{RAILS_ROOT}/app/controllers/application.rb:10:in `compute'' #{RAILS_ROOT}/app/controllers/main_controller.rb:4:in `index'' Request Parameters: None Show session dump --- flash: !map:ActionController::Flash::FlashHash {} Response Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"} -- Posted via http://www.ruby-forum.com/.
2005 Mar 15
0
0.10.0, Routes and Query strings
So I made the leap to 0.10.0 but I can not get routes to play nice with query strings... I have this mapping in my routes.rb file map.connect '':controller/:action/:id'', :controller => ''main_controller'' This is all cool and everything works fine http://www.siteroot.com/ maps to http://www.siteroot.com/main_controller/index But when I add a query string to the end like this... http://www.siteroot.com/?offset=10 ...the poop hits the fan And I get this stacktrace in my error.log /Libr...
2008 Aug 20
0
Re: Help with RoR partial views
...t 19, 2008 3:47 PM To: Ruby on Rails: Talk Subject: [Rails] Re: Help with RoR partial views I and thank you for your replies. >>Heh--"it gives me an error" covers a lot of ground. ;-) Yes your right, and i am sorry for that, my message was a little ambiguous. I have changed the main_controller.rb and i''ve added the instance variable has you said. It now looks like this main_controller.rb [code] class MainController < ApplicationController def welcome @product = Product.new end end [/code] There is no error now, the partial is rendered. But now i have another que...
2006 Apr 28
3
Error with show.
Hello everyone, I have a problem while opening something like /main/show/1 Here is the template for show.rhtml <% for name in @names %> <div> <h2><%= name.full_name %></h2> </div> <% end %> And here is the code specific to the show on the main_controller.rb def show name = Name.find(params[:id]) end And here is the error im getting. You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each Any idea on what the problem might be? Any help would be great,...
2008 Jul 28
0
Rubygems Issues
...Rubygems. Thanks! =============Error 1===================== Processing MainController#index (for 76.2.163.148 at 2008-07-25 11:06:30) [GET] Session ID: 56f806ed434bfb20f2e37cb433c62220 Parameters: {"action"=>"index", "controller"=>"main"} Error in main_controller.index: certificate verify failed /var/www/fulfillment/public/../config/../lib/http-access2.rb:1001:in `connect'' /var/www/fulfillment/public/../config/../lib/http-access2.rb:1001:in `ssl_connect'' /var/www/fulfillment/public/../config/../lib/http-access2.rb:1363:in `connect'&...
2006 Oct 17
1
Routing Problem
Hi, I have a folder structure see below which basically has a fodler for the main pages of the site(main) and another folder which contains a ajax_scaffold grid to allow a user to view/sort/download documents: views main documents Controllers -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are
2011 Jul 26
0
connect to DRb server from rails controller ?
...ler: def pcheck svc = parser_svc res = svc.check render :text => res end when called and server is running get this error: DRb::DRbConnError (druby://:9000 - #<Errno::EADDRNOTAVAIL: The requested address is not valid in its context. - connect(2)>): app/controllers/main_controller.rb:15:in `pcheck'' -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to r...
2005 Dec 20
0
ArgumentError in Main#index, weirdness.
...dex.rhtml file I get a weird error about the arguments given, but I am unsure where this is coming from since I have no arguments in the URL... I am using a rails component to load items for a menu that is displayed on the Main rhtml page, but other than that, nothing is even performed from the main_controller just simply loading content from the layout and the view. Any help on where to begin to find this error would be great. See error output below... Thanks. __ Donnie Error output: ArgumentError in Main#index wrong number of arguments (3 for 0) RAILS_ROOT: /home/www/modernlend/public/../config...
2005 Nov 14
6
ActionMailer - Sent but no mail?
Hi, I am attempting to use ActionMailer to send out an email (SMTP) and am having an issue. The log files show that the email is sent, but the email is not making it to my inbox. I have followed the documentation both on the Wiki and in the AWD book. I''m not sure which setting I have incorrect and need some pointers. :authentication - should this be set to true, or
2008 Apr 10
7
Facebooker and existing website?
...p and tries to also browse the website (not through facebook), I see an error like undefined method `find_by_id'' for Facebooker::User:Class Application Trace lib/authenticated_system.rb:11:in `current_user'' lib/authenticated_system.rb:6:in `logged_in?'' app/controllers/main_controller.rb:14:in `index'' I am using sql session store for storing sessions. As I understand instead of User model, Facebooker::User model is being queried but I can''t understand why. Regards -- Prateek Dayal www.Muziboo.com get an audience