Displaying 20 results from an estimated 20000 matches similar to: "New Rails app is not working... I am missing something"
2006 Jul 22
1
How to debug this
Hello,I get this message and I don''t know how to interprete this.I think it has to do with plural tables and singular referencesThanks for any help!Jim======================================================================================uninitialized constant SubjectRAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
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 May 21
8
Rails and Postgres
Hi, I''m new to Ruby on Rails and am having a little difficulty working
through the ''Rolling with Ruby on Rails'' tutorial. Can anyone help?
I''m trying to get the cookbook application to work via a Postgresql db.
But get the following error when trying to access
http://127.0.0.1:3000/recipe/new
Errno::EINVAL in RecipeController#new
Invalid argument
2006 Mar 07
4
Edge Rails - same code, different issues on mac and windows
Trying to get an app up and running with Edge Rails, and I''ve run into
different issues on Mac and Windows with the exact same code. It''s similar
to the issue posted in the previous RJS/Edge Rails thread, but I didn''t see
any answers in there (maybe I missed the real answer?) Both console/error
outputs listed below:
I can''t even get WEBrick to start on
2006 Feb 13
3
TypeError
What might cause this error?
TypeError (singleton can''t be dumped):
/usr/lib/ruby/1.8/pstore.rb:159:in `dump''
/usr/lib/ruby/1.8/pstore.rb:159:in `dump''
/usr/lib/ruby/1.8/pstore.rb:138:in `transaction''
/usr/lib/ruby/1.8/cgi/session/pstore.rb:90:in `update''
/usr/lib/ruby/1.8/cgi/session/pstore.rb:97:in `close''
2006 Jun 13
6
tax a reserved word?
Is tax a reserved word or am I sleep deprived??
I''m working on a shopping cart and have a table called sales_taxes (at
first i named it taxes).
I get the following error when i load the controller:
uninitialized constant SalesTaxis
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace | Full Trace
2006 Mar 28
8
1.1 broke my app
I upgraded to Rails 1.1 (ruby 1.8.2 and ruby 1.8.4 on RHEL 4 using
webrick or fastcgi) and all of a sudden I get this hitting a
controller:
wrong number of arguments (1 for 0)
RAILS_ROOT: script/../config/..
Application Trace | Framework Trace |
Full Trace
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.0/lib/action_controller/base.rb:379:in
2006 Mar 08
6
GD error...
Hi!
I''m new in ruby/rails programming and i have a small problem.
I have installed InstantRails 1.0 (for Ruby/Rails/Mysql/Apache envs) and
I''m trying to make a small app working. I''m using auth_generator for
making a login page/users admin pages... and I have a problem when
trying to CHANGE the avatar for the user.
I have the following error:
MissingSourceFile
2006 Apr 14
5
state_models plugin and file_column?
I was looking at Kyle Mawell''s extremely nifty-looking StateModels
plugin
http://www.kylemaxwell.com/articles/2006/02/06/fun-with-single-table-inheritance
and before I go down the road with it, I was wondering if anyone has
used it with file_column.
The way file_column deals with an uploaded file -- by storing it to the
filesystem in a path that employs the model name and id --
2006 Apr 25
16
case statements in views...strange error on OSX
I have a simple case statement in one of my views. This works fine on my
windows machine. Move to the mac and I get: "parse error, unexpected
tIDENTIFIER, expecting kWHEN".
I have not changed anything but cannot resolve the issue. my view has
this in it (simplified for test)
<% case controller.controller_name -%>
<% when "accounts" -%>
<h3>worked
2006 May 22
4
RMagick gem problem using Rails and possibly WEBRick...
Hello, I am new to rails but have been having fun so far. Until now.
I
am sure this is just my inexperience but I have the RMagick gem (ruby
gem
for using imagemagick manipulation) installed on my machine that I
would
like to then use in my rails app. I first installed it and tried it
out,
and it didnt do anything for me, took me a while to realize I needed
the
windows RUBYOPT
2006 Apr 21
5
installing hieraki help
Ahoy,
I tried to install hieraki and it was a big mess.
1) upload_progress module needed to be installed
2) no test/development server configured in the config file so i had to
add those
3) no log directory, had to add that
4) had to install 2 gems (ok fine)
5) once the server started, go to homepage and
" NameError in Wiki/pageController#index
uninitialized constant Node
RAILS_ROOT:
2006 Apr 27
5
Realtime Form Validation Plugin Available
Granted, I''m still very much a newbie, but after reading an article on AJAX
that basically states at one point that just because you can use AJAX
doesn''t always mean you should, I have to ask: Why bother contacting the
server (even if it is an insignificant amount of bandwidth) to validate the
sanity of form data (unless you''re actually validating against something in
2006 Jan 22
2
a newbie doomed in the first introduction to ruby.
Hello,
I have bought the Dave Thomas Agile Developtment with Rails. (I have
previously bought and read his Programming with Ruby book)
On my winxp sp2 system ruby 1.8.15 (one click installer), rails
1.0framework (with ruby gems) and mysql
5.0 are installed.
While following the example stated in the Chapter Building an Application I
had following problem.
After creating databases for test,
2006 Jun 26
9
Form Mail
What is the most RoR friendly way of making a form mailer similar to
this php one?
http://tips-scripts.com/?tip=form_mail#tip
Or is it easier just to use the php with RoR?
--
Posted via http://www.ruby-forum.com/.
2006 Jan 11
6
Help -- NoMethodError in
Hi,
I am just learing Rails and I am going through the Agile Web Development
with Rails book. I am receiving:
NoMethodError in Store#add_to_cart
undefined method `add_product'' for #<StoreController:0x3764d80>
RAILS_ROOT: ./script/../config/..
Application Trace | Framework Trace | Full Trace
#{RAILS_ROOT}/app/controllers/store_controller.rb:12:in `add_to_cart''
2006 May 09
6
Create checkboxes on page using contents of a hash
Hi all,
I have a hash that is created in the index method of my controller.
After it is created, the index.rhtml page is rendered. Upon this
rendering I would like to create a check box for each key/value in the
hash.
The has is @recordsHash
I have been trying varying stratagies like the one below, but to no
avail. Do you have any ideas? Thanks for your help on this!
html
2006 May 17
3
Help mixin in class methods
Starting to feel more confident and code is DRYing up nicely, but I''ve
hit a brick wall here and hoping someone can help me.
I''ve got a module, TrustRanking, which extends a number of model''s
instance methods, and I want to extend their class methods too, but I
can seem to work out how to do it.
Simply including the module from the class works a treat for the
2006 Aug 14
2
Undefined Method error for call to ''render_component_as_string''- Why?
I want to put a ''search_box'' text_field in the header of each page. This
common header template is implemented in ''views/layouts/application.rhtml''.
The search_box is implemented in a controller named ''users''.
(so ApplicationController is calling an :action in UserController)
When I add this line to my
2006 Feb 08
5
beginner - problem with understanding relationships
Hi folks,
I''m new to this... so hopefully someone can help me.
I have a few objects... Property and Address and Landlord... where a
Property has an address and a landlord has an address also.
I''ve modelled this in the db with the properties table having an
address_id and the landlord table having an address id.
My rb looks like:
class Property < ActiveRecord::Base