similar to: Benchmarking not being included?

Displaying 20 results from an estimated 2000 matches similar to: "Benchmarking not being included?"

2007 Jul 18
3
Help. Acts_as_Authenticated plugin stops working for me?
Hi, I successfully installed AAA couple days before, and i managed to register a uer with it, with no user activation. but for some strange reason, it stops working for the signup method, with i go to the signup page, press submit, it shows an error page, what''s wrong? here''s the error page. undefined method `activation_code'' for #<User:0x3b6dbd
2008 Jul 28
0
Rubygems Issues
I recently upgraded a server''s rubygems from 0.9.0 to 1.2.0. Upon doing so, one of our apps that uses soap4r thinks all the security certificates it sees are invalid (see Error 1 below). I tried reverting to 0.9.0, but anything that uses rubygems crashes now (see Error 2 below). If anyone could help me solve either problem, that would be great. Ideally, I''d like to run the latest
2011 Jul 06
5
Monkey patching a gem (rails_admin, with Rails 3)
Hi. I''m trying to monkey patch the rails_admin gem. First, I tried to add a file in config/initializers containing: RailsAdmin::MainController.class_eval do def get_sort_hash CODE HERE... end end It was only loaded once, and then the method from the gem was always executed instead of mine. I also tried to add the code in lib/ with the correct line in config/application.rb to load
2008 Nov 11
0
can't figure out this error message please help
Hi, my app was working fine until i messed around with the server (installing another service). now my home page has an error page tacked on the end of it! you can see it for yourself at http://rufus.stanford.edu (view the source code to see the extra "error page" tacked onto the end of my own data.) there are no errors being reported in my production log (pasted below). this is
2006 Jul 16
1
Helpers for partials too ?
MainController implies main.rhtml, which will automatically have access to the methods inside MainHelper (in \app\helpers\main_helper.rb). Should not the partial templates called from main.rhtml via <%= render :partial => ''partial'' %> also have access to the methods in main_helper ? I have tried <% display_dates = create_display_dates(@events) %> and <%
2006 Jun 18
2
Why can''t I use a session? (Symbol as array index)
Hi All I can''t for the life of me see what is wrong with this. Maybe it''s cause it''s midnight... I want to put some data in a session and I have some code like this: class ApplicationController < ActionController::Base model :mything def ApplicationController.chosen_thing session[:chosen_thing] ||= MyThing.defaultThing end end So whenever I try to
2006 Apr 12
3
noob question
Hi *, I am writing my first app based on the ''depot'' application but with some suttle differences to help me learn. I am a bit sutck with following and would be grateful for any help: I have the following controller: class MainController < ApplicationController def index @objects = Object.certified_items end end This relates to a field called
2006 Jan 15
0
Newbie: undefined method `body=''
I''m new to rails and am trying to set up a many-to-many relationship between questions and possible answers. I have the questions side set up, and am able to display the range of answers with checkboxes, and it''s all working well, but when I try any of the CRUD operations (edit, new...) on the answers side I get: undefined method `body='' for
2015 Dec 16
0
Mystifying SEGFAULT on 3.2.3 but not 3.2.2
Gert, On 16 December 2015 at 12:06, Gert van Valkenhoef wrote: | I recently upgraded to 3.2.3 and am getting mystifying errors with my | in-development code (available at | https://github.com/gertvv/gemtc/tree/feature/regression). Every few hundred | LPs that I solve using the rcdd package will result in a SEGFAULT in the | garbage collector (address 0x10, cause 'memory not mapped') or an
2016 Dec 06
1
Spam messages
I agree that no action should be taken. It's somewhat mystifying that the robot known as "Amy Kristen" responds so quickly after my post, and with such regularity (so far twice per hour), using perhaps several email addresses - and using the correct "Reply-To" headers. But more mystifying is that she keeps the same name the whole time. And lucky, I guess, because otherwise
2012 Jan 04
1
render :update problem with IE 9
Hi, I have a legacy web site based on ruby on rails 3.0.9 which works just fine with Firefox, chrome and IE 8, but I receive an HTTP 406 error every time when I check the web site with Internet Explorer 9. I narrowed down the problem to the respond_to + format.js + render :update trio, but I did not manage to solve the problem until now. I created a small example for reproduction: The action
2010 Mar 05
0
NoMethodError (undefined method `match' for nil:NilClass):
Hi, I have a redmine server with Ruby 1.8 running along with Webrick. When I try to access any docs on the server using web interface I get the following message. Internal error An error occurred on the page you are trying to access. If you continue to experience the problems please contact the administrator. I looked to production.log i found the following messages. I really need your help.
2006 Jun 24
0
Theme generator
Hello, I just downloaded the Theme Generator, I set it up and put, theme ''main'' then I got "undefined method `theme'' for MainController:Class" but, in the readme it dosn''t say to require it or anything what do I do? -- Posted via http://www.ruby-forum.com/.
2006 Mar 22
3
stack level too deep error : Pulling my hairs out
Hello, I''ve changed something in my test application and since I can''t find 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''
2006 Jan 04
0
Simple print statement (was: recongizing the current controller in views)
All (and kevin), After flying high for a while on Rails things, I''m down to the nitty gritty of Ruby stuff. Messing with vars and printing them out on a web page. I found the controller_path in the API docs; However when putting this in a controller: @test1 = controller_class_name @test2 = controller_name @test3 = controller_path And this in a partial: Test1 <%= @test1
2010 Nov 01
1
Encoding::UndefinedConversionError on a simple file upload (rvm, MRI-1.9.2-p0, rails 3.0.1, apache+passenger)
Hello everyone. I am having the encoding issue on a simple file upload action: Encoding::UndefinedConversionError in MainController#upload "\xC4" from ASCII-8BIT to UTF-8 The action looks like this: def upload @uploaded_io = params[:upload] File.open(Rails.root.join(''public'', ''images'', @uploaded_io.original_filename), ''w'')
2007 Jan 01
0
Simple question on inserting child data
after doing a bunch of reading I have finally sat down to create a simple app to dirve home a lor of the concepts to which have been read. So I figured a simple blog app is the best way to do it. The bad thing is that I am already hung up when creating replies to a blog posting. I can''t figure out how to insert the post_id value into the reply table. When creating a reply the user is
2008 Aug 20
0
Re: Help with RoR partial views
Your partial uses a simple form_for(@product) call. By default that will do a POST to the products/create action, which if it''s successful, does a redirect to products/show/<<id for the new product>> (see the create method in your products_controller.rb file). My advice is to just play around w/rails for a bit & get used to its conventions before you try to bend it to
2008 Jul 22
0
Routes dependent on subdomain
Hi, I''m having little problem getting my idea to work, would be very thankful if you could help me. I have one Ruby on Rails application sitting on server, and multiple subdomains, pointing to the same server/app. For example: mainserver.com user1.mainserver.com user2.mainserver.com I want to have exactly the same app and exactly the same routes on all, except that I want to map root
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here? [app/controllers/admin_controller.rb] class AdminController < ApplicationController before_filter :authorize def index list render :action => ''list'' end # GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html) verify :method => :post, :only => [ :destroy, :create, :update ],