Where have the forms gone??

Hi,

I recently installed:
- Aptana Studio 1.1.0.007007
- Rails 2.0.2
- Ruby 1.8.6

First thing I noticed was that now I needed SqlLite3. I changed the
database.yml to keep it like before:

development:
  adapter: mysql
  database: company_development
  username: root
  password:
  host: localhost

I created a project. To my surprise now the .rhtml are now html.erb
And when creating a basic scaffold I can create new (lets say employees)
but the web interface is not showing the forms to enter the values for
the created entries.

What has gone mad? Maybe the sql thing?

Thanks in advance.

Hi,

Apparently my question is too dummy. But I'm still confused...
I've been working on a project all the time where by default MySql was
used and when creating a scaffold it would create .rhtml files

Now I noticed that I expects Sqlite3 and makes html.erb files.
Have I missed a big thing??

I want to keep using MySql, is changing the yml file enough?

Any info is appreciated.

Hi,

Apparently my question is too dummy. But I'm still confused...
I've been working on a project all the time where by default MySql was
used and when creating a scaffold it would create .rhtml files

Scaffolding in rails has changed, and is no longer dynamic (off the
top of my head i think there's a plugin to have old style scaffolding
if you really want it)

Now I noticed that I expects Sqlite3 and makes html.erb files.
Have I missed a big thing??

I want to keep using MySql, is changing the yml file enough?

yes.

Thanks Frederick.

Well I guess I'll have to learn to live with it.
I still don't understand what is the point. At least now when trying to
create a basic rails app I have to do more work...

- Change back to MySql
- Scaffold is not creating the controller so I need to create the
controller manually
- The created controller is empty and now I have to fill it myself.

I guess I'm doing something wrong or in the wrong order, otherwise I
don't understand that change.

Thanks.

Thanks Frederick.

Well I guess I'll have to learn to live with it.
I still don't understand what is the point. At least now when trying
to
create a basic rails app I have to do more work...

- Change back to MySql

rails -d mysql will create it with mysql setup

- Scaffold is not creating the controller so I need to create the
controller manually
- The created controller is empty and now I have to fill it myself.

that shouldn't be happening - it's just the forms that don't get
autoupdated. Are you doing something like

script/generate scaffold purchase order_id:integer amount:decimal

or are you just doing script/generate controller (that does just
generate an empty controller)

Fred

rails -d mysql will create it with mysql setup

Cool, I'll start using that.

conclussion (?). I should do like in the first process. But then I
should add the db columns in the scaffold generation as you mentioned.

This created all the basic stuff.
Any info when the dicussed changes where introduced? I wonder what else
I've been missing. I guess I find out soon when I start porting my old
application.

Cheers.

I know that there are a few of these floating around, but our area
Ruby Brigade posted a Rails 2 cheatsheet that might help:
http://upstaterb.org/2008/2/14/rails-2-0-cheat-sheet

AndyV wrote:

I know that there are a few of these floating around, but our area
Ruby Brigade posted a Rails 2 cheatsheet that might help:
http://upstaterb.org/2008/2/14/rails-2-0-cheat-sheet

On Feb 15, 7:45 am, comopasta Gr <rails-mailing-l...@andreas-s.net>

Thanks Andy that is a great summary of changes.

Cheers!