Displaying 20 results from an estimated 200 matches similar to: "Yet another "NameError: uninitialized constant" problem"
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 =>
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 20
4
undefined method `fullname' for #<User:0x357e380>, BUT works on first view?
Hi all,
Please excuse the long post, but I wanted to make sure you have all the
information....
I have a NewsModel that looks like this:
class News < ActiveRecord::Base
belongs_to :user
validates_associated :user
validates_length_of :title, :description, :minimum => 5, :allow_nil
=> false
acts_as_commentable
acts_as_taggable
def self.find_recent
News.find(:all,
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 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
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,
2005 Mar 22
9
am i the only one with this problem?
(clean install)
>gem install rails
Attempting local installation of ''rails''
Local gem file not found: rails*.gem
Attempting remote installation of ''rails''
Install required dependency activesupport? [Yn] y
Install required dependency activerecord? [Yn] y
Install required dependency actionpack? [Yn] y
Install required dependency actionmailer? [Yn] y
2005 Dec 30
9
cannot load engines plugin/scaffold broke
from C:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_suppo
rt/dependencies.rb:214:in `require''
from script/plugin:3
I get the above error.
Also, I cannot get scaffold to work.
I installed ruby182-15 and did a gem rails
I am using Windows XP
Thanks
Frank
_______________________________________________
Rails mailing list
2008 Apr 19
1
Problem with Active Web Service on InstantRails
Hi,
I''m trying to install and use activewebservice on Rails 2.0.2(using
instantrails)
the gem install activewebservice finished succesfully.
walked through the steps listed at:
http://www.texperts.com/2007/12/21/using-action-web-service-with-rails-20/
when I try to start mongrel I get the following trace
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development
2005 Dec 29
2
Has any one seen this error message
I am truying to install the plugin ("ruby script/plugin install
engines"). But I get this big error. Any help?
D:\develop\Ruby\workspace\a2>ruby script/plugin install engines
script/plugin: No such file or directory - svn --version
script/plugin: No such file or directory - svn ls
http://dev.rubyonrails.com/svn
/rails/plugins/
2006 Jun 24
0
Engine Newbie: Problem w/ script/plugin discover
I would like to install The Ruby Engines plugin. So, I followed the
directions at:
http://www.rails-engines.org/download
When I run script/plugin discover, I get the following:
Add http://svn.northpub.com/plugins/? [Y/n]
(eval):3:in `each'': undefined method `[]'' for nil:NilClass (NoMethodError)
from c:/ruby/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/commands/plugin.rb:6
2006 May 24
0
Error in running functional testing
Hi,
I got the following error when i tried to run functional testing:
D:\Uni\Programming\Ruby\Project\test>ruby
functional\devices_controller_test.rb
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependenci
es.rb:200:in `const_missing'': uninitialized constant
ApplicationController (Name
Error)
from
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
2008 Oct 14
1
Starting Server gives an error
Hi,
I had created a new environment and tried to start the webrick server
for that environment but it is giving an error:-
E:/demo/vendor/rails/railties/lib/commands/servers/
webrick.rb:11: warning: already initialized constant OPTIONS
E:/demo/vendor/rails/activesupport/lib/active_suppo
rt/dependencies.rb:249:in `load_missing_constant'': Expected E:/Demo
2005 Dec 31
9
Railspdf plugin problem
Hi,
For my app i need to generate pdf file for reports. I am trying the railspdf
plugin, got it installed using command:
ruby script/plugin install
svn://rubyforge.org//var/svn/railspdfplugin/railspdf/
The problem is that when i re-started my webrick it won''t run, with errors
messages like this (shown only first message):
*D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
2007 Mar 06
4
Rails 1.2 / Theme support plugin issue: Fix
This is to answer one of my old issues, that I was having using Theme
support plugin using with Rails 1.2.
When you get an latest edge Rails update and run your application which
has Theme support plugin you will get following error
/script/../config/../vendor/plugins/theme_support/lib/patches/routeset_ex.rb:26:in
`create_theme_routes'': undefined method `named_route'' for
2008 Feb 27
2
problem installing webOrb => Plugin not found: "http://themidnightcoders.net:8089/svn/weborb"
I''m trying to install weborb in my applications but it is not working
as you can see:
C:\RoR\mijnapplication>ruby script/plugin install http://themidnightcoders.net:8
089/svn/weborb --force to reinstall
+ ./README
+ ./Rakefile
+ ./init.rb
+ ./install.rb
+ ./lib/AC_OETags.js
+ ./lib/InfoService.rb
+ ./lib/data-management-config.xml
+ ./lib/example.html
+ ./lib/example.mxml
+
2006 Dec 21
0
unitinialized constant Mongrel::HttpHandler (NameError)
Using RailsLive CD (PCLinuxOS) installed to HD.
''gem install mongrel'' reported:
Successfully installed mongrel-0.3.13.4.
though there is one error:
make: ***
[/usr/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/http11.so] Error 127
Google is no help for this one as the only reference to this error I
could find suggested it might be solved by installing libc, for which I