similar to: testing template components

Displaying 20 results from an estimated 110 matches similar to: "testing template components"

2006 May 24
0
Routes recognition problem
Hiall, I have two modules for my controllers containing the following files /app/controllers/admin/new_controller.rb /app/controllers/admin/list_controller.rb /app/controllers/admin/sidebar_controller /app/controllers/community/input_controller.rb /app/controllers/community/sidebar_controller.rb Each of those controllers is declared with the appropriate module like so class
2005 Oct 10
0
[BUG ??] 'uses_component_template_root' problems with implementation in component
Hi all, I hope this will reach those that can help or change things, IF it is a bug/''feature'' issue. At least it seems like it to a newbie like me. BACKGROUND:: I have a basic html file in [ /app/views/layouts/application.rhtml ] that contains this <html> <%= render ''shared/header'' %> </html I then have a component [
2006 Jul 06
0
problema con i test automatizzati
ciao a tutti.     come al solito, sto andando avanti a piccoli passi nel creare l''applicazione depot del libro "Sviluppare Applicazioni Web con Rails". Ora mi trovo nella fase di creazione dei test automatizzati. Ma c''è una cosa che proprio non capisco: Ho la seguente classe in ~/depot/test/unit/product_test.rb require File.dirname(__FILE__) +
2006 Feb 19
2
instance variables in components not read by component view?
Hi, I''m trying to write a sidebar menu with dynamic menus, and to do so I would like to define a list of menus to display within my sidebar component controller code and pass that list to the component display view, like so: # menu_controller.rb class Sidebar::MenuController < ActionController::Base uses_component_template_root @menus = %w{admin user help} def display
2006 Mar 22
1
Engine Trouble With Edge
First off, yes, I did follow the "Using Engines With Edge Rails" post on the Engines wiki. So here''s my problem. In ActiveSupport 1.2.5, there was a class called RootLoadingModule which had a parent class LoadingModule in activesupport/lib/active_support/dependencies.rb ie. RootLoadingModule < LoadingModule < Module My problem is that there is no RootLoadingModule
2006 May 22
1
Agile Web Dev unit test fails with fixture instance variable
I''m following Agile Edition 1. On page 148 it suggests using instance variables named after the fixture, for example: assert_equal @version_control_book.id, @product.id When I introduce this type of instance variable into my test, I get the following error: 1) Error: test_not_owner(GroupTest): RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really wanted the
2006 Mar 29
2
Textdrive Rails 1.1 Error - Dependencies::LoadingModule
Textdrive upgraded to Rails 1.1 already. I have an older rails app, and am now getting the following error: c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.0 /lib/active_support/depende ncies.rb:112:in `const_missing'': uninitialized constant LoadingModule (NameEr ror) from ./script/../config/environment.rb:91 from
2006 May 29
0
using components to reuse code
the following is the code of the controller, under the dir components/test/: class Test::GroupsManController < ApplicationController uses_component_template_root def add_to_group @account = Account.find_by_nick(@params[:nick]) # render :text => "#{session[:account_id]} #{Group.find(session[:group_id]).owner_id}" if (session[:account_id] ==
2006 Feb 03
0
component/ajax variable access problem
I''m trying to embed a little image gallery on each page. The photos need to be different for each page. I just want to use ajax and let them click on the photo and have it show the next image. When the page loads, it shows the correct image. But when clicking on it, it gives an error because it doesn''t know what @images is anymore. On the view for the home page: <div
2007 Dec 18
0
Can not test if model name is Tester in rails 2 (ArgumentError: wrong number of arguments (0 for 1))
I''m using rails 2.0.1 now. Here is the step for generate the error 1. Create rails project name demo "rails demo" 2. I create model name "Tester" using command "ruby script/generate model Tester name:string description:text" 3. create database (after change username and password) "rake db:create:all" 4. migrate database, both development and
2006 Jun 07
6
Links on the left hand side - are components necessary?
Hello, Maybe this is super-trivial... I need to have a list of links on the left hand side of my application, for *every* single page. So, I''ve created a layout called "main" (main.rhtml) under view/layouts, and included >layout "main"< in pretty all of my controllers. main.rhtml has, amongst all the other HTML stuff: <%= render_component
2006 Apr 28
0
Ferret failing to rebuild_index - occasionally unable to delete a file (_j.cfs)
I''m switching all my fulltext searching over to ferret using the acts_as_ferret plugin on windows (for development, will be deployed on linux). In my tests I have a setup method as follows to ensure the index is reset for each test: def setup Item.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be
2006 Apr 28
5
Ferret failing to rebuild_index - occasionally unable to del
I''m switching all my fulltext searching over to ferret using the acts_as_ferret plugin on windows (for development, will be deployed on linux). In my tests I have a setup method as follows to ensure the index is reset for each test: def setup Item.rebuild_index end This works fine for the initial few tests but then suddenly fails for the last few tests when it seems to be failing
2006 Feb 24
2
Unable to automatically link controller and model?
This is the first time I''ve seen this. I''m running Rails 1.0 on lighttpd (Mac OS/X) and all my other Rails apps are working just fine. I did: script/generate controller Menu script/generate model Menu added a little code (like scaffold :menu) and got: undefined method `find'' for Menu:Dependencies::LoadingModule Adding model :menu solves the problem. Anyone know
2006 Mar 31
3
Updating to 1.1.0 crashes webrick on existing apps
Hi all, I''m (well was) running rails on debian. After the update to rails 1.1.0 newly created aps run great. But trying to start webrick for an old one makes me cry (see below). Any docs on how to ''migrate'' existing apps to the up and up? Thanx n Grtz Gerard. => Booting WEBrick...
2006 Jan 30
5
Functional tests and dealing with login before_filter
Hi all, I''m curious as to how you do functional testing on the controllers if, within the ApplicationController, I have a before_filter :authorize, :except => :login, where the private authorize method checks for session[:user]. I can''t do "post :login", because that method is in a different controller. I tried setting session[:user] directly in the setup
2019 Jul 02
5
[Bug 1347] New: ebtables-nft: regression in -o option
https://bugzilla.netfilter.org/show_bug.cgi?id=1347 Bug ID: 1347 Summary: ebtables-nft: regression in -o option Product: nftables Version: unspecified Hardware: x86_64 OS: Debian GNU/Linux Status: NEW Severity: normal Priority: P5 Component: iptables over nftable Assignee:
2006 Feb 26
6
Having trouble getting Edge Rails running
Hello, I''ve been playing with this for hours, and got through a couple glitches (e.g. updating to Ruby 1.8.4) but this one is well beyond my N00b skills. When trying to run script/server I get: ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:87:in `as_load_path'': stack level too deep (SystemStackError) from
2005 Feb 28
1
I can't load modules (ztdummy, wcfxo.o)
Hi to everybody, seems that I cannot load the zaptel modules: ztdummy says the following: [root@Hayabusa misc]# modprobe ztdummy /lib/modules/2.4.22/misc/ztdummy.o: unresolved symbol zt_unregister /lib/modules/2.4.22/misc/ztdummy.o: unresolved symbol zt_transmit /lib/modules/2.4.22/misc/ztdummy.o: unresolved symbol zt_receive /lib/modules/2.4.22/misc/ztdummy.o: unresolved symbol zt_register
2019 Feb 12
0
CVE-2019-5736
Hi, builds fixing CVE-2019-5736 in runc and docker are in cbs: https://cbs.centos.org/koji/buildinfo?buildID=25142 https://cbs.centos.org/koji/buildinfo?buildID=25136 The security flaw is quite severe. Please, what should be done? I am not very well versed in the processes and do not want to neglect anything. Thank you very much and have a nice day, Fero -------------- next part