similar to: undefined method `fullname' for #<User:0x357e380>, BUT works on first view?

Displaying 20 results from an estimated 3000 matches similar to: "undefined method `fullname' for #<User:0x357e380>, BUT works on first view?"

2006 Apr 06
4
Record retrieval in Many-to-many using :through not working
Hello, I get an error while retrieving records from the following model structure. Tables foods - id, food foodallergies - food_id, symptom_id, a few other columns symptoms - id, symptom Models class Food < ActiveRecord::Base has_many :foodallergies has_many :symptoms, :through => :foodallergies end class Symptom < ActiveRecord::Base has_many :foodallergies has_many :foods,
2007 Feb 07
3
Gem problem with ActiveRecord/Oracle (without rails)
I have written the small script below. I have the ruby-oci adapter installed, the newest version of gems and the newest version of ActiveRecord. When I run the code I''m getting the follow error following my code. It seems to be an issue with gems as far as I can tell. Any help? Thanks, Drew Code: require ''ruby_gems'' require ''active_record''
2006 Dec 22
2
Relating Namespaced Models
I am dealing with a large project. I use a lot of STI and therfore have a lot of models. I''d like to use namespaces to help organize my models but am having trouble getting started. I have a base model Term::Base located in /app/models/term/base.rb: class Term::Base < ActiveRecord::Base set_table_name "terms" end I have a non-namespaced client model: class Client <
2006 Apr 20
1
has_many.count not accepting options hash
has_many.count does not seem to support an options hash like ActiveRecord::Base.count does. Example: >> AcademicProgram.find(:first).course_requirements.count :conditions => "courses.name LIKE ''a%''", :include => :course => 40 >> ap.ap_requirements.count :conditions => "courses.name LIKE ''a%''", :include =>
2007 Jan 16
3
odd error with sqlite3 adaptor
Any idea what would cause this? >> icps = Icp.find(:all) ActiveRecord::StatementInvalid: SQLite3::SQLException: unsupported file format: SELECT * FROM icps from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor d/connection_adapters/abstract_adapter.rb:120:in `log'' from c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_recor
2006 Nov 23
1
Select Tag not working in 1.2rc1
I''m getting the following error message under rc1: ActionView::TemplateError (wrong number of arguments (1 for 0)) on line #54 of app/views/admin/admin_index.rhtml: In my view (* = Line 54): <%=start_form_tag(:action=>"sales_by_author")%> *<%=select("author","id",@authors.collect {|a| [a.name,a.id]})%> <%=submit_tag("Go")%>
2007 Feb 08
5
a possible bug in Has_many :through using :soucre
I''ve been stumped on this for a few days and I''m not sure if it''s an error on my end or an actual bug. I have a system where I have workshops and users. Workshops have students, presenters, and troubleshooters. I wanted to represent this simply by using has_many :through with :source. Workshop has_many :presenters, :through =>:presenterships, :source=>:user
2006 Jan 02
0
problem with ruby gem activate when trying to run actionpack tests
Hi There, so I worked out what I should be doing to try and contribute code to rails (I''m currently working on patches for collection_select and auto_link). I''m following the instructions here: http://dev.rubyonrails.org/ and have checked out actionpack. Trying to run the actionpack tests I get this error: D:\User\Code\ruby\actionpack\test>ruby controller/base_test.rb
2007 Nov 15
0
Problems connecting to remote Oracle DB on windows using active record
I am trying to connect to an older oracle DB remotely, I think version 8 or 9. I downloaded the instant client stuff from oracle and copied oci.dll and oraociei10.dll to my windows/system folder (windows XP) I get the error. C:\rb-play>ar_connect_ss.rb env.c:257:in oci8lib.so: ORA-12514: TNS:listener does not currently know of serv ice requested in connect descriptor (OCIError) from
2009 Jul 28
6
how to set smpt server for our rails applicaion
hi i am using technoweenie-restful-authentication plug-in for authentication in my application. i want to send a activation link to the user''s mail-id. for that i need to set the smpt server for our rails application, for that i added the follwing code in config/environment.rb file ActionMailer::Base.delivery_method:smpt ActionMailer::Base.smpt_settings = { :address =>
2006 Jan 24
2
DOCTYPE declaration:
I am playing around with the Agile Rails development book again and thought to see what effect, if any, placing a doctype declaration at the top of an rhtml file would have. When I insert any of the three standard forms of such declaration at the top of app/views/store.rhtml the product image disappears when the web page is redisplayed. The error logged in log/development.log is: >
2010 Feb 23
12
"no such file to load -- gettext/rails" error
I get the error below when I try to start my server. Here are the versions installed: OS: Windows Server 2008 Ruby: 1.8.7 Gems: actionmailer (2.3.5, 1.3.5) actionpack (2.3.5, 1.13.5) actionwebservice (1.2.5) activerecord (2.3.5, 1.15.5) activeresource (2.3.5) activesupport (2.3.5, 1.4.4) cgi_multipart_eof_fix (2.5.0) daemons (1.0.10) gem_plugin
2006 Jan 16
2
ActiveRecord: table name with spaces?
Howdy. I''m trying to work with a legacy SQL Server database where some of the table names have spaces in them. I''ve done set_table_name "tablename with spaces", but I can''t get find(:all) to work. I get the following error (because apparently it''s not putting [ ] around the name as is required for SQL Server for names with spaces.
2006 Jun 21
1
Newbie Four Days on Rails
Hi all, Having successfully gone through Bill Walton''s Tutorial ''Rollining with Ruby on [Instant] Rails'' I decided to tackle John McCreesh''s ''Four Days on Rails'' Tutorial. I changed the Rails version as recommended in the tutorial. All went well until I entered the following command:- ruby script/generate model category I got:-
2006 May 03
2
WEBrick initialisation error
I am new to Ruby so I thought the best way to get into it would be to follow the ONLamp "Rolling with Ruby on Rails" intro. I followed the instructions to the letter and everything work just great, very impressive:-). A couple of days later when I went back to it I got the following message when trying to start the WEBrick server. U:\RoRProjects\cookbook>ruby script\server =>
2006 Feb 09
4
Login_Engine: trouble configuring
Hi Guys, I''m having some trouble getting login_engine to work. I''ve followed the steps in the README file to the letter (I think) with the exception of the Mailer stuff and cannot get my application to run. Heres what I have; module ApplicationHelper include login_engine end ##################################### require ''login_engine'' class
2016 Nov 02
0
doveadm index: can't index a different namespace?
On 02 Nov 2016, at 22:02, Larry Rosenman <larryrtx at gmail.com> wrote: > > why wouldn't it be able to use the ~/MAILARCHIVE/ filesystem space? > > The other indexes etc seem to get built there. It's not about adding an index there, but about trying to open "MAILARCHIVE" itself as a folder. fts-lucene attempts to use an existing folder's indexes for
2014 Jul 01
1
indexer failure: lucene: while doing doveadm commands
I have the following script: #!/bin/sh PATH=$PATH:/usr/local/bin #Expects to be run after midnight on the first of the month # to archive all the previous months mail #Date Run: TODAY=`date "+%Y-%m-%d"` #last month in YYYY/MM YEAR_LAST_MONTH=`date -v-1d "+%Y/%m"` #1st of last month as 01-Mon-YYYY FIRST_LAST_MONTH=`date -v-1d "+01-%b-%Y"` echo 'TODAY='
2016 Nov 02
0
doveadm index: can't index a different namespace?
It's getting a bit strange. You were running 2.2.25 previously and it was working then? Does the doveadm index always fail with the same errors? Also I just noticed that it's saying INBOX isn't selectable: "lucene: Failed to sync mailbox INBOX: Mailbox isn't selectable". Which I guess isn't true. It seems to be failing somewhat randomly.. > On 02 Nov 2016, at
2016 Nov 02
0
doveadm index: can't index a different namespace?
On 02 Nov 2016, at 19:19, Larry Rosenman <larryrtx at gmail.com> wrote: > > clamav-rules is NOT a directory, nor are any of the others: Can you access these mboxes at all with Dovecot? e.g. doveadm mailbox status -u user at domain clamav-rules > thebighonker.lerctr.org ~/MAILARCHIVE $ cd 2016/10 > thebighonker.lerctr.org ~/MAILARCHIVE/2016/10 $ ls -l > total 72106 >