Displaying 20 results from an estimated 5000 matches similar to: "Errno::ENOENT in RecipeController#new"
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 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
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 Mar 30
13
Trying Agile book, found problem
Pg. 57 of Agile asks you to create a scaffolding by typing in
ruby script/generate scaffold Product Admin
Instead of generating everything, it only gives me
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical
2005 Dec 22
13
in-memory SQLite for testing
I am following the rails book, and arrived to the section about
testing. The test database is configured as:
test:
adapter: sqlite3
database: ":memory:"
and I get this error with the simple product test:
% ruby test/unit/product_test.rb
Loaded suite test/unit/product_test
Started
E/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.1.0/lib/sqlite3/
errors.rb:94:in
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
14
[newbi] Create a Model
Hello All,
Yesterday i put RoR with Locomotive. I am very happy :p.
So I follow this tuto
(http://developer.apple.com/tools/rubyonrails.html). I used Sqlite.
my database.yml
# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Get the fast C bindings:
# gem install mysql
# (on OS X: gem install mysql -- --include=/usr/local/lib)
# And be sure to use new-style password
2016 Oct 20
2
queue_log/cel sqlite
hi,
is it possible log cel/queue_log to sqlite?
via odbc?
any experience?
marek
2016 Oct 20
2
queue_log/cel sqlite
On Thu, Oct 20, 2016 at 4:50 AM, marek cervenka <cervajs2 at gmail.com> wrote:
> i tested this
>
> # cat /etc/asterisk/extconfig.conf
> [settings]
> queue_log => sqlite3,cdrDb
>
> # cat /etc/asterisk/res_config_sqlite3.conf
> [cdrDb]
> dbfile = /var/lib/asterisk/realtime.sqlite3
>
> sqlite3 /var/lib/asterisk/realtime.sqlite3
>
> CREATE TABLE
2006 Sep 26
1
Error while generating scaffold
Hello,
When I run the command:
"ruby script/generate scaffold Product Admin"
I receive the following error after the usual changed files info:
"Couldn''t find ''product'' generator"
The command is based on "Agile Web Application Development with Rails"
first edition on page: 57. Just to give some context to what I am
doing, I just created
2005 Mar 09
10
mysql vs postgres
I''ve used mysql for quite some time now. Other than crashing when the
partition gets full, I''ve had no problems with it.
But I''ve heard great things about postgres and have seen some people
say it''s much superior to mysql.
So, with a Rails application, is there any reason why I would want to
learn/use another DB besides mysql? Any pragmatic benefits?
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 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 May 16
1
ActionMailer w/o database link (e.g., feedback form)
Hey,
A total noobieQ. Apologies, still learning.
Could anyone point me to examples of a non-database-driven feedback
form, for instance, a simple e-mail feedback form that takes advantage
of ActionMailer? (How do I carry a POST through to a ''def'' w/o a
database connection?)
Thanks!
--
Posted via http://www.ruby-forum.com/.
2006 Jun 20
0
problem with list definition
hello,
I am gererateing a missing template error when I overwrite the list part of
the scaffold. it seems to have the wrong path to list.rhtml. Looking at the
error path (below) it is looking for in a folder called <public>. This seems
wierd to me becausae that path does not exist in the frame work. the path
should be
/Users/dima/Documents/ruby/rails/cookbook/app/views/recipe/list.rhtml
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:
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
2005 Jun 29
3
trouble with active record and sqlite
I am getting an error that I can''t figure out. I have a class called
Test with 3 fields, id, x, and y. When I do Test.new(''x''=>1,
''y''=>2).save, I get an error saying that id (my ''not null primary
key'') can''t be null. But isn''t active record supposed to deal with
setting that for me? Here''s the code
2006 Jun 15
6
Sqlite3 test fails in Rails app
Greetings:
I am using Sqlite3 database with my Rails app. When I try and run "rake
tests" for the app it always fails with the error:
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke
2005 May 03
8
SQLite3 + RAM drive => 3 times faster unit tests
One problem I sort of always had with the ActiveRecord''s tight coupling
to the SQL backend is how slow it makes the unit tests. OK, there are
some ways to make it faster at a price of extra complexity (reusing the
fixtures, doing a rollback in the end of the test, etc), but still - it
is much slower than what I would like a unit test to be.
Today I had a very simple idea (why, oh why