Displaying 20 results from an estimated 10000 matches similar to: "uninitialized constant errors?"
2005 Jul 29
3
More issues with Rails Book Cart tutorial.
I am presently trying to get the cart section (chapter 8.) working
and after following the instructions as carefully as I can determine
I am nonetheless getting the following errors:
URL=http://localhost:3000/store/add_to_cart/10
NameError in Store#add_to_cart
undefined local variable or method `parms'' for
#<StoreController:0x376ee60>
2005 Aug 08
5
In-Line List Editing with AJAX
I''m trying to write an interface for editing many-to-one relationships
with AJAX. Picture the to-do editor in Backpack (and, to a lesser
extent, Basecamp) and you''ll have a good idea of what I''m trying
to do.
I''ve almost got everything working: the ''edit'' link hides the stored
data and replaces it with a form, and the data is updated in the
2006 May 18
5
Uninitialized Constant in scaffold list page
I''m new to Ruby on Rails and just trying to get it up and running. I''m
using RadRails, but I don''t think that matters for this problem.
I''ve got a very basic app with one table and I used the scaffold
generator for a table called datedgoals. The new page works fine, but
then when it switches over to the list page, I get the errors below. Any
idea how to fix
2005 Oct 17
4
How to send excel file to browser (spreadsheat 0.3.2)
hey, i want to generate an excel file and send it directly to the browser
(without storing it to the harddisk).
does anyone has any solution?
thanks in advance
this is my code:
--------------------
def export_excel
if @request.env[''HTTP_USER_AGENT''] =~ /msie/i
@headers[''Pragma''] = ''''
@headers[''Cache-Control''] =
2005 Sep 18
1
Timeout::Error (execution expired)
I have a long running task in my Rails app that I plan to run via cron when
deployed.
The problem is that I''m getting an expiration error when trying to test it
out.
Is there a way to change this timeout?
The trace is included. The system is connecting to Flickr, which takes some
time.
Timeout::Error (execution expired):
/usr/lib/ruby/1.8/timeout.rb:42:in `new''
2006 Jan 18
1
Another uninitialized constant question
Guys,
I''m trying to generate a scaffold to admin a table called hangars. I''d
like the controller to fall with an "admin" sub-module.
I used the command:
script/generate scaffold Hangar Admin::Hangar
This seemed to work, and placed the controller in
controllers/admin/hangar_controller.rb, where I expected to find it. It
also created the hangar.rb model in
2006 Sep 04
5
uninitialized constant BooleanClause
I''ve installed the latest Win32 gem and the acts_as_ferret plugin (i
checked out the files and placed them in the vendor/plugins directory).
When I try to search I get the following error:
uninitialized constant BooleanClause
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2008 Jun 10
1
NameError in AdminController, uninitialized constant
Hi there basically following the "Agile Web Development With Rails, 2nd
Edition"
i followed the tutorial exaclty, worked fine, so i decided to change one
thing
on page 74 instead of:
ruby script/generate model product
i used:
ruby script/generate model propertys
and:
depot_a/db/migrate/001_create_products.rb
~/Rails/ecom/db/migrate$ cat 001_create_propertys.rb
class
2006 Jan 12
10
uninitialized constant error
Hi Everyone,
I''m a newbie to Rails, and I just finished going through the cookbook
tutorial. I''m now trying to build my own application, and I''m trying to
add more inputs to the edit view to modify data in other tables. Below
is the controller code where I am having trouble. PartsLocation is
another table (like Part) in the database, and that is the line where
2006 Jun 14
5
uninitialized constant error after scaffold on new Windows XP environment
I am attempting to get a working Rails programming environment setup working
under XP with MySQL, RadRails and Webrick. I have been using my PowerBook
but need to working on Windows environment too.
I have basic functions of Ruby and Rails going. I created a really simple
table and generated the scaffolding. The server starts just fine. I can
browse the database succesfully in RadRails. The issue
2006 Apr 26
0
Re: gSOAP and ActionWebService interop problems
I am experiencing a similar problem, not with gSOAP, but with
Apache''s SOAP library. Just like Guido, XML-RPC works perfectly, but
the SOAP request processing fails during protocol discovery. Rail''s
SOAP client also works perfectly, so I''m fairly certain the error is
not in my code.
I am new to both ActionWebService and the Ruby XMLRPC module, so I''m
2005 Nov 12
2
undefined method `protocol' for nil:NilClass
Hi! This may have been answered somewhere before, but my searches turned
up nothing.
I am developing a Rails app that generally works, but just generated a
new controller ("list" controller), did not add anything, and when I go to
http://localhost:3000/list/
I receive an error. It appears that the page was properly generated, but
somewhere preparing the result raised this
2006 Feb 16
5
Edge Rails, Ruby 1.8.2 and "uninitialized constant ''modelname''" error
I know it might seem like I am repeating myself but I can''t seem to
find the solution to my problem. I am trying to run edge rails using
"rake freeze_edge" and every time I do that my application stops to
work. I get an error on every page. I get a "uninitialized constant
modelname" error where modelname is the object being created for that
view
Has
2006 Jan 24
1
Newbie: Cookbook Application problem with MYSQL
Hi everybody,
I''ve been reading lot of material about Ruby on Rails, and it looks like
really rocks.
I''ve downloaded the one-click version for Windows and started to build
the example cookbook app, found in:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1
Everything looks good, but when I''m trying to create a new Recipe
2006 Jan 21
2
flickr demo
hi --
i''m a beginner to rails, so thanks for your patience.
i was following the flickr video demo step-by-step
(http://media.rubyonrails.org/video/flickr-rails-ajax.mov).
i''m using ruby 1.8.2 on mac OS X.
i keep getting this error message after typing in a tag and submitting the
form:
ArgumentError in Flickr#search
wrong number of arguments (1 for 0)
RAILS_ROOT:
2005 Dec 18
0
Couldn''t find Login with ID
Hi,
I am a lerarner and i Am getting this problem when I try to delete.
I am not able to understand what is this ID and why its like this.
Any one explain me what does it mean and how to solve this . This is as also
with show/edit.
Thanks in advance
Couldn''t find Login with ID=30640940
RAILS_ROOT: ./script/../config/..
2006 Apr 10
0
TaskThis undefined method `remembrall_expires'' for #<User:0x
This happens before each login attempt.
Please note that if I click on the refresh button of my browser I then
login succesfully.
Any hint?
--
fabio vitale
NoMethodError in AccountController#login
undefined method `remembrall_expires'' for #<User:0x351f238>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
2007 Aug 17
1
Scaffold (Agile Web Development With Rails)
What am I doing wrong here?
[app/controllers/admin_controller.rb]
class AdminController < ApplicationController
before_filter :authorize
def index
list
render :action => ''list''
end
# GETs should be safe (see http://www.w3.org/2001/tag/doc/whenToUseGet.html)
verify :method => :post, :only => [ :destroy, :create, :update ],
2006 Jun 23
0
Date class giving errors
Any time I try to use any methods of the Date class, I get errors of
''invalid date''. For example, I have this happening:
With the code Date.today, I get this error from Rails:
- - - - - - - - - -
ArgumentError in Student#show
Showing app/views/student/show.rhtml where line #10 raised:
invalid date
Extracted source (around line #10):
7: <p> <%=
2006 Mar 12
2
Ruby syntax question, I think ...
I am successfully navigating between controllers. However, I am unable
to construct a new child (question) record.
What does "undefined method `stringify_keys!'' really mean"?
I think I am missing a subtlety of Ruby syntax here, since the
question_controller is actually trying to call the Question constructor.
Can someone point out what I am missing please?
Thanks in