similar to: problem with list definition

Displaying 20 results from an estimated 900 matches similar to: "problem with list definition"

2006 Jul 07
2
Errno::ENOENT in RecipeController#new
I''m brand new to Rails and I''m trying to work through the ONLamp.com Rolling with Ruby on Rails tutorial. I''m trying to connect to my mysql database and I''m getting the following: <i> Errno::ENOENT in RecipeController#new No such file or directory - /tmp/mysql.sock RAILS_ROOT: /home/jason/rails/cookbook/public/../config/.. Application Trace |
2007 Feb 04
1
Rails-Mysql driver installation problem? - newbie
I''m a newbie trying to follow the ONLamp RoR tutorial at http:// www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=1 Originally, I forgot to install the MySQL driver. It took a while to get a driver installed using gem, but eventually I got mysql-2.7 driver installed after downloading some ruby dev headers and mysql client library. Now, when I try and point the browser to
2006 May 09
2
newbie: OSX Ruby/MySQL issue?
I''m three pages into the OnLamp RoR Tutorial [1] and am wrestling with what appears to be a MySQL connection problem. I''ve created a simple controller called "recipe" with a corresponding "recipes" mysql table. The recipe controller is just a simple scaffold. When I browse to "recipe/new", though, I get these errors: == NoMethodError in
2005 Mar 18
0
scaffold generator, pluralization and tutorials
Hi All the tutorials call their controllers ''TodoController''[1] or ''RecipeController''[2] (singular), but "script/generate scaffold Recipe" for example generates a ''RecipesController'' (in recipes_controller.rb) As I''m rather new to RoR I don''t know if that convention changed, I read something about it here:
2006 May 24
6
newbie question: missing template
Hi I''m new to this forum and new to Rails so excuse me if this is a daft question. I''m following the ONLamp.com tuturial and all has been well untill changing the template for the recipes. I have followed the instructions and added this code to the controller: class RecipeController < ApplicationController scaffold :recipe def list @recipes = Recipe.find_all end
2006 May 15
3
Mysql::Error in RecipeController#new
Hi, I''m doing the following tutorial :http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3 but when I''m trying to access the database I get the following error #28000Access denied for user ''root''@''localhost'' (using password: NO) That''s strange because the database.yml file is defined with a password : development:
2006 May 15
0
uninitialized method ''init'' for MySql::Class
I''ve been going through the Ruby on Rails tutorial at OnLamp.com on my Debian machine, and I ran into the following error after creating a ''recipes'' table in my ''cookbook'' database: NoMethodError in RecipeController#new uninitialized method ''init'' for MySql::Class RAILS_ROOT: /var/rails/cookbook/public/../config/.. Any ideas on how
2006 Apr 17
7
Action Controller: Exception caught
Hi, I''m running the cookbook example from ONLamp.com. I have tried to test my site and it comes up with the the message on the site: ActiveRecord::StatementInvalid in RecipeController#index Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM recipes RAILS_ROOT: ./script/../config/.. Application Trace | Framework Trace | Full Trace
2006 Mar 03
13
Listing help
Hi, I''ve created a Rails application and am having a problem listing by a particular category in an associated table. I followed the instructions found at the O''Reilly tutorial (http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html?page=3) but have not had success. Can anyone please outline a better set of instructions than in the "Showing Recipes in a
2006 Mar 31
3
Need to use a method without the layout
I need to use a method (called by one of my controllers) without using the layout. All the other methods in the controller need to use this layout except for thismethod (becausae it''s called by an Ajax script). I know how to use :layout=>layout_name when calling a method from another method, but nothing is calling this. The layout needs to be removed in the method itself or I need
2005 Mar 09
9
Unit testing + instance variables
After *much* digging and playing around, I finally figured out how to unit test instance variables that are created by actions. It was more difficult than I expected. It seems like there should have been a more straight forward way to do this. Can someone enlighten me? A simplified and somewhat contrived example of what I am current doing: Thanks. Matt >> # My Controller of interest
2006 Aug 08
2
Should I uninstall everything to install InstantRails?
Please help me I am brand new to this. I have been following this tutorial from OnLamp http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html which tells you how to install ruby, rails and mySQL and get going. Doing this tutorial convinced me RoR was the way to go for me. So I got hold of this e-book: Agile Web Development with Rails - The Pragmatic Programmers The book tells me to install
2005 Mar 04
2
Part 2 of ONLamp.com Rails article is online
ONLamp.com has finally published part 2 of my Rails article! You can find it here: http://www.onlamp.com/pub/a/onlamp/2005/03/03/rails.html It would be really nice if we could get this slash dotted again before the weekend. >From what I understand, you''re more likely to get accepted when multiple people submit something. So, to anyone who has the inclination: if you would submit
2003 Sep 11
0
RV: WARNING[5126] Maximum retries exceeded on call
Hello I'm tryng to install Asterisk and by now I got a first congfiguration working (0ne PBX box and 2 X-lite phone communicating with each other) The problem now is that I keep this annoying message every time: WARNING[5126]: File chan_sip.c, Line 435 (retrans_pkt): Maximum retries exceeded on call 43c827415f83584c0c9dc15b03ed6924@10.1.1.1 for seqno 102 (Request) Do you have a
2006 Mar 09
3
ONLamp.com Tutorial Trouble
I have installed Ruby on Rails and the latest version of MySQL in my Windows XP machine and I am following a demo from ONLamp.com <http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=3>. I am 3/5 down the page where it says: "Open a browser and navigate to http://127.0.0.1:3000/recipe/new. You should see something like Figure 32." Instead of a page like Figure 32, I get
2008 Apr 18
1
rails for dummies
Hellos all, I''m new to this so I have one really stupid question. When I make my website is the whole thing going to be encoded in my_test_controller.rb if I do ''ruby script\generate controller MyTest'' as "ONLamp" says to do? http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html?page=2 Cheers, Paul --~--~---------~--~----~------------~-------~--~----~
2004 Jan 23
0
New Asterisk article on O'Reilly's onlamp.com
Here's the follow-up article to the first article I published on Asterisk: http://www.onlamp.com/pub/a/onlamp/2004/01/22/asterisk2.html?page=last This one covers getting Zap hardware installed, and also covers integrating an IPCSP (IP Communications Service Provider - aka: long distance via SIP.) Sorry for the delay - the article was submitted about five months ago and just finally
2008 Jun 24
0
creating a list view in rails 2
just started learning ruby and RoR a few days ago. There aren''t many tutorials on Version 2 so I went with a version 1 one. I''m going through the ONLamp one, found here: http://www.onlamp.com/pub/a/onlamp/2007/01/05/revisiting-ruby-on-rails-revisited-2.html?page=1 I got the scafolding and db stuff sorted out (as in the way its meant to be done in version 2) but I noticed that in
2005 Oct 13
2
PA168S/AT320P
Hi all! I've got a problem with thia PA168S/AT320P telephone. I got 2 servers: one with SER and the other with Asterisk. All users are on SER and Asterisk is the gateway/voicemail. In these days I'm starting some tests using Asterisk accounts users. With this PA168S/AT320P, if I use it with a user from SER, it's ok but I can forget to use it with Asterisk users!!! I've also updated
2006 Aug 08
1
recognation failed - ?!
Hi there, When I was making examples form "Rolling with Ruby on Rails" ( http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html ) , after generating controller MyTest, the WEBrick server ( localhost:3000 ) reported an error: recognation failed /MyTest The WEBrick server was started form correct directory, what else can crush in that way ? Cheers. -- Posted via