similar to: Missing Method defined in controllers/application.rb

Displaying 20 results from an estimated 1000 matches similar to: "Missing Method defined in controllers/application.rb"

2008 Nov 05
1
Removed edge rails but cannot find installed rails
I removed edge-rails from a project, git rm, committed and pushed the revised project to the shared repository, and then git pulled it onto my Windows XPpro laptop. Both the original host and my laptop have Rails-2.2.0RC1 installed. The Gem environment is: $ rails --version Rails 2.2.0 $ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.1 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel
2009 Apr 17
5
When is nil not false?
Can someone see what I cannot given this code? class ForexCASource def initialize(source=nil) xchg_source unless source puts "this is source = #{source} #{source.class}" puts "do we get here? why?" xchg_source(source) end >> fx = ForexCASource.new this is source = NilClass do we get here? why? TypeError: can''t convert nil into String
2007 Apr 02
0
[937] trunk/wxsugar/lib/wx_sugar/enumerable_controls.rb: Initial commit of enumerable_controls.rb
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!-- #msg dl { border: 1px #006 solid; background: #369; padding:
2016 Mar 12
4
The sad state of samba 4 adaption for home/small business routers.
El 12/03/16 a les 12:37, Rowland penny ha escrit: > Well yes, but these are usually a mass market product and will no doubt, > in the fullness of time, get to use a version of Samba 4 seeing as how > 3.6 has been EOL since March 2015. You'd be surprised to see what old shi^H^H^H "carefully crafted with backported fixes packages" router vendors put in their products. In a
2008 Jun 02
3
GiT and RSpec
> > Message: 2 > Date: Thu, 29 May 2008 06:35:01 -0700 > From: David Chelimsky <dchelimsky at gmail.com> > Subject: Re: [rspec-users] Coloured output in rspec 1.1.4 > To: rspec-users at rubyforge.org > Message-ID: <175B70FE-B706-4C03-8B20-C5B207268AD6 at gmail.com> > Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes > > On May 29, 2008,
2005 Dec 27
9
2.6.14 - HTB/SFQ QoS broken?
Hello, First of all, I already contacted Martin Devera, the developer of HTB, and he told me to search for help on this mailinglist, thus I am describing my problems here now... I am kind of seriously annoyed by QoS as I have been trying for over 3 years to get it working properly - first I did not understand how it works, then it seemed not to work, then it was working perfectly for half a
2002 Oct 29
5
oplock problems
We are running samba 2.2.3a ( for about 3000 users ) on HP/UX 11.11 fileservers. Our customers are complaining about slow response on the opening/closing of files in office/excel etc. In the samba log file we see the following messages : [2002/10/29 09:03:27, 0] ../source/smbd/oplock.c:(761) oplock_break: receive_smb timed out after 30 seconds. oplock_break failed for file My
2002 Oct 28
3
samba and oplocks and office applications
I'm using samba version 2.2.1a on a linux RH7.2 kernel 2.4.7-10. I'm having a lot of oplock problems, specially when using office applications like word. I would like to know: 1. what is the recommended configuration in version 2.2.1a (oplocks = yes/no , level2 oplocks = yes/no , kernel oplocks = yes/no) 2. what is considered to be a stable version for oplocks usage Thanks, Nir
2018 Aug 24
3
Mail has quit working
On Fri, 24 Aug 2018 at 14:15, TE Dukes <tdukes at palmettoshopper.com> wrote: > > #hosts: db files nisplus nis dns > hosts: dns files myhostname > ^^^ that's probably broke also. hosts: files dns That should be it. Putting dns first works if you can guarentee that DNS works fine all the time but if your DNS caches that localhost doesn't exist then /etc/hosts
2016 Mar 12
2
The sad state of samba 4 adaption for home/small business routers.
On Sat, 12 Mar 2016, Jeremy Allison wrote: > GPLv3 should guarentee that you can replace the Samba > on *any* device. That's the whole point of GPLv3 - no > DRM. > > If you find a Samba device using any Samba 3.2 or > newer that doesn't allow you to replace it, please > let us know so we can start the compliance process. I wonder how that will play out with the new
2006 Dec 11
4
Holding an ActiveRecord object for later use.
This is probably a noob question.. I have a fairly large query (the result takes along time to return) that I need to export to CSV after it is displayed with a view. Basically a link at the bottom of the page, "Export to CSV". I''ve found the rails wiki solution: http://wiki.rubyonrails.com/rails/pages/HowtoExportDataAsCSV . The only problem is that I would like to have this
2018 Aug 25
3
Mail has quit working
On Fri, 24 Aug 2018 at 18:16, TE Dukes <tdukes at palmettoshopper.com> wrote: > > > > > -----Original Message----- > > From: CentOS [mailto:centos-bounces at centos.org] On Behalf Of Stephen > > John Smoogen > > Sent: Friday, August 24, 2018 3:58 PM > > To: CentOS mailing list > > Subject: Re: [CentOS] Mail has quit working > > > > On
2018 Apr 16
2
Question concerning llvm::BlockAddress class
Hi all, I have a question concerning block address class in LLVM. I am currently working on a project where I need to obtain and manipulate basic block virtual addresses. I was searching the web and found the llvm::BlockAddress class (http://llvm.org/doxygen/classllvm_1_1BlockAddress.html). With this class I was able to obtain a printout like this: i8* blockaddress(@func_name, %bb_label) How do
2006 Jun 22
3
best way to generate sums of groups
I''m a rails newby, so I''m trying to wrap my head around how to tackle this, since my first few attempts failed. Let''s say your database looks like this: Users id, name, created_at Points id, user_id, value, created_at Users complete different tasks and are awarded varying levels of points, which are recorded in the Points table. What if you wanted to display a
2006 Aug 08
12
delete_if doesn''t work for has_and_belongs_to_many
I''m using Rails-1.1.4 with Ruby-1.8.4 So let''s say I have 2 model classes: class Item has_and_belongs_to_many :things end class Thing has_and_belongs_to_many :items end i = Item.new i.things << Thing.new( :value => "Something").save i.things << Thing.new( :value => "Something Else" ).save i.save Fine, now I have two records in the
2009 Feb 04
2
delete_if does not work on associations
I tried to user delete_if on an association: class Group < ActiveRecord::Base has_many :memberships, :dependent => :destroy has_many :users, :through => :memberships ... end This is the controller method, trying to use delete_if. Although some elements are removed (s2 < s1), the save method does not update the association. def intersect_or_remove_group other_group =
2006 May 23
6
How to list all models of an application?!?
How can I get a list of all model classes in the domain of a Rails application (all models, both in "app/models" and in components/somedir/model.rb)? Thanx in advance for your precious help! Edoardo "Dado" Marcora
2006 May 26
4
shouldn''t this work? - session[:array_of_objects].delete_if {|x| x.id == params[:id]}
I am saving an array of active record objects (college courses) in the session as session[:course_list]. This is the cart for a registration controller. If a student chooses to delete the course from the list I get the :id as params[:id]. However if I do session[:course_list].delete_if {|x| x.id ==params[:id]} does not work. session[:course_list].delete_at(idx) works. Ocourse to do this I have
2006 Sep 25
2
@article.article_groups.delete_if... Dosn't work!
If I try: @article.article_groups.delete_if {|x| x.group_id == x.group_id } It does nothing. If I try: articletmp.article_groups.each{ |x| @article.article_groups.delete(y) } It deletes some of the groups. @article.article_groups.clear works. Why dosn''t the to first examples work as expected?? Do I have to put groups I don''t want to
2005 Nov 02
4
must cut the line down too much for shaping to work
Hi, my situation: One internet connection 256 kbps uplink/downlink, pretty stable speed, a Linux router with three NICs (one to ISP, one to DMZ and one with VLANs enabled to our LAN). Each of three VLANs (1, 10, 11) is a region for me; id 1 gets guaranteed 128 kbps, id 10 and 11 both get guaranteed 64 kbps (both uplink and downlink). Simple configuration. After I read relevant parts of lartc