[Rails] XP, WEBrick, and SQLite
3kru-hpyd at spamex.com
3kru-hpyd at spamex.com
Mon Nov 15 22:09:31 GMT 2004
Try adding a slash (/) at the end of the URL -- this is a bug (I
think) that has already been mentioned.
On Mon, 15 Nov 2004 13:03:22 -0800 (PST), Abdullah Jibaly
<amjibaly at yahoo.com> wrote:
> * Replies will be sent through Spamex to rails at lists.rubyonrails.org
> * For additional info click -> http://www.spamex.com/i/?v=4990968
>
> Hi all,
>
> Wow, thanks for the responses... it did work however
> after adding scaffold :todo in the todo controller I
> get the screen shown in the tutorial that says
> "Listing todos", but when I click on the new todo
> hyperlink it brings me back to the same page. I got
> the impression from the tutorial that I would be able
> to add a new record and then see it in a listing,
> right? Here is the controller code:
>
> require 'abstract_application'
> require 'todo_helper'
> require 'todo'
>
> class TodoController < AbstractApplicationController
> include TodoHelper
>
> scaffold :todo
>
> end
>
> ... and the database.yml file:
>
> production:
> adapter: sqlite
> dbfile: C:/Inetpub/wwwroot/Todo/db/todo_production
>
> test:
> adapter: sqlite
> dbfile: C:/Inetpub/wwwroot/Todo/db/todo_test
>
> .. and the schema in todo_production:
>
> sqlite> .schema
> create table todos (
> id integer primary key,
> description varchar(100) not null,
> done smallint not null
> );
>
> When I manually add a row in the db it does show up in
> the listing however clicking on Show/Edit/Destory
> gives me:
>
> Unknown action
>
> No action responded to 1
>
> So what newbie mistake am I making?
>
> Thanks!
> Abdullah
>
> --- Michel Rasschaert <michel.rasschaert at gmail.com>
> wrote:
>
>
>
> > with gems it is even easier
> >
> > gem install rails
> > gem install sqlite
> >
> > and it works ;)
> >
> >
> > On Mon, 15 Nov 2004 10:17:23 -0800, Justin Rudd
> > <justin.rudd at gmail.com> wrote:
> > > You'll need to download two things. The first is
> > SQLite itself. You
> > > can grab it at http://www.sqlite.org/. Just grab
> > the pre-built
> > > Windows DLL for version 2.x (not the 3.x branch).
> > The second thing
> > > SQLite/Ruby (http://sqlite-ruby.rubyforge.org/).
> > It comes with the
> > > extension library pre-built for Windows.
> > >
> > > Make sure the SQLite is in your path. And then
> > run the install for
> > > SQLite/Ruby. Everything after that is pretty
> > simple (i.e. writing the
> > > code).
> > >
> > > --
> > > Justin Rudd
> > > http://seagecko.org/thoughts/
> > >
> > >
> > > _______________________________________________
> > > Rails mailing list
> > > Rails at lists.rubyonrails.org
> > >
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> > >
> > _______________________________________________
> > Rails mailing list
> > Rails at lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
More information about the Rails
mailing list