similar to: Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''

Displaying 20 results from an estimated 700 matches similar to: "Keep ketting weird error, NoMethodError in Admin#create_survey Keep getting ''undefined method `assign_variables_from_controller'' for #<Survey:0xb7462244>''"

2005 Dec 29
2
form_remote, getting data from submit
Hi list, I'm writing a little survey application, and surveys are generated dynamically. I use form_remote_tag and AJAX to submit the form to a method 'submit' in my 'survey' controller. The view generates the form as: <tr> <td>Question 1?</td> <td><input id="resultset_1" name="resultset[1]" size="30"
2005 Dec 27
4
acts_as_versioned
Hi, I'm integrating acts_as_versioned (ar-versioned.rubyforge.org) in my customized CMS rails application to set up revision control for pages. Getting and viewing versions works allright, but when I try to revert to a version in the following way, nothing happens to the actual data in the object. Link from page: <%= link_to image_tag('revert'), :action => 'do_revert',
2006 Jan 12
0
Apache proxy + lighttpd + rails
Hi list, I''m having another problem deploying my Rails application. I set up the servers and apache2 configuration using the excellent essay by Duncan Davidson: http://duncandavidson.com/essay/2006/01/railsonapache However, he describes proxying using a subdomain. What if I want to proxy the requests of www.domain.com/railsapp/<url> to www.domain.com:8888/<url> and reverse
2013 Jan 22
2
Rails 4: Should a HEAD request not be handled like a GET for CSRF protection?
I am running a Rails 4 app in semi-production and I constantly get exceptions from crawler bots that use a HEAD HTTP method, which causes the CSRF protection to kick in. Shouldn''t HEAD requests normally be handled like GET requests? I am not sure if I''m just being stupid or that hit is a bug somewhere. Michiel -- You received this message because you are subscribed to the
2006 Jan 22
6
*Very* basic layout question
I''m trying to use a different layout for just one action in my controller, all the other actions use the application.rhtml layout, so what i''m doing is ... class SomeController < ApplicationController layout "simple", :only=> :some_action ...... end and the "simple" layout is applied to all the actions, can someone please give me a hint?
2011 Oct 08
2
Connecting points over missing observations in Lattice
Hello, I'm trying to plot connected time series of two variables in a lattice plot: xyplot(y1 + y2 ~ t, data=size, type="b") y2 has missing data for some of the observations and some points are therefore not connected. It would make theoretical sense to connect the points - is there a way of doing that? (Without filling the obserations using package 'zoo'). Thanks,
2006 Jul 13
10
Problem with flashes staying on between pages
I have a login page that redirects to itself if the login is incorrect. The browser does: get login post login, with wrong username and password redirect back to login When the post action redirects back to login it sets a flash telling the user it failed. So far so good. The problem is that if I get another page after that, the flash is still there. It only disapears on the second.
2011 Jul 18
1
Rainbow Ket
I have an application I wish to install under WINE on Ubuntu 10.04 LTS It uses a parallel port Rainbow (sentinel) Hardware key (dongle) I have searched and found a few threads that discuss these devices and a few claims that they have been made too work, but I haven't found a clear explanation of how what is necessary to get it to work. -- Rob
2005 Feb 02
0
clicktocall via manager with cisco 7905
Hi all, I have a Cisco 7905g with the default cm firmware. It is connected to * using chan_sccp.so. Normal operations with this phone work perfect. Now I'm implementing a click to call app in php. This php app connects to the manager interface and sends the following down the line: $this->_write($fp, "Action: Originate"); $this->_write($fp, "Channel:
2005 Nov 22
1
Ferret NoMethodError
Using the current ferret gem (on Win-XP): irb(main):001:0> require ''ferret'' c:/ruby/lib/ruby/1.8/fileutils.rb:950: warning: already initialized constant OPT_TABLE => true irb(main):002:0> include Ferret => Object irb(main):003:0> index = Index::Index.new => #<Ferret::Index::Index:0x3477ba8 @qp=nil, ...> irb(main):004:0> index << "This is
2006 Nov 04
0
Rails newbie - can anyone please help with many to many NoMethodError
Please can someone help with the following problem - I''m using LoginEngine and have a Users table linked many to many to a Plants table. The joining table is plants_users with plant_id and user_id (there are extra fields, so I''m avoiding has_and_belongs_to_many - plus it didn''t work :(). ::user.rb starts:- class User < ActiveRecord::Base has_many :Plants, :through
2006 Aug 14
1
NoMethodError
Hello, When i test this code <h1>contenu de votre panier</h1> <table> <% for item in @items product = item.product %> <tr> <td><%= item.quantity %></td> <td><%= h(product.title)%></td> <td align="right"><%=item.unit_price %></td> <td align="right"><%=item.unit_price * item.quantity
2006 Aug 14
0
acts_as_dropdown: NoMethodError on load
Rails 1.1.6 on gems I had the acts_as_dropdown plugin working fine, but now starting webrick gives me a: C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1129:in `method_missing'': undefined method `acts_as_dropdown'' for User:Class (NoMethodError) My other plugins are working fine. I have the latest version of acts_as_dropdown. Gems are
2006 Jun 28
2
NoMethodError when setting session variable
I know this is dumb, but I can not set a session variable. I get the followig error: Processing Base#edit (for 67.174.108.88 at 2006-06-28 17:17:34) [GET] Session ID: 3c4b2bad18c8bc289b719dc056913be7 Parameters: {"action"=>"edit", "id"=>"11", "controller"=>"image",
2006 May 07
0
NoMethodError trying to get ApplicationHelper method from a functional test
I am a little confused by the includes I suspect. In the book, it states that runtime environment will load the directories app, app/models, app/controllers, app/helpers, app/apis, components, config, lib, vendor and vendor/rails/*. However, when I try to access my "current_project" public method, it fails with a NoMethodError. What is even stranger is that I can use reflection to find
2006 May 10
3
NoMethodError
When I want to see my users, then I get: ----------------------------------------------------- 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 Extracted source (around line #3): 1: <% @page_title = "Spisek uporabnikov" -%> 2: <table> 3: <% for user in @all_users %> 4:
2006 Apr 21
2
NoMethodError with test_read_with_hash
While running the product_test.rb test fixture in the Agile Web Development book (p. 148), but when I run ruby test/unit/product_test.rb, I get the following error: 1) Error: test_read_with_hash(ProductTest): NoMethodError: 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.[]
2006 Apr 27
2
NoMethodError - why?
Getting this error when hitting update. NoMethodError in Article#update You have a nil object when you didn''t expect it! You might have expected an instance of ActiveRecord::Base. The error occured while evaluating nil.update_attributes Source code. def create @article = Article.new(params[:article]) @article.user = @session[''user''] if @article.save
2006 Apr 27
0
text_field_with_auto_complete - NoMethodError in the model
Hey guys, I have a text_field_with_auto_complete that looks like this: <%= text_field_with_auto_complete ("service_request", "req_name", {"size"=>40}) %> which goes to this in the controller: def auto_complete_for_service_request_req_name auto_complete_responder_for_investigators params[:service_request][:req_name] end
2008 Jun 06
2
`exit?'': undefined method `run?'' for Test::Unit:Module (NoMethodError)?
Why am I getting this error if running from Netbeans or just from command line with executing blah_spec.rb? If I run with spec bla blah blah_spec.rb then it''s fine. . Finished in 0.264 seconds 1 example, 0 failures c:/ruby/lib/ruby/gems/1.8/gems/rspec-1.1.4/lib/spec.rb:27:in `exit?'': undefined method `run?'' for Test::Unit:Module (NoMethodError) from