similar to: extracted error?? new question...

Displaying 20 results from an estimated 400000 matches similar to: "extracted error?? new question..."

2006 Jul 26
2
There is Something wrong with the div...
<div id="cart"> <% if @cart.items.empty? %> style="display: none" <% end %> <%= hidden_div_if(@cart.items.empty?, :id => "cart") %> i dont know how to fix it, iv looked all over the book ruby on rails and cant ever find whats wrong with it... -- Posted via http://www.ruby-forum.com/.
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error... app/controllers/info_controller.rb:9: syntax error this is what is inside of info_controller, class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |accepts| accepts.html accepts.xml end end if someone could please help me... -/ James --
2006 Jul 26
1
Something is wrong with this peice of code...
<% if @cart.items.empty? %> |^|^|^|^|^|^|^|^|^|^|^|^|^| This peice of code is having a problem in the store.rhtml of my application but i have no idea why... it says that it is and (extracted source... here is the Store.rhtml... this is from an application made in "Ruby on Rails" and it wont tell me how to fix it... iv done everything in the book the exact way its told me,
2006 Jul 27
1
no method??
Whenever i type what the book says which is... xml.order_list(:for_product => @product.title) do for o in @orders xml.order do xml.name(o.name) xml.email(o.email) end end end it gives me this error that says... NoMethodError in Info#who_bought You have a nil object when you didn''t expect it! The error occured while evaluating nil.title Extracted source (around line
2008 May 29
2
Resource routing error with the route equipment/new
I''m having an issue with resource routing after running a "ruby script/generate scaffold equipment" command. I did not make any changes to the equipment model/controller/views after running this. The full command I ran (all one line) ... ruby script/generate scaffold equipment name:string description:text contact:text keywords:string created_at:datetime created_by:integer
2006 Apr 03
3
New software, test site, OpenProfile
I''ve just put a new Ruby On Rails application up for testing at: <http://rtest.openprofile.net> Open Profile can be used as a login and user profile module for any Ruby On Rails application. Its purpose is to minimize the hassle of joining new web forums (or anything else on the web that requires you to enter a user name, email addres, password twice, etc.). If it''s
2008 Jun 18
3
Best Way of Extracting Key Value from File
What is the best way of extracting a key value pair from a file. For example I have an email text file which goes like so : -- Return-Path: <atharshiraz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> Delivered-To: test-ovehrGOUempiNnqEydH9iw@public.gmane.org Date: Sat, 3 May 2008 18:25:13 -0400 From: "Athar Shiraz Siddiqui" <atharshiraz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2010 Nov 19
1
I18n::InvalidLocaleData error on load page
Hi All, I use rails 3.0.1 in my application and when the server web load this following page http://localhost:3000/signup <h1>Sign up</h1> <%= form_for(@user) do |f| %> <div class="field"> <%= f.label :name %><br /> <%= f.text_field :name %> </div> <div class="field"> <%= f.label :email %><br
2005 Dec 23
2
has_many and belongs_to relationship error
Hi i am getting following error ActiveRecord::StatementInvalid in Blog#index Showing app/views/blog/index.rhtml where line #10 raised: Mysql::Error: #42S22Unknown column ''posts.user_id'' in ''where clause'': SELECT * FROM posts WHERE (posts.user_id = 4) Extracted source (around line #10): 7: <div class="separator">&nbsp;</div> 8:
2005 Dec 27
2
NoMethodError in new scaffold
Hi All, I created a new rails application using rails 1.0. I used "ruby script\generate scaffold" for each of my tables. This worked on all but 2 of my tables. When I go to the new or edit action of my requests or admins table, I get the error below. On one table called admins I hadn''t followed the correct naming convention and wasn''t able to edit or create
2011 Aug 10
3
javascript_include_tag error
<!DOCTYPE html> <html> <head> <title><%= @title %></title> <%= csrf_meta_tag %> <%= javascript_include_tag "http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js", "jquery.rails.js" %> <script type="text/javascript"> ...app/views/layouts/application.html.erb:7: syntax error, unexpected
2010 Mar 09
3
undefined method join for STRING error
Hey all, I was converting a haml file to erb and when finished, I ran the app and got this error message: NoMethodError in Students#student_fail Showing app/views/students/student_fail.erb where line #40 raised: undefined method `join'' for #<String:0x105a5e0c8> Extracted source (around line #40): 37: 38: <% fields << render(:partial =>
2008 May 09
2
Getting an error when trying to create a new application..
I''m new to Ruby/Ruby on Rails. I''m trying to create an application and am getting this error: C:\InstantRails\rails_apps>rails demo C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:379:in `report_activate_ error'': RubyGem version error: activesupport(2.0.2 not = 2.0.2.9216) (Gem::LoadE rror) from
2007 Mar 22
2
Inconsistent Invalid Argument Error
I have a view with a table that contains sortable links as headings. Here is the code used to create these sortable links in the application_helper: module ApplicationHelper def sort_link_helper(text, param) key = param key += "_reverse" if @params[:sort] == param link_to(text, :controller => ''sales_orders'', :action => ''list'',
2006 Jun 16
0
Getting error on a group select
Hi, I''m very new with Ruby and Rails. I have read Agile Web Development with Rails and was trying to create a grouped selection list by following his example on page 359. My helper looks like this: module LoginHelper AssocOption = Struct.new(:code_name, :display_name) class AssocType attr_reader :type_name, :options def initialize(name) @type_name = name
2006 May 24
0
showcase + acts_as_versioned error
I just installed Kyle Maxwell''s Showcase cms and followed the instructions. The database was created successfully. However, when I login to the account section to edit my website I get the following error after a fresh install. --------------------------------------------------------------------- NameError in Account#index Showing app/views/account/_website_form.rhtml where line #28
2006 Apr 04
16
No Method Error
This is the error that keeps appearing. I don''t understand why "@tblusers" is not correct. Can anyone help? NoMethodError in Tblregisteredphone#new Showing app/views/tblregisteredphone/new.rhtml where line #20 raised: You have a nil object when you didn''t expect it! You might have expected an instance of Array. The error occured while evaluating nil.each Extracted
2011 Feb 10
8
rvm install 1.8.7 prompts "There has been an error while running make. Halting the installation."
I want to work with both Rails 2 and Rails 3 projects. I have RVM installed. When I upgraded to Rails 3, Installed RVM via terminal: bash < <( curl http://rvm.beginrescueend.com/releases/ … ll-latest) version=$(curl http://rvm.beginrescueend.com/releases/ … sion.txt); mkdir -p ~/.rvm/src/ && cd ~/.rvm/src/ && curl -O http://rvm.beginrescueend.com/releases/ … on}.tar.gz |
2008 Mar 13
3
Refreshing a page gives a "stack level too deep" error.
I''m converting our app into restful rails. A couple of my classes (Resource and Asset) have a has_many relationship with each other - here''s the routes: map.resources :assets, :has_many=>[:resources] map.resources :resources, :has_many=>[:assets] I''m getting something weird in my view pages. When i go to /resources/4/assets it works. I go to the page
2006 May 03
0
Newbie Help
Is it my environment? Is something wrong, cause I thought this should just work? I have a simple table and I created a model and a controller: ruby script/generate controller Restaurant ruby script/generate model Restaurant I edited the controller to this: class RestaurantController < ApplicationController scaffold :Restaurant end I run it and: http://0.0.0.0:3000/Restaurant works